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 expected to see this happen: the code gets fixed
Instead, this happened: It attempted to fix it like this: #[serde(deserialize_with = crate::"::serde_utils::hex_bytes::deserialize")] and obviously failed.
This is the result of running:
```
cargo +1.36.0 fix --edition --all --broken-code --features="base64,rand,use-serde"
```
And manually fixing [cargo fix
bug](rust-lang/rust#87578)
Thanks for the report! I'm going to close as this is a duplicate of #56625.
To work around the issue, you can manually adjust the paths in the strings to start with crate:: before doing the migration. Alternatively, you can migrate with the --broken-code flag, and then fix the issues manually.
I tried this code:
And
cargo fix --edition
I expected to see this happen: the code gets fixed
Instead, this happened: It attempted to fix it like this:
#[serde(deserialize_with = crate::"::serde_utils::hex_bytes::deserialize")]
and obviously failed.Meta
rustc --version --verbose
:Same happens on nightly, 1.36, and 1.48
Context: I tried to convert https://github.com/rust-bitcoin/rust-bitcoin/ to edition 2018
The text was updated successfully, but these errors were encountered: