about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
diff options
context:
space:
mode:
authorYuki Okushi <jtitor@2k36.org>2021-06-29 08:46:16 +0900
committerGitHub <noreply@github.com>2021-06-29 08:46:16 +0900
commita89c6be16ecdb9584d2aa921bd094d83ebd3c9c7 (patch)
treebc36fa7c7e93f5429eb16a35e48aefd912d6f24f /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
parentaf3c1544e2e2be7142a6f6adcdbcfaa17014b515 (diff)
parentf333b4795c53991e513ec06f25f496c9d8075c88 (diff)
downloadrust-a89c6be16ecdb9584d2aa921bd094d83ebd3c9c7.tar.gz
rust-a89c6be16ecdb9584d2aa921bd094d83ebd3c9c7.zip
Rollup merge of #86678 - FabianWolff:issue-86667, r=jackh726
Fix garbled suggestion for missing lifetime specifier

This PR fixes #86667. The suggestion code currently checks whether there is a generic parameter that is not a synthetic `impl Trait` parameter and, if so, suggests to insert a new lifetime `'a` before that generic parameter. However, it does not make sense to insert `'a` in front of an elided lifetime parameter, since these are synthetic as well, which leads to the garbled suggestion in #86667.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions