Skip to content

cargo fix --edition failure (probably macros related) #59065

Closed
@dignifiedquire

Description

@dignifiedquire

Tried converting my project using cargo fix --edition, but go the following output.


$ cargo fix --edition
    Checking pgp v0.1.0 (/Users/dignifiedquire/opensource/rpgp)
warning: failed to automatically apply fixes suggested by rustc to crate `pgp`

after fixes were automatically applied the compiler reported errors within these files:

  * src/composed/shared.rs
  * src/composed/signed_key/key_parser_macros.rs

This likely indicates a bug in either rustc or cargo itself,
and we would appreciate a bug report! You're likely to see
a number of compiler warnings after this message which cargo
attempted to fix but failed. If you could open an issue at
https://github.com/rust-lang/rust/issues
quoting the full output of this command we'd be very appreciative!
Note that you may be able to make some more progress in the near-term
fixing code with the `--broken-code` flag

The following errors were reported:
error: expected one of `!`, `(`, `+`, `,`, `::`, `<`, or `>`, found `Iterator`
   --> src/composed/signed_key/key_parser_macros.rs:176:28
    |
176 |               ) -> Box<r#dyn Iterator<Item = $crate::errors::Result<Self>> + 'a> {
    |                              ^^^^^^^^ expected one of 7 possible tokens here
    |
   ::: src/composed/signed_key/public.rs:21:1
    |

Full log: https://gist.github.com/dignifiedquire/d75bb480b0f51645dcb74b95bb88c10d

Metadata

Metadata

Assignees

Labels

A-edition-2018Area: The 2018 editionA-lintsArea: Lints (warnings about flaws in source code) such as unused_mut.C-bugCategory: This is a bug.P-highHigh priorityT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions