Closed
Description
Tried converting my project using cargo fix --edition
, but go the following output.
- source code: https://github.com/dignifiedquire/rpgp/tree/06458a8cf35927f165a2930ddcbd57e535148f5c
- rustc:
rustc 1.34.0-nightly (aadbc459b 2019-02-23)
$ 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