Not planned
Description
I tried to use cargo fix --edition-idioms
, but it printed a lot of errors and declined to fix some things.
I've attached the output.
output.txt
Meta
rustc --version --verbose
:
cargo 1.52.0-nightly (90691f2bf 2021-03-16)
release: 1.52.0
commit-hash: 90691f2bfe9a50291a98983b1ed2feab51d5ca55
commit-date: 2021-03-16
Metadata
Metadata
Assignees
Labels
Type
Projects
Milestone
Relationships
Development
No branches or pull requests
Activity
jimblandy commentedon Mar 20, 2021
I was able to get
cargo fix --edition-idioms
to succeed by fixing the following code manually.The only change I made was to add an anonymous lifetime
<'_>
afterstd::fmt::Formatter
in theDisplay
impl.Here's a sample use of the
stringy_enum
macro, if that helps:ehuss commentedon Mar 20, 2021
Hi! I think this is a duplicate of #55768. I believe the issue is that when a macro is invoked multiple times, rustc is issuing a warning for each invocation, and
cargo fix
is applying all the duplicate suggestions.fmease commentedon Jan 26, 2024
Closing as duplicate of #55768 which was fixed by #90446.