-
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.
Rollup merge of #93061 - estebank:macr-suggestion, r=cjgillot
Only suggest adding `!` to expressions that can be macro invocation
- Loading branch information
Showing
6 changed files
with
82 additions
and
24 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
// run-rustfix | ||
fn main() { | ||
assert_eq!(1, 1); | ||
//~^ ERROR expected function, found macro `assert_eq` | ||
assert_eq! { 1, 1 }; | ||
//~^ ERROR expected struct, variant or union type, found macro `assert_eq` | ||
//~| ERROR expected identifier, found `1` | ||
//~| ERROR expected identifier, found `1` | ||
assert![true]; | ||
//~^ ERROR expected value, found macro `assert` | ||
} |
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,4 +1,11 @@ | ||
// run-rustfix | ||
fn main() { | ||
assert_eq(1, 1); | ||
//~^ ERROR expected function, found macro `assert_eq` | ||
assert_eq { 1, 1 }; | ||
//~^ ERROR expected struct, variant or union type, found macro `assert_eq` | ||
//~| ERROR expected identifier, found `1` | ||
//~| ERROR expected identifier, found `1` | ||
assert[true]; | ||
//~^ ERROR expected value, found macro `assert` | ||
} |
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