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 used cargo fix to transition my project to Rust 2018 and noticed that one of my source files made it error out so I extracted the following minimal example:
cargo fix tries to replace fun(&self, py: Python) with fun(&self, _py: Python) but fails with the following output:
Checking cargofixtest v0.1.0 (file:///C:/Users/dthul/repos/cargofix)
warning: failed to automatically apply fixes suggested by rustc to crate `cargofix`
after fixes were automatically applied the compiler reported errors within these files:
* src\lib.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/cargo/issues
quoting the full output of this command we'd be very appreciative!
warning: unused variable: `py`
|
= note: #[warn(unused_variables)] on by default
Finished dev [unoptimized + debuginfo] target(s) in 0.59s
It does not fail when removing the __new__ method and its #[new] annotation.
The text was updated successfully, but these errors were encountered:
In that sense I'm gonna close this issue in favor of those two issues. Thanks regardless though for the report! I'd rather close duplicate issues than not know about issues :)
I used
cargo fix
to transition my project to Rust 2018 and noticed that one of my source files made it error out so I extracted the following minimal example:Cargo.toml
lib.rs
cargo fix
tries to replacefun(&self, py: Python)
withfun(&self, _py: Python)
but fails with the following output:It does not fail when removing the
__new__
method and its#[new]
annotation.The text was updated successfully, but these errors were encountered: