Skip to content

Rollup of 9 pull requests #140726

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 22 commits into from
May 7, 2025
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
8e599b0
de-stabilize bench attribute
RalfJung Dec 13, 2024
f5c63b9
the soft_unstable lint cannot have an example that will keep working
RalfJung Dec 13, 2024
ea68445
Move `in_external_macro` to `SyntaxContext`
Jarcho Apr 29, 2025
dd20225
Update rc.rs docs
baumanj Apr 29, 2025
e4272d1
feat: Added capability to add multiple dependencies for an LLVMFeature
madhav-madhusoodanan Apr 9, 2025
7845c01
collect all Fuchsia bindings into the `fuchsia` module
joboet May 5, 2025
cdf4143
Implement `VecDeque::truncate_front()`
vkrivopalov Mar 3, 2025
431f02d
support duplicates in the opaque_types_storage
lcnr May 3, 2025
e648e5b
rustdoc: remove unportable markdown lint and old parser
notriddle May 6, 2025
43357b4
Added `apxf` target feature support, under flag `apx_target_feature`
madhav-madhusoodanan Apr 21, 2025
c32dc2d
Added apxf target feature test
madhav-madhusoodanan Apr 21, 2025
636a138
Structurally resolve in check_ref_cast
compiler-errors May 6, 2025
6a4af82
Update rc.rs docs
baumanj May 6, 2025
60a4b93
Rollup merge of #134273 - RalfJung:de-stabilize-bench, r=ibraheemdev,…
jhpratt May 7, 2025
4a8dbe0
Rollup merge of #139534 - madhav-madhusoodanan:apx-target-feature-add…
jhpratt May 7, 2025
b7199a6
Rollup merge of #140419 - Jarcho:ctxt_external, r=Nadrieril
jhpratt May 7, 2025
25631ff
Rollup merge of #140483 - baumanj:patch-1, r=workingjubilee
jhpratt May 7, 2025
bda326f
Rollup merge of #140607 - lcnr:opaque-type-storage, r=compiler-errors
jhpratt May 7, 2025
fe97fe4
Rollup merge of #140656 - joboet:fuchsia_pal, r=workingjubilee
jhpratt May 7, 2025
5b165aa
Rollup merge of #140668 - vkrivopalov:vecdeque-truncate-front, r=jhpratt
jhpratt May 7, 2025
8984d65
Rollup merge of #140709 - notriddle:rm-unportable-markdown, r=Guillau…
jhpratt May 7, 2025
3d8ef7a
Rollup merge of #140713 - compiler-errors:check_ref_cast, r=lcnr
jhpratt May 7, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
de-stabilize bench attribute
  • Loading branch information
RalfJung committed Dec 13, 2024
commit 8e599b0daac87f8ec4a86f5e62ebf01d5f4e21f5
1 change: 0 additions & 1 deletion library/core/src/macros/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1683,7 +1683,6 @@ pub(crate) mod builtin {
#[unstable(
feature = "test",
issue = "50297",
soft,
reason = "`bench` is a part of custom test frameworks which are unstable"
)]
#[allow_internal_unstable(test, rustc_attrs, coverage_attribute)]
Expand Down
2 changes: 0 additions & 2 deletions tests/ui/feature-gates/bench.rs
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() {}
40 changes: 10 additions & 30 deletions tests/ui/feature-gates/bench.stderr
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`.
7 changes: 0 additions & 7 deletions tests/ui/lint/expansion-time.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,6 @@ macro_rules! foo {
macro_rules! m { ($i) => {} } //~ WARN missing fragment specifier
//~| WARN this was previously accepted

#[warn(soft_unstable)]
mod benches {
#[bench] //~ WARN use of unstable library feature `test`
//~| WARN this was previously accepted
fn foo() {}
}

#[deprecated = "reason"]
macro_rules! deprecated {
() => {}
Expand Down
33 changes: 2 additions & 31 deletions tests/ui/lint/expansion-time.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -26,33 +26,19 @@ note: the lint level is defined here
LL | #[warn(missing_fragment_specifier)]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^

warning: use of unstable library feature `test`: `bench` is a part of custom test frameworks which are unstable
--> $DIR/expansion-time.rs:14:7
|
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: the lint level is defined here
--> $DIR/expansion-time.rs:12:8
|
LL | #[warn(soft_unstable)]
| ^^^^^^^^^^^^^

warning: include macro expected single expression in source
--> $DIR/expansion-time-include.rs:4:1
|
LL | 2
| ^
|
note: the lint level is defined here
--> $DIR/expansion-time.rs:29:8
--> $DIR/expansion-time.rs:22:8
|
LL | #[warn(incomplete_include)]
| ^^^^^^^^^^^^^^^^^^

warning: 4 warnings emitted
warning: 3 warnings emitted

Future incompatibility report: Future breakage diagnostic:
warning: missing fragment specifier
Expand All @@ -69,18 +55,3 @@ note: the lint level is defined here
LL | #[warn(missing_fragment_specifier)]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^

Future breakage diagnostic:
warning: use of unstable library feature `test`: `bench` is a part of custom test frameworks which are unstable
--> $DIR/expansion-time.rs:14:7
|
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: the lint level is defined here
--> $DIR/expansion-time.rs:12:8
|
LL | #[warn(soft_unstable)]
| ^^^^^^^^^^^^^

Loading