-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Spurious reference binding from edition lint #87355
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@djc I too was confused about that change but I just found out this explanation. Basically, this change is needed because without it it could change the order in which fields are dropped, possibly breaking backward compatibility. |
@TriageBot modify labels to +A-edition-2021 |
cc @rust-lang/wg-rfc-2229 |
This is the expected lint for RFC 2229. The |
Filed an issue for that: #87952 |
Closing this issue then. |
I ran
cargo +nightly fix --edition
against quinn-rs/quinn@a21f010.I expected to see this happen: no changes or necessary edition-related changes.
Instead, this happened: cargo fix produced this change:
(The formatting is surprising, but that's not what this issue is about.)
cargo +nightly c
withcargo-features = ["edition2021"]
seems to work with or without the change, so it seems like this change is not actually needed. Is there some odd interaction withtokio::main
?Meta
rustc 1.55.0-nightly (b41936b 2021-07-20)
binary: rustc
commit-hash: b41936b
commit-date: 2021-07-20
host: x86_64-apple-darwin
release: 1.55.0-nightly
LLVM version: 12.0.1
The text was updated successfully, but these errors were encountered: