-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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
Codegen backend handles compare binops for the unit type #63551
Comments
I'm really new to the code base, though. Could you clarify what the |
That's |
Thanks for clarifying that! I'll go through the code and post any questions here. |
or maybe @jonas-schievink if your up to the task :) |
@luigisHat I think you just need to look at |
@jonas-schievink Thanks seems to be a little simpler then I thought once I dug into the docs. Will do hope your having a good one 👍 . |
Remove unreachable unit tuple compare binop codegen Closes rust-lang#63906 Fixes rust-lang#63551 This is based on rust-lang#63906 by @luigisHat, who had trouble with rebasing his PR.
rust/src/librustc_codegen_ssa/mir/rvalue.rs
Lines 586 to 592 in c43d03a
libcore however doesn't use those for the implementations for
PartialEq
andPartialOrd
for the unit type.rust/src/libcore/cmp.rs
Lines 933 to 939 in c43d03a
rust/src/libcore/cmp.rs
Lines 980 to 985 in c43d03a
This means that the special case in cg_ssa can be removed.
The text was updated successfully, but these errors were encountered: