-
Notifications
You must be signed in to change notification settings - Fork 12.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert changes that belong to separate PR
- Loading branch information
Showing
7 changed files
with
16 additions
and
39 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,13 +1,13 @@ | ||
#[cfg_attr] //~ ERROR bad `cfg_attr` attribute | ||
#[cfg_attr] //~ ERROR expected `(`, found end of attribute | ||
struct S1; | ||
|
||
#[cfg_attr = ""] //~ ERROR expected `(`, found `=` | ||
struct S2; | ||
|
||
#[derive] //~ ERROR bad `derive` attribute | ||
#[derive] //~ ERROR attribute must be of the form | ||
struct S3; | ||
|
||
#[derive = ""] //~ ERROR bad `derive` attribute | ||
#[derive = ""] //~ ERROR attribute must be of the form | ||
struct S4; | ||
|
||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,26 @@ | ||
error: bad `cfg_attr` attribute | ||
error: expected `(`, found end of attribute | ||
--> $DIR/malformed-special-attrs.rs:1:1 | ||
| | ||
LL | #[cfg_attr] | ||
| ^^^^^^^^^^^ missing condition and attribute | ||
| | ||
= note: `cfg_attr` must be of the form: `#[cfg_attr(condition, attribute, other_attribute, ...)]` | ||
= note: for more information, visit <https://doc.rust-lang.org/reference/conditional-compilation.html#the-cfg_attr-attribute> | ||
| ^ expected `(` | ||
|
||
error: expected `(`, found `=` | ||
--> $DIR/malformed-special-attrs.rs:4:12 | ||
| | ||
LL | #[cfg_attr = ""] | ||
| ^ expected `(` | ||
|
||
error: bad `derive` attribute | ||
error: attribute must be of the form `#[derive(Trait1, Trait2, ...)]` | ||
--> $DIR/malformed-special-attrs.rs:7:1 | ||
| | ||
LL | #[derive] | ||
| ^^^^^^^^^ missing traits to be derived | ||
| | ||
= note: `derive` must be of the form: `#[derive(Trait1, Trait2, ...)]` | ||
| ^^^^^^^^^ | ||
|
||
error: bad `derive` attribute | ||
error: attribute must be of the form `#[derive(Trait1, Trait2, ...)]` | ||
--> $DIR/malformed-special-attrs.rs:10:1 | ||
| | ||
LL | #[derive = ""] | ||
| ^^^^^^^^^^^^^^ missing traits to be derived | ||
| | ||
= note: `derive` must be of the form: `#[derive(Trait1, Trait2, ...)]` | ||
| ^^^^^^^^^^^^^^ | ||
|
||
error: aborting due to 4 previous errors | ||
|