You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I found out about Cargo's cargo fix command recently and tried it on one of my crates. Apparently either rustc or cargo ran into some kind of bug which it asked me to report.
First things first, I'm on (Arch) Linux 5.0 if that matters, my rustup show output is the following:
after fixes were automatically applied the compiler reported errors within these files:
* widkan/src/rendering/mod.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 `,`
--> widkan/src/rendering/mod.rs:509:41
|
509 | Primitive::Text{ref content: _, ref size: _} => texts.push(p),
| ^^^^^^^
error: aborting due to previous error
Original diagnostics will follow.
The rest of that command is a list of usual "unused imports/variable". If you need those just let me know.
The crate can be found here if you want to have a look at the specific line the error was reported on.
Cheers
The text was updated successfully, but these errors were encountered:
Here is a much smaller test case, not sure if it's minimal:
pubenumEnum{Variant{field:String},}pubfnfrob(arg:&Enum){match arg {Enum::Variant{ref field } => (),}}
Could you please make the issue title more descriptive? I'd suggest "Invalid machine-applicable suggestion for unused variables in pattern matching when the ref specifier is present".
SiebenCorgie
changed the title
cargo fix
Invalid machine-applicable suggestion for unused variables in pattern matching when the ref specifier is present
Apr 12, 2019
Hi,
I found out about Cargo's
cargo fix
command recently and tried it on one of my crates. Apparently either rustc or cargo ran into some kind of bug which it asked me to report.First things first, I'm on (Arch) Linux 5.0 if that matters, my
rustup show
output is the following:rustc --version --verbose
The error it reported
The rest of that command is a list of usual "unused imports/variable". If you need those just let me know.
The crate can be found here if you want to have a look at the specific line the error was reported on.
Cheers
The text was updated successfully, but these errors were encountered: