-
Notifications
You must be signed in to change notification settings - Fork 12.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
regression: doctest no longer supports derive? #132204
Comments
This is expected, the (kind-of new) warn-by-default 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. |
Is this serde's derive? Has that already been fixed on newer versions of serde? |
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 |
If someone wants an MCVE: #[derive(serde::Deserialize)]
struct Point {} [package]
name = "scratch"
version = "0.1.0"
edition = "2021"
[dependencies]
serde = { version = "=1.0.200", features = ["derive"] } |
The text was updated successfully, but these errors were encountered: