You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
regression: doctest no longer supports derive? #132204
This is expected, the (kind-of new) warn-by-default non_local_definitions lint is rightfully triggered here, the derive should put it's things under an unnamed const. However the crate also use #![deny(warnings)] so it unfortunately breaks, nothing we can do about that.
The lint is already in the language section of relnotes.
Activity
Urgau commentedon Oct 26, 2024
This is expected, the (kind-of new) warn-by-default
non_local_definitionslint is rightfully triggered here, the derive should put it's things under an unnamed const. However the crate also use#![deny(warnings)]so it unfortunately breaks, nothing we can do about that.The lint is already in the language section of relnotes.
Different issue, looks like an issue with the arguments passed to the doctest executable. Reminds me of #131095.
Mark-Simulacrum commentedon Oct 27, 2024
Is this serde's derive? Has that already been fixed on newer versions of serde?
saethlin commentedon Oct 27, 2024
Yes and yes. The crate that's failing here is locked to serde 1.0.99 which was released in 2019, and it expands to this:
Starting in serde 1.0.113 (released in 2020) the Derive macro expands to an unnamed const:
Since the fix has been out for 4 years and has been a
cargo updateaway the whole time, I don't think there's any action needed here.saethlin commentedon Oct 27, 2024
If someone wants an MCVE:
apiraino commentedon Dec 11, 2024
Visiting this issue again. By reading the previous comment I think we can close this as "not as issue / accepted change".
(thanks for the triaging)