-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
The <*const T>::guaranteed_*
methods now return an option for the unknown case
#101483
Conversation
Hey! It looks like you've submitted a new PR for the library teams! If this PR contains changes to any Examples of
Some changes occurred in compiler/rustc_codegen_cranelift cc @bjorn3 |
cb65947
to
db3ee52
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. r= me if nothing else happens
I have decided to remove |
Given that we have PartialEq::eq and ne, IMO it makes sense to also have both here for CTFE ptr comparison.
|
db3ee52
to
5c11b19
Compare
I don't believe so. The reason we created |
I don't agree. We have |
These operators are inverses of each other and return a |
459b478
to
0626193
Compare
This comment was marked as outdated.
This comment was marked as outdated.
0626193
to
f632dbe
Compare
@bors r+ |
☀️ Test successful - checks-actions |
Tested on commit rust-lang/rust@5197c96. Direct link to PR: <rust-lang/rust#101483> 💔 miri on windows: test-pass → test-fail (cc @RalfJung @oli-obk). 💔 miri on linux: test-pass → test-fail (cc @RalfJung @oli-obk).
Finished benchmarking commit (5197c96): comparison URL. Overall result: ❌✅ regressions and improvements - ACTION NEEDEDNext Steps: If you can justify the regressions found in this perf run, please indicate this with @rustbot label: +perf-regression Instruction countThis is a highly reliable metric that was used to determine the overall result at the top of this comment.
Max RSS (memory usage)ResultsThis is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
CyclesResultsThis is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
Footnotes |
The big improvements are just noise from some bimodal behavior we've been observing this week. Its possible that there was some regression to cargo here, but I don't think the data shows it to be large enough to be worth investigating. (I admit, my attitude there might be colored by my frustration with the huge noise impact of the aforementioned bimodality on all of the perf results from the last week.) @rustbot label: perf-regression-triaged |
Fixes model-checking#1615 Relevant changes to rustc: - rust-lang/rust#101483: Change to intrinsics. - rust-lang/rust#94075: Change to niche opt. - rust-lang/rust#101101: Method rename.
Fixes model-checking#1615 Relevant changes to rustc: - rust-lang/rust#101483: Change to intrinsics. - rust-lang/rust#94075: Change to niche opt. - rust-lang/rust#101101: Method rename. Co-authored-by: Adrian Palacios <[email protected]>
Fixes #1615 Relevant changes to rustc: - rust-lang/rust#101483: Change to intrinsics. - rust-lang/rust#94075: Change to niche opt. - rust-lang/rust#101101: Method rename. Co-authored-by: Adrian Palacios <[email protected]>
The `<*const T>::guaranteed_*` methods now return an option for the unknown case cc rust-lang#53020 (comment) I chose `0` for "not equal" and `1` for "equal" and left `2` for the unknown case so backends can just forward to raw pointer equality and it works ✨ r? `@fee1-dead` or `@lcnr` cc `@rust-lang/wg-const-eval`
…xt (from_immediate).
…xt (from_immediate).
…xt (from_immediate).
…xt (from_immediate).
This change has occurred in [rust-lang/rust#101483][1]. [1]: rust-lang/rust#101483
cc #53020 (comment)
I chose
0
for "not equal" and1
for "equal" and left2
for the unknown case so backends can just forward to raw pointer equality and it works ✨r? @fee1-dead or @lcnr
cc @rust-lang/wg-const-eval