Uh oh!
There was an error while loading. Please reload this page.
Better error for non const PartialEq call generated by match - #112232
Conversation
rustbot
commented
Jun 3, 2023
r? @b-naber (rustbot has picked a reviewer for you, use r? to override) |
rustbot
commented
Jun 3, 2023
This PR changes Stable MIR This PR changes MIR cc @oli-obk, @RalfJung, @JakobDegen, @davidtwco, @celinval, @vakaras Some changes occurred to the CTFE / Miri engine cc @rust-lang/miri Some changes occurred to MIR optimizations cc @rust-lang/wg-mir-opt |
This comment has been minimized.
This comment has been minimized.
f565198 to
fd60cbcComparerustbot
commented
Jun 3, 2023
Some changes occurred in compiler/rustc_codegen_cranelift cc @bjorn3 Some changes occurred in src/tools/clippy cc @rust-lang/clippy |
There was a problem hiding this comment.
Does this help note appear to users on stable too? It seems confusing either way, as adding it doesn't fix the error (just makes it slightly more detailed).
There was a problem hiding this comment.
No it doesn't. Stable users don't get the suggestion to add unstable features.
b-naber
left a comment
There was a problem hiding this comment.
LGTM. Had some thoughts/nits.
There was a problem hiding this comment.
Did you include this as a reminder to be fixed in this PR or do you want to change this later?
There was a problem hiding this comment.
I want to change this later, not in this PR
There was a problem hiding this comment.
Should this use a different name? Isn't desugaring exclusively used to refer to lowering of source-level constructs to internal constructs? So maybe ThirCallSource or something would be more appropriate?
There was a problem hiding this comment.
I'm not sure if ThirCallSource would be better as that means Option<ThirCallSource>::None means that there was no call source from THIR. Option<CallDesugaring>::None suggests that it was a normal call. For CallDesugaring::Misc they still didn't come from normal calls so it would still mean using calls internally to represent code that does not explicitly try to call functions
There was a problem hiding this comment.
Why can't we do this? 😅
enum ThirCallSource {
HirCall,
OverloadedOperator,
MatchCmp,
Misc,
}
There was a problem hiding this comment.
Can you add a similar comment to the one in TerminatorKind?
bors
commented
Jun 15, 2023
☔ The latest upstream changes (presumably #112625) made this pull request unmergeable. Please resolve the merge conflicts. |
fd60cbc to
f345403Compare
This comment has been minimized.
This comment has been minimized.
bors
commented
Jun 17, 2023
☔ The latest upstream changes (presumably #100036) made this pull request unmergeable. Please resolve the merge conflicts. |
61db4ed to
3de318bCompare3de318b to
89c24afCompareb-naber
commented
Jun 18, 2023
Thanks for changing that. @bors r+ rollup |
bors
commented
Jun 18, 2023
…sg, r=b-naber Better error for non const `PartialEq` call generated by `match` Resolvesrust-lang#90237
compiler-errors
commented
Jun 18, 2023
@bors r- failed in rollup: #112771 (comment) |
b-naber
commented
Jun 19, 2023
@bors r+ rollup |
bors
commented
Jun 19, 2023
…mpiler-errors Rollup of 8 pull requests Successful merges: - rust-lang#112232 (Better error for non const `PartialEq` call generated by `match`) - rust-lang#112499 (Fix python linting errors) - rust-lang#112596 (Suggest correct signature on missing fn returning RPITIT/AFIT) - rust-lang#112606 (Alter `Display` for `Ipv6Addr` for IPv4-compatible addresses) - rust-lang#112781 (Don't consider TAIT normalizable to hidden ty if it would result in impossible item bounds) - rust-lang#112787 (Add gha problem matcher) - rust-lang#112799 (Clean up "doc(hidden)" check) - rust-lang#112803 (Format the examples directory of cg_clif) r? `@ghost` `@rustbot` modify labels: rollup
…sg, r=b-naber Better error for non const `PartialEq` call generated by `match` Resolvesrust-lang#90237
…sg, r=b-naber Better error for non const `PartialEq` call generated by `match` Resolvesrust-lang#90237
Resolves#90237