about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2020-09-15 21:01:30 +0000
committerbors <bors@rust-lang.org>2020-09-15 21:01:30 +0000
commit6af1bdda54abc9e919fc1137411dfc4311e05649 (patch)
tree75d6568271b55b0f08e7eed5a44acbf85b18e6ca /compiler/rustc_codegen_llvm/src
parent07ece44a42b6cd33e59d58b5325f637f398464d2 (diff)
parent4de9a53d98533868dfa209bfb3604bba92d5e7b1 (diff)
downloadrust-6af1bdda54abc9e919fc1137411dfc4311e05649.tar.gz
rust-6af1bdda54abc9e919fc1137411dfc4311e05649.zip
Auto merge of #73595 - SNCPlay42:lifetime-after-mut, r=Mark-Simulacrum
improve diagnostics for lifetime after `&mut`

If, when parsing a borrow pointee type, we see a lifetime after `mut`, suggest placing the lifetime before `mut` and eat the lifetime to avoid a large number of unhelpful diagnostics.

There are some subtleties to avoid false positives in cases like `&mut 'a + Trait`, where `&mut ('a + Trait)` is a better suggestion.

fixes #73568
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions