-
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.
Demote template check error to a lint for
#[test]
and #[bench]
- Loading branch information
1 parent
bf8fc8a
commit 6e4f161
Showing
3 changed files
with
16 additions
and
7 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
10 changes: 7 additions & 3 deletions
10
src/test/ui/feature-gate/issue-43106-gating-of-bench.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,13 +1,17 @@ | ||
error: malformed `bench` attribute input | ||
warning: attribute must be of the form `#[bench]` | ||
--> $DIR/issue-43106-gating-of-bench.rs:15:1 | ||
| | ||
LL | #![bench = "4100"] | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: must be of the form: `#[bench]` | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
| | ||
= note: `#[warn(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> | ||
|
||
error[E0601]: `main` function not found in crate `issue_43106_gating_of_bench` | ||
| | ||
= note: consider adding a `main` function to `$DIR/issue-43106-gating-of-bench.rs` | ||
|
||
error: aborting due to 2 previous errors | ||
error: aborting due to previous error | ||
|
||
For more information about this error, try `rustc --explain E0601`. |
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,17 @@ | ||
error: malformed `test` attribute input | ||
warning: attribute must be of the form `#[test]` | ||
--> $DIR/issue-43106-gating-of-test.rs:10:1 | ||
| | ||
LL | #![test = "4200"] | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: must be of the form: `#[test]` | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
| | ||
= note: `#[warn(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> | ||
|
||
error[E0601]: `main` function not found in crate `issue_43106_gating_of_test` | ||
| | ||
= note: consider adding a `main` function to `$DIR/issue-43106-gating-of-test.rs` | ||
|
||
error: aborting due to 2 previous errors | ||
error: aborting due to previous error | ||
|
||
For more information about this error, try `rustc --explain E0601`. |