about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/Linker.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2020-12-23 21:43:28 +0000
committerbors <bors@rust-lang.org>2020-12-23 21:43:28 +0000
commit3d10d3e49d9784ba3833ccf5d56d0a4d15bb36f6 (patch)
tree3a7b8aafc02ed8876aa538d63175a42f6ff69d5b /compiler/rustc_llvm/llvm-wrapper/Linker.cpp
parent7f9c43cf98cfe1c369045399929cb098155b8374 (diff)
parent29114ff0fb79f63f14ba1958e745324cedc13b2d (diff)
downloadrust-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