diff options
| author | bors <bors@rust-lang.org> | 2020-12-23 21:43:28 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2020-12-23 21:43:28 +0000 |
| commit | 3d10d3e49d9784ba3833ccf5d56d0a4d15bb36f6 (patch) | |
| tree | 3a7b8aafc02ed8876aa538d63175a42f6ff69d5b /compiler/rustc_llvm/llvm-wrapper/Linker.cpp | |
| parent | 7f9c43cf98cfe1c369045399929cb098155b8374 (diff) | |
| parent | 29114ff0fb79f63f14ba1958e745324cedc13b2d (diff) | |
| download | rust-3d10d3e49d9784ba3833ccf5d56d0a4d15bb36f6.tar.gz rust-3d10d3e49d9784ba3833ccf5d56d0a4d15bb36f6.zip | |
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`
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/Linker.cpp')
0 files changed, 0 insertions, 0 deletions
