rust/library/alloc
bors 3d10d3e49d Auto merge of #79521 - ssomers:btree_cleanup_2, r=Mark-Simulacrum
BTreeMap: relax the explicit borrow rule to make code shorter and safer

Expressions like `.reborrow_mut().into_len_mut()` are annoyingly long, and kind of dangerous for the reason `reborrow_mut()` is unsafe. By relaxing the single rule, we no longer have to make an exception for functions with a `borrow` name and functions like `as_leaf_mut`. This is largely restoring the declaration style of the btree::node API about a year ago, but with more explanation and consistency.

r? `@Mark-Simulacrum`
2020-12-23 21:43:28 +00:00
..
benches Reorder benches const variable 2020-09-29 21:39:24 +08:00
src Auto merge of #79521 - ssomers:btree_cleanup_2, r=Mark-Simulacrum 2020-12-23 21:43:28 +00:00
tests replace assert! with assert_eq! 2020-12-13 10:21:24 +01:00
Cargo.toml add options to use optimized and mangled compiler builtins 2020-11-15 08:23:31 +01:00