-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
rename Scalar::Bits to Scalar::Raw and bits field to data #61164
Conversation
☔ The latest upstream changes (presumably #59276) made this pull request unmergeable. Please resolve the merge conflicts. |
r=me after rebase |
I decided to also refactor how we are doing the scalar sanity checks a bit. And I'd like to see how expensive these checks are. @bors try |
rename Scalar::Bits to Scalar::Raw and bits field to data Also use this opportunity to seal some abstraction leaks (other modules constructing `Scalar::Bits` directly instead of using a constructor). r? @oli-obk
Oh and I found a bug in the signed pointer offset code that could lead to those sanity checks failing. ;) |
☀️ Try build successful - checks-travis |
@rust-timer build 2189421 |
Success: Queued 2189421 with parent 566f3d7, comparison URL. |
Finished benchmarking try commit 2189421: comparison url |
Timing looks much better than I expected! max <4%. I'll still demote some of these to |
Now with fewer assertions. @bors try |
rename Scalar::Bits to Scalar::Raw and bits field to data Also use this opportunity to seal some abstraction leaks (other modules constructing `Scalar::Bits` directly instead of using a constructor). r? @oli-obk
This comment has been minimized.
This comment has been minimized.
rename Scalar::Bits to Scalar::Raw and bits field to data Also use this opportunity to seal some abstraction leaks (other modules constructing `Scalar::Bits` directly instead of using a constructor). r? @oli-obk
☀️ Try build successful - checks-travis |
@rust-timer build f3c7924 |
Success: Queued f3c7924 with parent ab7cf71, comparison URL. |
Finished benchmarking try commit f3c7924: comparison url |
This looks good perf-wise! |
@bors r=oli-obk |
📌 Commit fe19ed8 has been approved by |
This is on the critical path to make Miri work again. @bors p=1 |
rename Scalar::Bits to Scalar::Raw and bits field to data Also use this opportunity to seal some abstraction leaks (other modules constructing `Scalar::Bits` directly instead of using a constructor). r? @oli-obk
rename Scalar::Bits to Scalar::Raw and bits field to data Also use this opportunity to seal some abstraction leaks (other modules constructing `Scalar::Bits` directly instead of using a constructor). r? @oli-obk
Rollup of 4 pull requests Successful merges: - #61123 (Allow to specify profiling data output directory as -Zself-profile argument.) - #61159 (split core::ptr module into multiple files) - #61164 (rename Scalar::Bits to Scalar::Raw and bits field to data) - #61250 (Remove special case for *ios* builds in run-make-fulldeps/print-target-list Makefile) Failed merges: r? @ghost
(which is included in rust-lang/rust#61274)
rustup rust-lang/rust#61164 (which is included in rust-lang/rust#61274) changelog: none
rustup rust-lang/rust#61164 (which is included in rust-lang/rust#61274) changelog: none
Changes: ```` Rustup to rust-lang#61203 rustup rust-lang#60928 rustup rust-lang#61164 (which is included in rust-lang#61274) ````
Changes: ```` Rustup to rust-lang/rust#61203 rustup rust-lang/rust#60928 rustup rust-lang/rust#61164 (which is included in rust-lang/rust#61274) ````
Also use this opportunity to seal some abstraction leaks (other modules constructing
Scalar::Bits
directly instead of using a constructor).r? @oli-obk