diff options
| author | bors <bors@rust-lang.org> | 2020-09-15 21:01:30 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2020-09-15 21:01:30 +0000 |
| commit | 6af1bdda54abc9e919fc1137411dfc4311e05649 (patch) | |
| tree | 75d6568271b55b0f08e7eed5a44acbf85b18e6ca /compiler/rustc_codegen_llvm/src | |
| parent | 07ece44a42b6cd33e59d58b5325f637f398464d2 (diff) | |
| parent | 4de9a53d98533868dfa209bfb3604bba92d5e7b1 (diff) | |
| download | rust-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
