-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Mention both release *and* edition breakage for never type lints #132978
Mention both release *and* edition breakage for never type lints #132978
Conversation
0925c06
to
8cb3d5d
Compare
This comment has been minimized.
This comment has been minimized.
8cb3d5d
to
afc883f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ty
I actually think that we should not be warning this in deps yet... warning this in deps is currently unactionable from the user perspective (except for possibly upgrading a crate version), and I think it may need additional approval from T-lang 🤔 |
6d4aa37
to
de34288
Compare
@compiler-errors I've reverted the change making the lints reported in deps. |
ty :> |
@@ -4185,7 +4185,7 @@ declare_lint! { | |||
Warn, | |||
"never type fallback affecting unsafe function calls", | |||
@future_incompatible = FutureIncompatibleInfo { | |||
reason: FutureIncompatibilityReason::FutureReleaseSemanticsChange, | |||
reason: FutureIncompatibilityReason::EditionAndFutureReleaseError(Edition::Edition2024), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hm, do we want to maintain the fact that this is a semantics change? i think we kinda care
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
whoops i forgot to finish my sentece -- we kinda care about this difference, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, we should maintain this fact. Oops ^^'
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed.
de34288
to
5aa873b
Compare
This comment has been minimized.
This comment has been minimized.
...rather than a future error
5aa873b
to
673bb5e
Compare
@bors r+ rollup |
…kind, r=compiler-errors Mention both release *and* edition breakage for never type lints This PR makes ~~two changes~~ a change to the never type lints (`dependency_on_unit_never_type_fallback` and `never_type_fallback_flowing_into_unsafe`): 1. Change the wording of the note to mention that the breaking change will be made in an edition _and_ in a future release 2. ~~Make these warnings be reported in deps (hopefully the lints are matured enough)~~ r? `@compiler-errors` cc `@ehuss` closes rust-lang#132930
…kind, r=compiler-errors Mention both release *and* edition breakage for never type lints This PR makes ~~two changes~~ a change to the never type lints (`dependency_on_unit_never_type_fallback` and `never_type_fallback_flowing_into_unsafe`): 1. Change the wording of the note to mention that the breaking change will be made in an edition _and_ in a future release 2. ~~Make these warnings be reported in deps (hopefully the lints are matured enough)~~ r? `@compiler-errors` cc `@ehuss` closes rust-lang#132930
…llaumeGomez Rollup of 5 pull requests Successful merges: - rust-lang#132936 (For expr `return (_ = 42);` unused_paren lint should not be triggered) - rust-lang#132956 (Add visit_coroutine_kind to ast::Visitor) - rust-lang#132978 (Mention both release *and* edition breakage for never type lints) - rust-lang#133074 (make UI test OS-agnostic) - rust-lang#133080 (Fix span edition for 2024 RPIT coming from an external macro ) r? `@ghost` `@rustbot` modify labels: rollup
Rollup merge of rust-lang#132978 - WaffleLapkin:very-semantic-change-kind, r=compiler-errors Mention both release *and* edition breakage for never type lints This PR makes ~~two changes~~ a change to the never type lints (`dependency_on_unit_never_type_fallback` and `never_type_fallback_flowing_into_unsafe`): 1. Change the wording of the note to mention that the breaking change will be made in an edition _and_ in a future release 2. ~~Make these warnings be reported in deps (hopefully the lints are matured enough)~~ r? ``@compiler-errors`` cc ``@ehuss`` closes rust-lang#132930
This PR makes
two changesa change to the never type lints (dependency_on_unit_never_type_fallback
andnever_type_fallback_flowing_into_unsafe
):Make these warnings be reported in deps (hopefully the lints are matured enough)r? @compiler-errors
cc @ehuss
closes #132930