-
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.
parser: Remove support for inner attributes on non-block expressions
- Loading branch information
1 parent
e327a82
commit 1443c76
Showing
13 changed files
with
316 additions
and
637 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
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,14 +1,14 @@ | ||
error: variable `X` should have a snake case name | ||
--> $DIR/expr_attr_paren_order.rs:19:17 | ||
--> $DIR/expr_attr_paren_order.rs:17:17 | ||
| | ||
LL | let X = 0; | ||
| ^ help: convert the identifier to snake case (notice the capitalization): `x` | ||
| | ||
note: the lint level is defined here | ||
--> $DIR/expr_attr_paren_order.rs:17:17 | ||
--> $DIR/expr_attr_paren_order.rs:15:37 | ||
| | ||
LL | #![deny(non_snake_case)] | ||
| ^^^^^^^^^^^^^^ | ||
LL | #[allow(non_snake_case)] #[deny(non_snake_case)] ( | ||
| ^^^^^^^^^^^^^^ | ||
|
||
error: aborting due to previous error | ||
|
Oops, something went wrong.