Skip to content
Closed
Changes from 1 commit
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
3e485d7
BTreeMap: keep an eye out on the size of the main components
ssomers Sep 26, 2020
37f7956
libary: Forward compiler-builtins "mem" feature
josephlr Sep 28, 2020
d537067
Don't warn if the config file is somewhere other than `config.toml`
jyn514 Sep 28, 2020
db5b70f
move candidate_from_obligation_no_cache
lcnr Sep 28, 2020
63bb51d
Add unstable book docs for `-Zunsound-mir-opts`
wesleywiser Sep 29, 2020
c6107c5
Don't fire `const_item_mutation` lint on writes through a pointer
Aaron1011 Sep 29, 2020
a2526b4
Use `rtassert!` instead of `assert!` from the child process after for…
Sep 29, 2020
9340ee4
Ensure that all LLVM components requested by tests are available on CI
petrochenkov Sep 27, 2020
2c38504
Add test for async/await combined with const-generics.
hameerabbasi Sep 29, 2020
b141e49
Fix typo in alloc vec comment
pickfire Sep 29, 2020
f9b625f
Alloc vec use imported path
pickfire Sep 29, 2020
eb0a88f
SipHasher128: fix platform-independence confusion
tgnottingham Sep 29, 2020
f4d5275
Update books
ehuss Sep 29, 2020
15c3573
Update cargo
ehuss Sep 29, 2020
f8c5e12
Rollup merge of #77233 - ssomers:btree_size_matters, r=Mark-Simulacrum
jonas-schievink Sep 29, 2020
85b1a87
Rollup merge of #77280 - petrochenkov:llvmcomp, r=Mark-Simulacrum
jonas-schievink Sep 29, 2020
4bcd715
Rollup merge of #77284 - josephlr:mem, r=Mark-Simulacrum
jonas-schievink Sep 29, 2020
3b86eaf
Rollup merge of #77298 - jyn514:bootstrap-config, r=Mark-Simulacrum
jonas-schievink Sep 29, 2020
f5df84e
Rollup merge of #77305 - lcnr:candidate_from_obligation, r=davidtwco
jonas-schievink Sep 29, 2020
bf9ae51
Rollup merge of #77319 - tgnottingham:siphasher_endianness, r=nagisa
jonas-schievink Sep 29, 2020
368aa91
Rollup merge of #77322 - rust-lang:wesleywiser-patch-1, r=steveklabnik
jonas-schievink Sep 29, 2020
28552f6
Rollup merge of #77324 - Aaron1011:fix/const-item-mutation-ptr, r=pet…
jonas-schievink Sep 29, 2020
4741196
Rollup merge of #77328 - hyd-dev:assert-to-rtassert, r=Amanieu
jonas-schievink Sep 29, 2020
ad70681
Rollup merge of #77331 - hameerabbasi:issue-74906, r=lcnr
jonas-schievink Sep 29, 2020
3757db4
Rollup merge of #77338 - pickfire:patch-7, r=jyn514
jonas-schievink Sep 29, 2020
cde658f
Rollup merge of #77340 - pickfire:patch-9, r=kennytm
jonas-schievink Sep 29, 2020
cb79984
Rollup merge of #77348 - ehuss:update-books, r=ehuss
jonas-schievink Sep 29, 2020
9a978cd
Rollup merge of #77349 - ehuss:update-cargo, r=ehuss
jonas-schievink Sep 29, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
BTreeMap: keep an eye out on the size of the main components
  • Loading branch information
ssomers committed Sep 26, 2020
commit 3e485d7cf59dafbc37467c3ef1acc51f26b381d9
9 changes: 9 additions & 0 deletions library/alloc/src/collections/btree/node/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,12 @@ fn test_splitpoint() {
assert!(left_len + right_len == CAPACITY);
}
}

#[test]
#[cfg(target_arch = "x86_64")]
fn test_sizes() {
assert_eq!(core::mem::size_of::<LeafNode<(), ()>>(), 16);
assert_eq!(core::mem::size_of::<LeafNode<i64, i64>>(), 16 + CAPACITY * 8 * 2);
assert_eq!(core::mem::size_of::<InternalNode<(), ()>>(), 112);
assert_eq!(core::mem::size_of::<InternalNode<i64, i64>>(), 112 + CAPACITY * 8 * 2);
}