mirror of
https://github.com/rust-lang/rust.git
synced 2025-11-25 06:57:04 +00:00
This removes the #[no_sanitize] attribute, which was behind an unstable feature named no_sanitize. Instead, we introduce the sanitize attribute which is more powerful and allows to be extended in the future (instead of just focusing on turning sanitizers off). This also makes sanitize(kernel_address = ..) attribute work with -Zsanitize=address To do it the same as how clang disables address sanitizer, we now disable ASAN on sanitize(kernel_address = "off") and KASAN on sanitize(address = "off"). The same was added to clang in https://reviews.llvm.org/D44981.
8 lines
294 B
Rust
8 lines
294 B
Rust
//@ normalize-stderr: "you are using [0-9]+\.[0-9]+\.[0-9]+(-[a-zA-Z0-9]+)?( \([^)]*\))?" -> "you are using $$RUSTC_VERSION"
|
|
#![feature(no_sanitize)] //~ ERROR feature has been removed
|
|
|
|
#[sanitize(address = "on")]
|
|
//~^ ERROR the `#[sanitize]` attribute is an experimental feature
|
|
fn main() {
|
|
}
|