6

Fix garbled suggestion for missing lifetime specifier by FabianWolff · Pull Requ...

 2 years ago
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.

Copy link

Contributor

FabianWolff commented 11 days ago

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.


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK