-
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
Refactorings in preparation for const value trees #77227
The head ref may contain hidden characters: "const_val_\u{1F333}_prelude"
Conversation
This comment has been minimized.
This comment has been minimized.
@bors try @rust-timer queue |
Awaiting bors try build completion |
⌛ Trying commit 89f2ad1a114cc01b7a4c62d6d0ebf6f77d21622b with merge 134bd8a017e8ebd9440a86f3e0e8e17c74265fac... |
I'm a big fan just for this alone. :) I had started proper encapsulation a year ago or so but gave up when I realized how many things I'd have to change/duplicate. Thanks for pushing it through! |
The job Click to expand the log.
I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
💔 Test failed - checks-actions |
@bors try @rust-timer queue |
Awaiting bors try build completion |
⌛ Trying commit 80ba12b12c3223608dd35bf0f6ab637f4107c397 with merge 29ff7ae431118bb8c870e65f059956edd80d72bd... |
The job Click to expand the log.
I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
💔 Test failed - checks-actions |
@bors try @rust-timer queue |
Awaiting bors try build completion |
⌛ Trying commit 4a76f0c2e42d903fa47034b0e38409189c4aab56 with merge 048704194617fee95a0d314d059abe90713b565a... |
☀️ Try build successful - checks-actions, checks-azure |
Queued 048704194617fee95a0d314d059abe90713b565a with parent 6f9a8a7, future comparison URL. |
Finished benchmarking try commit (048704194617fee95a0d314d059abe90713b565a): comparison url. Benchmarking this pull request likely means that it is perf-sensitive, so we're automatically marking it as not fit for rolling up. Please note that if the perf results are neutral, you should likely undo the rollup=never given below by specifying Importantly, though, if the results of this run are non-neutral do not roll this PR up -- it will mask other regressions or improvements in the roll up. @bors rollup=never |
I think there's two regressions, one for serializing data, one for check_match, so I'm testing just the first part in #77261 |
…r, r=matthewjasper Deduplicate and generalize some (de/)serializer impls I noticed this while implementing rust-lang#77227 and getting a "not implemented for [T; 16]" error. There's likely more things we can deduplicate in this file, but I didn't need any additional changes.
after the last nits are fixed, r=me for the Miri and CTFE changes. @bjorn3 can you check the cranelift changes? |
@bors r=RalfJung |
📌 Commit 6e6c8a8 has been approved by |
Co-authored-by: Ralf Jung <post@ralfj.de>
Co-authored-by: Ralf Jung <post@ralfj.de>
@bors r=RalfJung |
📌 Commit 332750f has been approved by |
☀️ Test successful - checks-actions |
Tested on commit rust-lang/rust@75f1db1. Direct link to PR: <rust-lang/rust#77227> 💔 miri on windows: test-pass → build-fail (cc @oli-obk @eddyb @RalfJung). 💔 miri on linux: test-pass → build-fail (cc @oli-obk @eddyb @RalfJung).
cc #72396
This PR changes the
Scalar::Bits { data: u128, size: u8 }
variant toScalar::Bits(ScalarInt)
whereScalarInt
contains the same information, but isrepr(packed)
. The reason for using a packed struct is to allow enum variant packing to keep the original size ofScalar
instead of adding another word to its size due to padding.Other than that the PR just gets rid of all the inspection of the internal fields of
Scalar::Bits
which were frankly scary. These fields have invariants that we need to uphold and we can't do that without making the fields private.r? @ghost