-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Stabilize
unrestricted_attribute_tokens
- Loading branch information
1 parent
8e1b5d8
commit eccc199
Showing
16 changed files
with
26 additions
and
74 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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#![feature(custom_attribute, unrestricted_attribute_tokens)] | ||
#![feature(custom_attribute)] | ||
|
||
#[my_attr = !] //~ ERROR unexpected token: `!` | ||
fn main() {} |
7 changes: 0 additions & 7 deletions
7
src/test/ui/feature-gates/feature-gate-unrestricted-attribute-tokens.rs
This file was deleted.
Oops, something went wrong.
20 changes: 0 additions & 20 deletions
20
src/test/ui/feature-gates/feature-gate-unrestricted-attribute-tokens.stderr
This file was deleted.
Oops, something went wrong.
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,2 @@ | ||
#![feature(unrestricted_attribute_tokens)] | ||
|
||
#[doc = $not_there] //~ ERROR unexpected token: `$` | ||
fn main() { } |
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
12 changes: 6 additions & 6 deletions
12
src/test/ui/marker_trait_attr/marker-attribute-with-values.stderr
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,20 +1,20 @@ | ||
error: attribute must be of the form `#[marker]` | ||
--> $DIR/marker-attribute-with-values.rs:4:1 | ||
--> $DIR/marker-attribute-with-values.rs:3:1 | ||
| | ||
LL | #[marker(always)] | ||
| ^^^^^^^^^^^^^^^^^ | ||
|
||
error: attribute must be of the form `#[marker]` | ||
--> $DIR/marker-attribute-with-values.rs:8:1 | ||
--> $DIR/marker-attribute-with-values.rs:7:1 | ||
| | ||
LL | #[marker("never")] | ||
| ^^^^^^^^^^^^^^^^^^ | ||
|
||
error: expected unsuffixed literal or identifier, found value | ||
--> $DIR/marker-attribute-with-values.rs:12:10 | ||
error: attribute must be of the form `#[marker]` | ||
--> $DIR/marker-attribute-with-values.rs:11:1 | ||
| | ||
LL | #[marker(key = value)] | ||
| ^^^ | ||
LL | #[marker(key = "value")] | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^ | ||
|
||
error: aborting due to 3 previous errors | ||
|
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,2 @@ | ||
#![feature(unrestricted_attribute_tokens)] | ||
|
||
#[path*] //~ ERROR expected one of `(`, `::`, `=`, `[`, `]`, or `{`, found `*` | ||
mod m {} |
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,6 +1,8 @@ | ||
// compile-pass | ||
|
||
#![feature(custom_attribute, unrestricted_attribute_tokens)] | ||
#![feature(custom_attribute)] | ||
|
||
#[my_attr(a b c d)] | ||
#[my_attr[a b c d]] | ||
#[my_attr{a b c d}] | ||
fn main() {} |