-
Notifications
You must be signed in to change notification settings - Fork 12.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle subpatterns from macro expansion
Unfortunately, we can't always offer a machine-applicable suggestion in such cases.
- Loading branch information
1 parent
25b6844
commit e69752d
Showing
6 changed files
with
68 additions
and
27 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 |
---|---|---|
@@ -1,11 +1,12 @@ | ||
//@ compile-flags: --edition 2024 -Z unstable-options | ||
//@ edition: 2024 | ||
//@ compile-flags: -Z unstable-options | ||
|
||
// This contains a binding in edition 2024, so if matched with a reference binding mode it will end | ||
// up with a `mut ref mut` binding mode. We use this to test the migration lint on patterns with | ||
// mixed editions. | ||
#[macro_export] | ||
macro_rules! mixed_edition_pat { | ||
() => { | ||
Some(mut _x) | ||
($foo:ident) => { | ||
Some(mut $foo) | ||
}; | ||
} |
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