-
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
BTreeMap: keep an eye out on the size of the main components #77233
Conversation
|
||
#[test] | ||
fn test_sizes() { | ||
#[cfg(all(any(target_os = "windows", target_os = "unix"), target_pointer_width = "32"))] |
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.
We should be able to get away with just #[cfg(target_arch = "x86_64)]
and a single pair of asserts, I think -- that's what we do in rustc and it works well.
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.
Yeah, that seems wiser. I actually wondered what the effect is of the two u16
fields in LeafNode
that are combined - if it helps to give them each 32 bits on 64 bit platforms. But testing that doesn't have to remain in there.
d8eb0a5
to
646f0ad
Compare
646f0ad
to
3e485d7
Compare
@bors r+ rollup |
📌 Commit 3e485d7 has been approved by |
…Simulacrum BTreeMap: keep an eye out on the size of the main components r? @Mark-Simulacrum
…as-schievink Rollup of 12 pull requests Successful merges: - rust-lang#77037 (more tiny clippy cleanups) - rust-lang#77233 (BTreeMap: keep an eye out on the size of the main components) - rust-lang#77280 (Ensure that all LLVM components requested by tests are available on CI) - rust-lang#77284 (library: Forward compiler-builtins "mem" feature) - rust-lang#77296 (liveness: Use Option::None to represent absent live nodes) - rust-lang#77322 (Add unstable book docs for `-Zunsound-mir-opts`) - rust-lang#77328 (Use `rtassert!` instead of `assert!` from the child process after fork() in std::sys::unix::process::Command::spawn()) - rust-lang#77331 (Add test for async/await combined with const-generics.) - rust-lang#77338 (Fix typo in alloc vec comment) - rust-lang#77340 (Alloc vec use imported path) - rust-lang#77345 (Add test for issue rust-lang#74761) - rust-lang#77348 (Update books) Failed merges: r? `@ghost`
r? @Mark-Simulacrum