Correctly change type when adding adjustments on top of NeverToAny#123571
Correctly change type when adding adjustments on top of NeverToAny#123571bors merged 4 commits intorust-lang:masterfrom
NeverToAny#123571Conversation
NeverToAny
| @@ -0,0 +1,12 @@ | |||
| // skip-filecheck | |||
There was a problem hiding this comment.
I tried to use // CHECK, but could make it work, because they seem to be run on the optimized MIR, at which point everything is dead-code-eliminated.
There was a problem hiding this comment.
You can add a -Zmir-opt-level=0, which will avoid opts.
There was a problem hiding this comment.
The call is deleted even with -Zmir-opt-level=0 :(
This comment has been minimized.
This comment has been minimized.
| @@ -0,0 +1,13 @@ | |||
| //@ check-pass | |||
| // | |||
| // Regression test for <https://github.com/rust-lang/rust/issues/120600>. | |||
There was a problem hiding this comment.
this could be
// issue: rust-lang/rust#120600
There was a problem hiding this comment.
Is this this standardized anywhere? (this is not a normal test annotation, judging by no @...)
There was a problem hiding this comment.
None of the tests currently use this formatting actually....
There was a problem hiding this comment.
Is this this standardized anywhere? (this is not a normal test annotation, judging by no
@...)
(we don't have any standardized issue annotations yet AFAICT)
There was a problem hiding this comment.
None
🤔
git grep "// issue" | wc -l : 309
git grep "// issue.*rust-lang/rust" | wc -l : 41
afaik Jubilee planned to add a tidy lint at some point™
There was a problem hiding this comment.
M. something went wrong with my search... (possibly me)
There are a lot of different styles, but sure. Changed it.
86ea8a9 to
62d956f
Compare
compiler-errors
left a comment
There was a problem hiding this comment.
Thanks @WaffleLapkin, sorry for taking so long to review :>
|
@bors r+ rollup |
…, r=compiler-errors Correctly change type when adding adjustments on top of `NeverToAny` I'm concerned that the check only caught the problem with `fallback = !`, because at least MIR contained `<() as PartialEq>::eq(move _5, move _7)` where `_5: ()`. I rediscovered the issue when looking at rust-lang#123482's crater run. r? compiler-errors Fixes rust-lang#120600
…, r=compiler-errors Correctly change type when adding adjustments on top of `NeverToAny` I'm concerned that the check only caught the problem with `fallback = !`, because at least MIR contained `<() as PartialEq>::eq(move _5, move _7)` where `_5: ()`. I rediscovered the issue when looking at rust-lang#123482's crater run. r? compiler-errors Fixes rust-lang#120600
…, r=compiler-errors Correctly change type when adding adjustments on top of `NeverToAny` I'm concerned that the check only caught the problem with `fallback = !`, because at least MIR contained `<() as PartialEq>::eq(move _5, move _7)` where `_5: ()`. I rediscovered the issue when looking at rust-lang#123482's crater run. r? compiler-errors Fixes rust-lang#120600
…kingjubilee Rollup of 6 pull requests Successful merges: - rust-lang#117919 (Introduce perma-unstable `wasm-c-abi` flag) - rust-lang#123571 (Correctly change type when adding adjustments on top of `NeverToAny`) - rust-lang#123752 (Properly handle emojis as literal prefix in macros) - rust-lang#123980 ( Add an opt-in to store incoming edges in `VecGraph` + misc) - rust-lang#124110 (Fix negating `f16` and `f128` constants) - rust-lang#124116 (when suggesting RUST_BACKTRACE=1, add a special note for Miri's env var isolation) r? `@ghost` `@rustbot` modify labels: rollup
|
I think an ICE test that was added for #120600 in #122997 4 days ago is causing this PR to fail CI. Specifically tests/crashes/120600.rs and tests/crashes/120600-2.rs. |
|
Those tests just need to be deleted then. r=me after fixing the tests. @bors r- |
(this currently produces malformed mir: we call `eq` with first argument not being a reference)
62d956f to
e5a6d8d
Compare
|
@bors r=compiler-errors |
…, r=compiler-errors Correctly change type when adding adjustments on top of `NeverToAny` I'm concerned that the check only caught the problem with `fallback = !`, because at least MIR contained `<() as PartialEq>::eq(move _5, move _7)` where `_5: ()`. I rediscovered the issue when looking at rust-lang#123482's crater run. r? compiler-errors Fixes rust-lang#120600
…iaskrgr Rollup of 4 pull requests Successful merges: - rust-lang#123571 (Correctly change type when adding adjustments on top of `NeverToAny`) - rust-lang#123729 (run-make: refactor out command wrappers for `clang` and `llvm-readobj`) - rust-lang#124149 (rustdoc-search: fix description on aliases in results) - rust-lang#124155 (bootstrap: don't use rayon for sysinfo) r? `@ghost` `@rustbot` modify labels: rollup
…iaskrgr Rollup of 5 pull requests Successful merges: - rust-lang#123571 (Correctly change type when adding adjustments on top of `NeverToAny`) - rust-lang#123729 (run-make: refactor out command wrappers for `clang` and `llvm-readobj`) - rust-lang#124106 (Don't repeatedly duplicate TAIT lifetimes for each subsequently nested TAIT) - rust-lang#124149 (rustdoc-search: fix description on aliases in results) - rust-lang#124155 (bootstrap: don't use rayon for sysinfo) r? `@ghost` `@rustbot` modify labels: rollup
Rollup merge of rust-lang#123571 - WaffleLapkin:properly-adjust-never, r=compiler-errors Correctly change type when adding adjustments on top of `NeverToAny` I'm concerned that the check only caught the problem with `fallback = !`, because at least MIR contained `<() as PartialEq>::eq(move _5, move _7)` where `_5: ()`. I rediscovered the issue when looking at rust-lang#123482's crater run. r? compiler-errors Fixes rust-lang#120600
I'm concerned that the check only caught the problem with
fallback = !, because at least MIR contained<() as PartialEq>::eq(move _5, move _7)where_5: ().I rediscovered the issue when looking at #123482's crater run.
r? compiler-errors
Fixes #120600