sanitizers: Stabilize AddressSanitizer and LeakSanitizer for the Tier 1 targets by rcvalle · Pull Request #123617 · rust-lang/rust (original) (raw)

Runner name: 'ubuntu-24.04-16core-64gb_728cf5c5b1be'
Runner group name: 'Default Larger Runners'
Machine name: 'pkrvmberfyhpb9w'
##[group]Operating System
Ubuntu
24.04.2
LTS
##[endgroup]
---
#18 exporting to docker image format
#18 sending tarball 20.5s done
#18 DONE 26.9s
##[endgroup]
Setting extra environment values for docker:  --env ENABLE_GCC_CODEGEN=1 --env GCC_EXEC_PREFIX=/usr/lib/gcc/
[CI_JOB_NAME=x86_64-gnu-llvm-19]
[CI_JOB_NAME=x86_64-gnu-llvm-19]
debug: `DISABLE_CI_RUSTC_IF_INCOMPATIBLE` configured.
---
sccache: Listening on address 127.0.0.1:4226
##[group]Configure the build
configure: processing command line
configure: 
configure: build.configure-args := ['--build=x86_64-unknown-linux-gnu', '--llvm-root=/usr/lib/llvm-19', '--enable-llvm-link-shared', '--set', 'rust.randomize-layout=true', '--set', 'rust.thin-lto-import-instr-limit=10', '--set', 'build.print-step-timings', '--enable-verbose-tests', '--set', 'build.metrics', '--enable-verbose-configure', '--enable-sccache', '--disable-manage-submodules', '--enable-locked-deps', '--enable-cargo-native-static', '--set', 'rust.codegen-units-std=1', '--set', 'dist.compression-profile=balanced', '--dist-compression-formats=xz', '--set', 'rust.lld=false', '--disable-dist-src', '--release-channel=nightly', '--enable-debug-assertions', '--enable-overflow-checks', '--enable-llvm-assertions', '--set', 'rust.verify-llvm-ir', '--set', 'rust.codegen-backends=llvm,cranelift,gcc', '--set', 'llvm.static-libstdcpp', '--set', 'gcc.download-ci-gcc=true', '--enable-new-symbol-mangling']
configure: build.build          := x86_64-unknown-linux-gnu
configure: target.x86_64-unknown-linux-gnu.llvm-config := /usr/lib/llvm-19/bin/llvm-config
configure: llvm.link-shared     := True
configure: rust.randomize-layout := True
configure: rust.thin-lto-import-instr-limit := 10
---
diff of stderr:

60    | ------------------------- not a function
61 
62 error: `#[no_sanitize(...)]` should be applied to a function
-   --> $DIR/no-sanitize.rs:42:15
+   --> $DIR/no-sanitize.rs:41:15
64    |
65 LL | #[no_sanitize("address")]
66    |               ^^^^^^^^^
---
To only update this specific test, also pass `--test-args attributes/no-sanitize.rs`

error: 1 errors occurred comparing output.
status: exit status: 1
command: env -u RUSTC_LOG_COLOR RUSTC_ICE="0" RUST_BACKTRACE="short" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/tests/ui/attributes/no-sanitize.rs" "-Zthreads=1" "-Zsimulate-remapped-rust-src-base=/rustc/FAKE_PREFIX" "-Ztranslate-remapped-path-to-local-path=no" "-Z" "ignore-directory-in-diagnostics-source-blocks=/cargo" "-Z" "ignore-directory-in-diagnostics-source-blocks=/checkout/vendor" "--sysroot" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2" "--target=x86_64-unknown-linux-gnu" "--check-cfg" "cfg(test,FALSE)" "--error-format" "json" "--json" "future-incompat" "-Ccodegen-units=1" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-Zwrite-long-types-to-disk=no" "-Cstrip=debuginfo" "--emit" "metadata" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/attributes/no-sanitize" "-A" "unused" "-A" "internal_features" "-Crpath" "-Cdebuginfo=0" "-Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers"
stdout: none
--- stderr -------------------------------
error: `#[no_sanitize(memory)]` should be applied to a function
##[error]  --> /checkout/tests/ui/attributes/no-sanitize.rs:6:19
   |
LL |       #[no_sanitize(memory)] //~ ERROR `#[no_sanitize(memory)]` should be applied to a function
   |                     ^^^^^^
LL | /     {
LL | |         1
LL | |     };
   | |_____- not a function

error: `#[no_sanitize(memory)]` should be applied to a function
##[error]  --> /checkout/tests/ui/attributes/no-sanitize.rs:12:15
   |
LL | #[no_sanitize(memory)] //~ ERROR `#[no_sanitize(memory)]` should be applied to a function
   |               ^^^^^^
LL | type InvalidTy = ();
   | -------------------- not a function

error: `#[no_sanitize(memory)]` should be applied to a function
##[error]  --> /checkout/tests/ui/attributes/no-sanitize.rs:15:15
   |
LL | #[no_sanitize(memory)] //~ ERROR `#[no_sanitize(memory)]` should be applied to a function
   |               ^^^^^^
LL | mod invalid_module {}
   | --------------------- not a function

error: `#[no_sanitize(memory)]` should be applied to a function
##[error]  --> /checkout/tests/ui/attributes/no-sanitize.rs:19:27
   |
LL |     let _ = #[no_sanitize(memory)] //~ ERROR `#[no_sanitize(memory)]` should be applied to a function
   |                           ^^^^^^
LL |     (|| 1);
   |     ------ not a function

error: `#[no_sanitize(memory)]` should be applied to a function
##[error]  --> /checkout/tests/ui/attributes/no-sanitize.rs:23:15
   |
LL | #[no_sanitize(memory)] //~ ERROR `#[no_sanitize(memory)]` should be applied to a function
   |               ^^^^^^
LL | struct F;
   | --------- not a function

error: `#[no_sanitize(memory)]` should be applied to a function
##[error]  --> /checkout/tests/ui/attributes/no-sanitize.rs:26:15
   |
LL |   #[no_sanitize(memory)] //~ ERROR `#[no_sanitize(memory)]` should be applied to a function
   |                 ^^^^^^
LL | / impl F {
LL | |     #[no_sanitize(memory)]
LL | |     fn valid(&self) {}
LL | | }
   | |_- not a function

error: `#[no_sanitize(memory)]` should be applied to a function
##[error]  --> /checkout/tests/ui/attributes/no-sanitize.rs:32:24
   |
LL | #[no_sanitize(address, memory)] //~ ERROR `#[no_sanitize(memory)]` should be applied to a function
   |                        ^^^^^^
LL | static INVALID : i32 = 0;
   | ------------------------- not a function

error: `#[no_sanitize(...)]` should be applied to a function
##[error]  --> /checkout/tests/ui/attributes/no-sanitize.rs:41:15
   |
LL | #[no_sanitize("address")]
   |               ^^^^^^^^^
...
---
   |
LL | #[no_sanitize("address")]
   |               ^^^^^^^^^
   |
   = note: expected one of: `address`, `cfi`, `hwaddress`, `kcfi`, `memory`, `memtag`, `shadow-call-stack`, or `thread`

error: aborting due to 9 previous errors
------------------------------------------