forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 0
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 rust-lang#119235 - Urgau:missing-feature-gate-sanitiz…
…er-cfi-cfgs, r=Nilstrieb Add missing feature gate for sanitizer CFI cfgs Found during the review of rust-lang#118494 in rust-lang#118494 (comment). cc `@rcvalle`
- Loading branch information
Showing
9 changed files
with
41 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#[cfg(sanitizer_cfi_generalize_pointers)] | ||
//~^ `cfg(sanitizer_cfi_generalize_pointers)` is experimental | ||
fn foo() {} | ||
|
||
#[cfg(sanitizer_cfi_normalize_integers)] | ||
//~^ `cfg(sanitizer_cfi_normalize_integers)` is experimental | ||
fn bar() {} | ||
|
||
fn main() {} |
21 changes: 21 additions & 0 deletions
21
tests/ui/feature-gates/feature-gate-cfg-sanitizer_cfi.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,21 @@ | ||
error[E0658]: `cfg(sanitizer_cfi_generalize_pointers)` is experimental and subject to change | ||
--> $DIR/feature-gate-cfg-sanitizer_cfi.rs:1:7 | ||
| | ||
LL | #[cfg(sanitizer_cfi_generalize_pointers)] | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
| | ||
= note: see issue #89653 <https://github.com/rust-lang/rust/issues/89653> for more information | ||
= help: add `#![feature(cfg_sanitizer_cfi)]` to the crate attributes to enable | ||
|
||
error[E0658]: `cfg(sanitizer_cfi_normalize_integers)` is experimental and subject to change | ||
--> $DIR/feature-gate-cfg-sanitizer_cfi.rs:5:7 | ||
| | ||
LL | #[cfg(sanitizer_cfi_normalize_integers)] | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
| | ||
= note: see issue #89653 <https://github.com/rust-lang/rust/issues/89653> for more information | ||
= help: add `#![feature(cfg_sanitizer_cfi)]` to the crate attributes to enable | ||
|
||
error: aborting due to 2 previous errors | ||
|
||
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