-
Notifications
You must be signed in to change notification settings - Fork 2k
Clippy is incompatible with serde 1.0.107 #8378
Copy link
Copy link
Closed
Labels
A-infraArea: CI issues and issues that require full access for GitHub/CIArea: CI issues and issues that require full access for GitHub/CIE-help-wantedCall for participation: Help is requested to fix this issue.Call for participation: Help is requested to fix this issue.good first issueThese issues are a good way to get started with ClippyThese issues are a good way to get started with Clippy
Metadata
Metadata
Assignees
Labels
A-infraArea: CI issues and issues that require full access for GitHub/CIArea: CI issues and issues that require full access for GitHub/CIE-help-wantedCall for participation: Help is requested to fix this issue.Call for participation: Help is requested to fix this issue.good first issueThese issues are a good way to get started with ClippyThese issues are a good way to get started with Clippy
Type
Fields
Give feedbackNo fields configured for issues without a type.
Summary
Re #7606
The version of
serdespecified inCargo.tomlis too low, and incompatible with this crate.Reproducer
Clippy asks for serde 1.0.0, which is even lower, but currently the lowest possible version is 1.0.107, because that's what
cargo_metadatacrate specifies, and this forces this version for the whole project (Cargo doesn't duplicate dependencies with the same semver-major version).cargo update -p serde --precise 1.0.107 cargo test --allThe same tests pass if you do:
to bump
serdeto 1.0.136. Somewhere between 107 and 136 serde has changed its behavior, and the tests rely on the later serde version.Version
Additional Labels
No response