-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rollup merge of #93824 - Amanieu:stable_cfg_target_has_atomic, r=davi…
…dtwco Stabilize cfg_target_has_atomic `target_has_atomic_equal_alignment` is now tracked separately in #93822. Closes #32976
- Loading branch information
Showing
13 changed files
with
84 additions
and
402 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
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
2 changes: 1 addition & 1 deletion
2
src/test/run-make-fulldeps/atomic-lock-free/atomic_lock_free.rs
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
14 changes: 14 additions & 0 deletions
14
src/test/ui/feature-gates/feature-gate-cfg-target-has-atomic-equal-alignment.rs
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
fn main() { | ||
cfg!(target_has_atomic_equal_alignment = "8"); | ||
//~^ ERROR `cfg(target_has_atomic_equal_alignment)` is experimental and subject to change | ||
cfg!(target_has_atomic_equal_alignment = "16"); | ||
//~^ ERROR `cfg(target_has_atomic_equal_alignment)` is experimental and subject to change | ||
cfg!(target_has_atomic_equal_alignment = "32"); | ||
//~^ ERROR `cfg(target_has_atomic_equal_alignment)` is experimental and subject to change | ||
cfg!(target_has_atomic_equal_alignment = "64"); | ||
//~^ ERROR `cfg(target_has_atomic_equal_alignment)` is experimental and subject to change | ||
cfg!(target_has_atomic_equal_alignment = "128"); | ||
//~^ ERROR `cfg(target_has_atomic_equal_alignment)` is experimental and subject to change | ||
cfg!(target_has_atomic_equal_alignment = "ptr"); | ||
//~^ ERROR `cfg(target_has_atomic_equal_alignment)` is experimental and subject to change | ||
} |
57 changes: 57 additions & 0 deletions
57
src/test/ui/feature-gates/feature-gate-cfg-target-has-atomic-equal-alignment.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 |
---|---|---|
@@ -0,0 +1,57 @@ | ||
error[E0658]: `cfg(target_has_atomic_equal_alignment)` is experimental and subject to change | ||
--> $DIR/feature-gate-cfg-target-has-atomic-equal-alignment.rs:2:10 | ||
| | ||
LL | cfg!(target_has_atomic_equal_alignment = "8"); | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
| | ||
= note: see issue #93822 <https://github.com/rust-lang/rust/issues/93822> for more information | ||
= help: add `#![feature(cfg_target_has_atomic_equal_alignment)]` to the crate attributes to enable | ||
|
||
error[E0658]: `cfg(target_has_atomic_equal_alignment)` is experimental and subject to change | ||
--> $DIR/feature-gate-cfg-target-has-atomic-equal-alignment.rs:4:10 | ||
| | ||
LL | cfg!(target_has_atomic_equal_alignment = "16"); | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
| | ||
= note: see issue #93822 <https://github.com/rust-lang/rust/issues/93822> for more information | ||
= help: add `#![feature(cfg_target_has_atomic_equal_alignment)]` to the crate attributes to enable | ||
|
||
error[E0658]: `cfg(target_has_atomic_equal_alignment)` is experimental and subject to change | ||
--> $DIR/feature-gate-cfg-target-has-atomic-equal-alignment.rs:6:10 | ||
| | ||
LL | cfg!(target_has_atomic_equal_alignment = "32"); | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
| | ||
= note: see issue #93822 <https://github.com/rust-lang/rust/issues/93822> for more information | ||
= help: add `#![feature(cfg_target_has_atomic_equal_alignment)]` to the crate attributes to enable | ||
|
||
error[E0658]: `cfg(target_has_atomic_equal_alignment)` is experimental and subject to change | ||
--> $DIR/feature-gate-cfg-target-has-atomic-equal-alignment.rs:8:10 | ||
| | ||
LL | cfg!(target_has_atomic_equal_alignment = "64"); | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
| | ||
= note: see issue #93822 <https://github.com/rust-lang/rust/issues/93822> for more information | ||
= help: add `#![feature(cfg_target_has_atomic_equal_alignment)]` to the crate attributes to enable | ||
|
||
error[E0658]: `cfg(target_has_atomic_equal_alignment)` is experimental and subject to change | ||
--> $DIR/feature-gate-cfg-target-has-atomic-equal-alignment.rs:10:10 | ||
| | ||
LL | cfg!(target_has_atomic_equal_alignment = "128"); | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
| | ||
= note: see issue #93822 <https://github.com/rust-lang/rust/issues/93822> for more information | ||
= help: add `#![feature(cfg_target_has_atomic_equal_alignment)]` to the crate attributes to enable | ||
|
||
error[E0658]: `cfg(target_has_atomic_equal_alignment)` is experimental and subject to change | ||
--> $DIR/feature-gate-cfg-target-has-atomic-equal-alignment.rs:12:10 | ||
| | ||
LL | cfg!(target_has_atomic_equal_alignment = "ptr"); | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
| | ||
= note: see issue #93822 <https://github.com/rust-lang/rust/issues/93822> for more information | ||
= help: add `#![feature(cfg_target_has_atomic_equal_alignment)]` to the crate attributes to enable | ||
|
||
error: aborting due to 6 previous errors | ||
|
||
For more information about this error, try `rustc --explain E0658`. |
118 changes: 0 additions & 118 deletions
118
src/test/ui/feature-gates/feature-gate-cfg-target-has-atomic.rs
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.