-
Notifications
You must be signed in to change notification settings - Fork 12.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Do not mark unit variants as used when in path pattern
Record that we are processing a pattern so that code responsible for handling path resolution can correctly decide whether to mark it as used or not.
- Loading branch information
Showing
3 changed files
with
41 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
warning: variant is never constructed: `B` | ||
--> $DIR/const-and-self.rs:33:5 | ||
| | ||
LL | B, | ||
| ^ | ||
| | ||
note: the lint level is defined here | ||
--> $DIR/const-and-self.rs:3:9 | ||
| | ||
LL | #![warn(dead_code)] | ||
| ^^^^^^^^^ | ||
|
||
warning: variant is never constructed: `C` | ||
--> $DIR/const-and-self.rs:34:5 | ||
| | ||
LL | C, | ||
| ^ | ||
|
||
warning: 2 warnings emitted | ||
|