From: Maxim Cournoyer <maxim.cournoyer@gmail.com>
To: guix-devel@gnu.org
Cc: "Ludovic Courtès" <ludo@gnu.org>
Subject: Re: [RFC]: Skipping rust crate tests by default
Date: Mon, 23 Oct 2023 11:51:41 -0400 [thread overview]
Message-ID: <87edhl72wi.fsf@gmail.com> (raw)
In-Reply-To: <ZTZFL8TynDbGz7_V@3900XT> (Efraim Flashner's message of "Mon, 23 Oct 2023 13:04:31 +0300")
Hi Efraim!
Efraim Flashner <efraim@flashner.co.il> writes:
[...]
>> > error: unnecessary parentheses around index expression
>> > --> /tmp/guix-build-rust-nalgebra-0.21.1.drv-0/nalgebra-0.21.1/src/linalg/convolution.rs:49:53
>> > |
>> > 49 | conv[i] += self[u] * kernel[(i - u)];
>> > | ^ ^
>> > |
>> > help: remove these parentheses
>> > |
>> > 49 - conv[i] += self[u] * kernel[(i - u)];
>> > 49 + conv[i] += self[u] * kernel[i - u];
>> > |
>> >
>> > error: aborting due to 2 previous errors
>> >
>> > error: doctest failed, to rerun pass `--doc`
>> >
>> >
>> > crates.io lists this version as being released more than 3 years ago and
>> > targeting the 2018 edition of rust. When built with our current
>> > rust-1.68.2 the doc test passes but not with 1.70.0. The current
>> > upstream version of nalgebra is 0.32.3, so it's unlikely that they'd
>> > release a new version with the doc tests fixed, but I haven't contacted
>> > them about it.
>>
>> OK. Asking in ##rust on libera chat (unofficial channel), I got as suggestion
>> to call 'carge test' with the '--cap-lints=allow' option documented
>> here [0], which should effectively disable just the lint checks, which
>> is better than disabling the full test suite.
>>
>> [0] https://doc.rust-lang.org/rustc/lints/levels.html
>
> I checked the cargo-build-system and we do actually use
> --cap-lints=allow for building and for testing.
Ah! It must be something recent, as it was not the case (and still
isn't) when I checked on the master branch. Or else I fail to see
where/how it's specified.
And nalgebra still fails lint tests with the above --caps-lints=allow
option? If that's so that'd suggest that packages can enforce their own
settings and that this overrides cargo flags given at the command
line... which sounds like a cargo bug.
--
Thanks,
Maxim
next prev parent reply other threads:[~2023-10-23 15:52 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-10-05 12:52 [RFC]: Skipping rust crate tests by default Efraim Flashner
2023-10-05 16:38 ` Felix Lechner via Development of GNU Guix and the GNU System distribution.
2023-10-15 10:18 ` Josselin Poiret
2023-10-16 15:47 ` Maxim Cournoyer
2023-10-17 7:46 ` Efraim Flashner
2023-10-18 8:36 ` Efraim Flashner
2023-10-18 18:46 ` Maxim Cournoyer
2023-10-23 10:04 ` Efraim Flashner
2023-10-23 15:51 ` Maxim Cournoyer [this message]
-- strict thread matches above, loose matches on Subject: below --
2023-10-05 18:13 Nathan Dehnel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87edhl72wi.fsf@gmail.com \
--to=maxim.cournoyer@gmail.com \
--cc=guix-devel@gnu.org \
--cc=ludo@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).