-
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
2024 dependency_on_unit_never_type_fallback
doesn't display during 2024 edition migration
#132930
Comments
the never type fallback lints are not marked as 2024 future compat, so they're not fixed in edition 2024 even though I implemented a machine applicable fix in #132383. |
I'll fix that. |
@ehuss the code does generate warnings:
|
!
changedependency_on_unit_never_type_fallback
doesn't display during 2024 edition migration
Sorry, somehow I missed that the warnings were being generated on the previous edition. I'm not sure how. I thought I ran If @compiler-errors wants to update it to be marked as the 2024 edition, I think that should be fine. It's not absolutely necessary since our policy is that the code should be warning-free before migrating. |
🤔 yeah, but would |
Correct, it will not apply the lint (and it is suppressed so it is not displayed at all) with running It would probably be best to mark it with the edition so at least the warning message tells you that it changes in 2024 instead of the nonspecific "in a future release!" |
Oh, sorry, I just now read the conversation on #132931. Given the comment in #132931 (review), then I would suggest we just close this. Sorry for the confusion on my part. |
@ehuss I think it still makes sense to mark it with the edition -- we just need to add an option to mark it as both edition and future release (i.e. #132931 (comment)). I'll work on it tomorrow. |
…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
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
I'm not entirely certain what is wrong with this particular code, but it fails in the 2024 edition without generating any warnings.
[email protected]
https://crater-reports.s3.amazonaws.com/pr-132712/try%23da25749bf5e6ba5ed862ff361c19afff2a986b2d/reg/screenshots-0.8.10/log.txt
The error after updating to 2024 is:
The relevant types are from the dbus crate.
I would expect that if this is related to
dependency_on_unit_never_type_fallback
that it should generate a warning before migrating to 2024.Meta
rustc --version --verbose
:The text was updated successfully, but these errors were encountered: