forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
in which the elided-lifetimes-in-paths lint stops firing on
'_
`is_elided` is true for both underscore (`'_`) and implicit (no representation in source code) lifetimes, but we don't want to fire the lint on the former, because the entire point of the lint is to suggest changing the latter to the former (see the initial issue rust-lang#45992). It seems unfortunate for there to be ambiguity on whether the word "elided" includes underscore lifetimes or not—the mandate of the elided-lifetimes-in-paths lint seems to suggest it doesn't, whereas the `is_elided` method seems to suggest it does—but it's beyond us to resolve that in this commit. For now, let the message say "implicit" for definiteness. This relates to rust-lang#52041.
- Loading branch information
1 parent
9573841
commit 3d4c2ed
Showing
4 changed files
with
19 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters