Various never type test improvements#149541
Merged
bors merged 14 commits intorust-lang:mainfrom Dec 3, 2025
Merged
Conversation
Collaborator
|
r? @SparrowLii rustbot has assigned @SparrowLii. Use |
We used to allow `T -> !` coercions (yes!! not `! -> T`) in unreachable code. This was later removed during 2018 stabilization attempt, see: - rust-lang#40800 - rust-lang@59688e1 - rust-lang#46325 I've kept `tests/ui/coercion/coerce-to-bang-cast.rs`, as that is a reasonable test for us *not* having `-> !` coercions.
b5f82d4 to
87dbc29
Compare
Collaborator
|
This PR was rebased onto a different main commit. Here's a range-diff highlighting what actually changed. Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers. |
This comment has been minimized.
This comment has been minimized.
Contributor
|
r=me with fixed CI |
Duplicate of `from_infer_breaking_with_unit_fallback.rs` and `question_mark_from_never.rs`
I don't think they are testing anything anymore
there are only 1 test in that directory, probably created by mistake.
87dbc29 to
4b6b62a
Compare
This comment has been minimized.
This comment has been minimized.
4b6b62a to
cb5318d
Compare
Contributor
|
@bors r+ rollup |
Collaborator
bors
added a commit
that referenced
this pull request
Dec 3, 2025
Rollup of 5 pull requests Successful merges: - #148918 (Remove an outdated test) - #149244 (Fix std::mem::drop rustdoc misleading statement) - #149532 (Rename supertrait item shadowing lints) - #149541 (Various never type test improvements) - #149590 (linker: Remove special case for `rust-lld` in `detect_self_contained_mingw`) r? `@ghost` `@rustbot` modify labels: rollup
rust-timer
added a commit
that referenced
this pull request
Dec 3, 2025
Rollup merge of #149541 - WaffleLapkin:never-test, r=lcnr Various never type test improvements I want to make sure that the never type ui tests are actually sensible, and to do so I'm trying to clean them up. This mainly adds comments explaining test purposes and removes outdated stuff. I imagine best reviewed commit-by-commit, I tried to write useful descriptions and group things into small commits. cc `@lcnr` (I removed `fallback`/`nofallback` terminology in b5f82d4)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I want to make sure that the never type ui tests are actually sensible, and to do so I'm trying to clean them up. This mainly adds comments explaining test purposes and removes outdated stuff.
I imagine best reviewed commit-by-commit, I tried to write useful descriptions and group things into small commits.
cc @lcnr (I removed
fallback/nofallbackterminology in b5f82d4)