-
Notifications
You must be signed in to change notification settings - Fork 13k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
28 additions
and
32 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,18 +1,12 @@ | ||
// build-pass (FIXME(62277): could be check-pass?) | ||
#[doc] //~ ERROR attribute must be of the form | ||
//~^ WARN this was previously accepted | ||
#[ignore()] //~ ERROR attribute must be of the form | ||
//~^ WARN this was previously accepted | ||
#[inline = ""] //~ ERROR attribute must be of the form | ||
//~^ WARN this was previously accepted | ||
#[link] //~ ERROR attribute must be of the form | ||
//~^ WARN this was previously accepted | ||
#[link = ""] //~ ERROR attribute must be of the form | ||
//~^ WARN this was previously accepted | ||
|
||
#[doc] | ||
//~^ WARN attribute must be of the form | ||
//~| WARN this was previously accepted | ||
#[ignore()] | ||
//~^ WARN attribute must be of the form | ||
//~| WARN this was previously accepted | ||
#[inline = ""] | ||
//~^ WARN attribute must be of the form | ||
//~| WARN this was previously accepted | ||
#[link] | ||
//~^WARN attribute must be of the form | ||
//~| WARN this was previously accepted | ||
#[link = ""] | ||
//~^ WARN attribute must be of the form | ||
//~| WARN this was previously accepted | ||
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,46 +1,48 @@ | ||
warning: attribute must be of the form `#[doc(hidden|inline|...)]` or `#[doc = "string"]` | ||
--> $DIR/malformed-regressions.rs:3:1 | ||
error: attribute must be of the form `#[doc(hidden|inline|...)]` or `#[doc = "string"]` | ||
--> $DIR/malformed-regressions.rs:1:1 | ||
| | ||
LL | #[doc] | ||
| ^^^^^^ | ||
| | ||
= note: `#[warn(ill_formed_attribute_input)]` on by default | ||
= note: `#[deny(ill_formed_attribute_input)]` on by default | ||
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! | ||
= note: for more information, see issue #57571 <https://github.com/rust-lang/rust/issues/57571> | ||
|
||
warning: attribute must be of the form `#[ignore]` or `#[ignore = "reason"]` | ||
--> $DIR/malformed-regressions.rs:6:1 | ||
error: attribute must be of the form `#[ignore]` or `#[ignore = "reason"]` | ||
--> $DIR/malformed-regressions.rs:3:1 | ||
| | ||
LL | #[ignore()] | ||
| ^^^^^^^^^^^ | ||
| | ||
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! | ||
= note: for more information, see issue #57571 <https://github.com/rust-lang/rust/issues/57571> | ||
|
||
warning: attribute must be of the form `#[inline]` or `#[inline(always|never)]` | ||
--> $DIR/malformed-regressions.rs:9:1 | ||
error: attribute must be of the form `#[inline]` or `#[inline(always|never)]` | ||
--> $DIR/malformed-regressions.rs:5:1 | ||
| | ||
LL | #[inline = ""] | ||
| ^^^^^^^^^^^^^^ | ||
| | ||
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! | ||
= note: for more information, see issue #57571 <https://github.com/rust-lang/rust/issues/57571> | ||
|
||
warning: attribute must be of the form `#[link(name = "...", /*opt*/ kind = "dylib|static|...", /*opt*/ cfg = "...")]` | ||
--> $DIR/malformed-regressions.rs:12:1 | ||
error: attribute must be of the form `#[link(name = "...", /*opt*/ kind = "dylib|static|...", /*opt*/ cfg = "...")]` | ||
--> $DIR/malformed-regressions.rs:7:1 | ||
| | ||
LL | #[link] | ||
| ^^^^^^^ | ||
| | ||
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! | ||
= note: for more information, see issue #57571 <https://github.com/rust-lang/rust/issues/57571> | ||
|
||
warning: attribute must be of the form `#[link(name = "...", /*opt*/ kind = "dylib|static|...", /*opt*/ cfg = "...")]` | ||
--> $DIR/malformed-regressions.rs:15:1 | ||
error: attribute must be of the form `#[link(name = "...", /*opt*/ kind = "dylib|static|...", /*opt*/ cfg = "...")]` | ||
--> $DIR/malformed-regressions.rs:9:1 | ||
| | ||
LL | #[link = ""] | ||
| ^^^^^^^^^^^^ | ||
| | ||
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! | ||
= note: for more information, see issue #57571 <https://github.com/rust-lang/rust/issues/57571> | ||
|
||
error: aborting due to 5 previous errors | ||
|