6
Fix garbled suggestion for missing lifetime specifier by FabianWolff · Pull Requ...
source link: https://github.com/rust-lang/rust/pull/86678
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
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.
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK