forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto merge of rust-lang#134273 - RalfJung:de-stabilize-bench, r=<try>
de-stabilize bench attribute This has been soft-unstable since forever (rust-lang#64066), and shown in future-compat reports since Rust 1.77 (rust-lang#116274). The feature covering `bench` itself is tracked in rust-lang#50297, which has been closed despite still having active feature gates referencing it. Cc `@rust-lang/libs-api`
- Loading branch information
Showing
7 changed files
with
16 additions
and
100 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,9 +1,7 @@ | ||
//@ edition:2018 | ||
|
||
#[bench] //~ ERROR use of unstable library feature `test` | ||
//~| WARN this was previously accepted | ||
fn bench() {} | ||
|
||
use bench as _; //~ ERROR use of unstable library feature `test` | ||
//~| 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,43 +1,23 @@ | ||
error: use of unstable library feature `test`: `bench` is a part of custom test frameworks which are unstable | ||
error[E0658]: use of unstable library feature `test`: `bench` is a part of custom test frameworks which are unstable | ||
--> $DIR/bench.rs:3:3 | ||
| | ||
LL | #[bench] | ||
| ^^^^^ | ||
| | ||
= 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 #64266 <https://github.com/rust-lang/rust/issues/64266> | ||
= note: `#[deny(soft_unstable)]` on by default | ||
= note: see issue #50297 <https://github.com/rust-lang/rust/issues/50297> for more information | ||
= help: add `#![feature(test)]` to the crate attributes to enable | ||
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date | ||
|
||
error: use of unstable library feature `test`: `bench` is a part of custom test frameworks which are unstable | ||
--> $DIR/bench.rs:7:5 | ||
error[E0658]: use of unstable library feature `test`: `bench` is a part of custom test frameworks which are unstable | ||
--> $DIR/bench.rs:6:5 | ||
| | ||
LL | use bench as _; | ||
| ^^^^^ | ||
| | ||
= 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 #64266 <https://github.com/rust-lang/rust/issues/64266> | ||
= note: see issue #50297 <https://github.com/rust-lang/rust/issues/50297> for more information | ||
= help: add `#![feature(test)]` to the crate attributes to enable | ||
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date | ||
|
||
error: aborting due to 2 previous errors | ||
|
||
Future incompatibility report: Future breakage diagnostic: | ||
error: use of unstable library feature `test`: `bench` is a part of custom test frameworks which are unstable | ||
--> $DIR/bench.rs:3:3 | ||
| | ||
LL | #[bench] | ||
| ^^^^^ | ||
| | ||
= 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 #64266 <https://github.com/rust-lang/rust/issues/64266> | ||
= note: `#[deny(soft_unstable)]` on by default | ||
|
||
Future breakage diagnostic: | ||
error: use of unstable library feature `test`: `bench` is a part of custom test frameworks which are unstable | ||
--> $DIR/bench.rs:7:5 | ||
| | ||
LL | use bench as _; | ||
| ^^^^^ | ||
| | ||
= 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 #64266 <https://github.com/rust-lang/rust/issues/64266> | ||
= note: `#[deny(soft_unstable)]` on by default | ||
|
||
For more information about this error, try `rustc --explain E0658`. |
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