Repository navigation
Separate Primitive::Bool and make #[repr($int)] enums always use the ABI of $int - #165481
asquared31415 wants to merge 4 commits into
Conversation
This comment has been minimized.
This comment has been minimized.
94aefad to
365f5d1
Compare
|
@bors try @rust-timer queue |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Separate `Primitive::Bool` and make `#[repr($int)]` enums always use the ABI of $int
This comment has been minimized.
This comment has been minimized.
|
oops i was so focused on making sure all the llvm-codegen tests passed that i appear to have forgotten to run the normal ui tests 😅 |
This comment has been minimized.
This comment has been minimized.
|
Finished benchmarking commit (309247f): comparison URL. Overall result: no relevant changes - no action neededBenchmarking means the PR may be perf-sensitive. Consider adding rollup=never if this change is not fit for rolling up. @rustbot label: -S-waiting-on-perf -perf-regression Instruction countThis perf run didn't have relevant results for this metric. Max RSS (memory usage)Results (primary 3.2%, secondary 0.2%)A less reliable metric. May be of interest, but not used to determine the overall result above.
CyclesThis perf run didn't have relevant results for this metric. Binary sizeThis perf run didn't have relevant results for this metric. Bootstrap: 480.462s -> 480.743s (0.06%) |
365f5d1 to
e3ff693
Compare
This comment has been minimized.
This comment has been minimized.
e3ff693 to
f45961d
Compare
There was a problem hiding this comment.
This file is one of two meaningful test changes, the rest are debug layouts changing as expected.
This function and the corresponding function converting the other way are "regressed" in that now there will be an explicit trunc or zext. They were testing for the bad behavior (a repr(u8) that's actually a i1).
The trunc/ext should go away at the assembly level though.
There was a problem hiding this comment.
This file is the second meaningful test change.
The changes here are scary because I'm not quite sure of the requirements, but I asked on zulip for a second opinion.
I believe this is a correct change, with LLVM using more knowledge about the enum tag to generate a different instruction.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
The job Click to see the possible cause of the failure (guessed by this bot) |
fixes #165026
cc rust-lang/unsafe-code-guidelines#628