rust-lang / rust

Empowering everyone to build reliable and efficient software.
https://www.rust-lang.org
Other
99.01k stars 12.79k forks source link

Use `check-run-results` for `run-fail` test stderr #133460

Open clubby789 opened 4 days ago

clubby789 commented 4 days ago

Fixes #65865

rustbot commented 4 days ago

r? @estebank

rustbot has assigned @estebank. They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

rust-log-analyzer commented 4 days ago

The job x86_64-gnu-llvm-18 failed! Check out the build log: (web) (plain)

Click to see the possible cause of the failure (guessed by this bot) ```plain #16 exporting to docker image format #16 sending tarball 27.9s done #16 DONE 34.0s ##[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-18] debug: `DISABLE_CI_RUSTC_IF_INCOMPATIBLE` configured. --- sccache: Starting the server... ##[group]Configure the build configure: processing command line configure: configure: build.configure-args := ['--build=x86_64-unknown-linux-gnu', '--llvm-root=/usr/lib/llvm-18', '--enable-llvm-link-shared', '--set', 'rust.randomize-layout=true', '--set', 'rust.thin-lto-import-instr-limit=10', '--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', '--enable-new-symbol-mangling'] configure: target.x86_64-unknown-linux-gnu.llvm-config := /usr/lib/llvm-18/bin/llvm-config configure: llvm.link-shared := True configure: rust.randomize-layout := True configure: rust.thin-lto-import-instr-limit := 10 --- failures: ---- [ui] tests/ui/hashmap/hashmap-capacity-overflow.rs stdout ---- Saved the actual run.stderr to "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/hashmap/hashmap-capacity-overflow/hashmap-capacity-overflow.run.stderr" - thread 'main' panicked at /home/jamie/.cargo/registry/src/index.crates.io-6f17d22bba15001f/hashbrown-0.15.0/src/raw/mod.rs:84:40: + thread 'main' panicked at /cargo/registry/src/index.crates.io-6f17d22bba15001f/hashbrown-0.15.0/src/raw/mod.rs:84:40: 2 Hash table capacity overflow 4 The actual run.stderr differed from the expected run.stderr. --- ---- [ui] tests/ui/issues/issue-2470-bounds-check-overflow.rs stdout ---- Saved the actual run.stdout to "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/issues/issue-2470-bounds-check-overflow/issue-2470-bounds-check-overflow.run.stdout" diff of run.stdout: - ov1 base = 0x55681ae5eb10 - ov1 idx = 0xaad035cbd62 + ov1 base = 0x5637c5058b10 + ov1 idx = 0xac6f8a0b162 3 ov1 sizeof::() = 0x8 - ov1 idx * sizeof::() = 0x55681ae5eb10 + ov1 idx * sizeof::() = 0x5637c5058b10 The actual run.stdout differed from the expected run.stdout. Saved the actual run.stderr to "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/issues/issue-2470-bounds-check-overflow/issue-2470-bounds-check-overflow.run.stderr" --- error: 2 errors occurred comparing run output. status: exit status: 101 command: cd "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/issues/issue-2470-bounds-check-overflow" && RUSTC="/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" RUST_TEST_THREADS="16" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/issues/issue-2470-bounds-check-overflow/a" --- stdout ------------------------------- ov1 base = 0x5637c5058b10 ov1 idx = 0xac6f8a0b162 ov1 sizeof::() = 0x8 ov1 idx * sizeof::() = 0x5637c5058b10 --- stderr ------------------------------- thread 'main' panicked at /checkout/tests/ui/issues/issue-2470-bounds-check-overflow.rs:26:29: index out of bounds: the len is 3 but the index is 11849691083106 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace --- Saved the actual run.stderr to "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/mir/alignment/misaligned_rhs/misaligned_rhs.run.stderr" diff of run.stderr: 1 thread 'main' panicked at $DIR/misaligned_rhs.rs:10:18: - misaligned pointer dereference: address must be a multiple of 0x4 but is 0x7ffc65806981 + misaligned pointer dereference: address must be a multiple of 0x4 but is 0x7ffff915fce1 4 thread caused non-unwinding panic. aborting. 5 The actual run.stderr differed from the expected run.stderr. error: 1 errors occurred comparing run output. status: signal: 6 (SIGABRT) (core dumped) command: cd "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/mir/alignment/misaligned_rhs" && RUSTC="/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" RUST_TEST_THREADS="16" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/mir/alignment/misaligned_rhs/a" --- stderr ------------------------------- thread 'main' panicked at /checkout/tests/ui/mir/alignment/misaligned_rhs.rs:10:18: misaligned pointer dereference: address must be a multiple of 0x4 but is 0x7ffff915fce1 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace --- Saved the actual run.stderr to "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/mir/alignment/misaligned_lhs/misaligned_lhs.run.stderr" diff of run.stderr: 1 thread 'main' panicked at $DIR/misaligned_lhs.rs:10:9: - misaligned pointer dereference: address must be a multiple of 0x4 but is 0x7ffecb578641 + misaligned pointer dereference: address must be a multiple of 0x4 but is 0x7ffe8b56b871 4 thread caused non-unwinding panic. aborting. 5 The actual run.stderr differed from the expected run.stderr. error: 1 errors occurred comparing run output. status: signal: 6 (SIGABRT) (core dumped) command: cd "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/mir/alignment/misaligned_lhs" && RUSTC="/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" RUST_TEST_THREADS="16" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/mir/alignment/misaligned_lhs/a" --- stderr ------------------------------- thread 'main' panicked at /checkout/tests/ui/mir/alignment/misaligned_lhs.rs:10:9: misaligned pointer dereference: address must be a multiple of 0x4 but is 0x7ffe8b56b871 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace --- Saved the actual run.stderr to "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/mir/alignment/two_pointers/two_pointers.run.stderr" diff of run.stderr: 1 thread 'main' panicked at $DIR/two_pointers.rs:12:21: - misaligned pointer dereference: address must be a multiple of 0x4 but is 0x7fff8043372d + misaligned pointer dereference: address must be a multiple of 0x4 but is 0x7ffda6e4a92d 4 thread caused non-unwinding panic. aborting. 5 The actual run.stderr differed from the expected run.stderr. error: 1 errors occurred comparing run output. status: signal: 6 (SIGABRT) (core dumped) command: cd "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/mir/alignment/two_pointers" && RUSTC="/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" RUST_TEST_THREADS="16" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/mir/alignment/two_pointers/a" --- stderr ------------------------------- thread 'main' panicked at /checkout/tests/ui/mir/alignment/two_pointers.rs:12:21: misaligned pointer dereference: address must be a multiple of 0x4 but is 0x7ffda6e4a92d note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace ```
clubby789 commented 4 days ago

oops, non anonymized panic strings

rustbot commented 4 days ago

Some changes occurred in tests/ui/sanitizer

cc @rust-lang/project-exploit-mitigations, @rcvalle

clubby789 commented 4 days ago

Reverted a few tests that have more variable output

rustbot commented 4 days ago

Some changes occurred in src/tools/compiletest

cc @jieyouxu

rust-log-analyzer commented 4 days ago

The job x86_64-gnu-llvm-18 failed! Check out the build log: (web) (plain)

Click to see the possible cause of the failure (guessed by this bot) ```plain #16 exporting to docker image format #16 sending tarball 27.0s done #16 DONE 40.5s ##[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-18] debug: `DISABLE_CI_RUSTC_IF_INCOMPATIBLE` configured. --- sccache: Starting the server... ##[group]Configure the build configure: processing command line configure: configure: build.configure-args := ['--build=x86_64-unknown-linux-gnu', '--llvm-root=/usr/lib/llvm-18', '--enable-llvm-link-shared', '--set', 'rust.randomize-layout=true', '--set', 'rust.thin-lto-import-instr-limit=10', '--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', '--enable-new-symbol-mangling'] configure: target.x86_64-unknown-linux-gnu.llvm-config := /usr/lib/llvm-18/bin/llvm-config configure: llvm.link-shared := True configure: rust.randomize-layout := True configure: rust.thin-lto-import-instr-limit := 10 --- 1 warning: unexpected `cfg` condition name: `has_foo` - --> $DIR/cargo-build-script.rs:10:7 + --> $DIR$CARGO_HOME-build-script.rs:10:7 3 | 4 LL | #[cfg(has_foo)] 9 = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: 10 [lints.rust] 10 [lints.rust] 11 unexpected_cfgs = { level = "warn", check-cfg = ['cfg(has_foo)'] } + = note: see for more information about checking conditional configuration 13 = note: `#[warn(unexpected_cfgs)]` on by default 14 15 warning: unexpected `cfg` condition name: `has_foo` 15 warning: unexpected `cfg` condition name: `has_foo` - --> $DIR/cargo-build-script.rs:14:7 + --> $DIR$CARGO_HOME-build-script.rs:14:7 17 | 18 LL | #[cfg(has_foo = "yes")] 22 = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: 23 [lints.rust] 23 [lints.rust] 24 unexpected_cfgs = { level = "warn", check-cfg = ['cfg(has_foo, values("yes"))'] } + = note: see for more information about checking conditional configuration 26 27 warning: unexpected `cfg` condition value: `yes` - --> $DIR/cargo-build-script.rs:18:7 - --> $DIR/cargo-build-script.rs:18:7 + --> $DIR$CARGO_HOME-build-script.rs:18:7 29 | 30 LL | #[cfg(has_bar = "yes")] 37 = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: 38 [lints.rust] 38 [lints.rust] 39 unexpected_cfgs = { level = "warn", check-cfg = ['cfg(has_bar, values("yes"))'] } + = note: see for more information about checking conditional configuration 41 42 warning: 3 warnings emitted 43 --- To only update this specific test, also pass `--test-args check-cfg/cargo-build-script.rs` error: 1 errors occurred comparing output. status: exit status: 0 command: env -u RUSTC_LOG_COLOR CARGO_CRATE_NAME="build_script_build" RUSTC_ICE="0" RUST_BACKTRACE="short" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/tests/ui/check-cfg/cargo-build-script.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" "--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/check-cfg/cargo-build-script" "-A" "unused" "-A" "internal_features" "-Crpath" "-Cdebuginfo=0" "-Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "--crate-name=build_script_build" "--check-cfg=cfg(has_bar)" --- stderr ------------------------------- warning: unexpected `cfg` condition name: `has_foo` ##[warning] --> /checkout/tests/ui/check-cfg/cargo-build-script.rs:10:7 | | LL | #[cfg(has_foo)] | | = help: expected names are: `clippy`, `debug_assertions`, `doc`, `doctest`, `fmt_debug`, `has_bar`, `miri`, `overflow_checks`, `panic`, `proc_macro`, `relocation_model`, `rustfmt`, `sanitize`, `sanitizer_cfi_generalize_pointers`, `sanitizer_cfi_normalize_integers`, `target_abi`, `target_arch`, `target_endian`, `target_env`, `target_family`, `target_feature`, `target_has_atomic`, `target_has_atomic_equal_alignment`, `target_has_atomic_load_store`, `target_os`, `target_pointer_width`, `target_thread_local`, `target_vendor`, `test`, `ub_checks`, `unix`, and `windows` = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [lints.rust] [lints.rust] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(has_foo)'] } = note: `#[warn(unexpected_cfgs)]` on by default warning: unexpected `cfg` condition name: `has_foo` ##[warning] --> /checkout/tests/ui/check-cfg/cargo-build-script.rs:14:7 ##[warning] --> /checkout/tests/ui/check-cfg/cargo-build-script.rs:14:7 | LL | #[cfg(has_foo = "yes")] | = help: consider using a Cargo feature instead = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [lints.rust] [lints.rust] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(has_foo, values("yes"))'] } warning: unexpected `cfg` condition value: `yes` ##[warning] --> /checkout/tests/ui/check-cfg/cargo-build-script.rs:18:7 | | LL | #[cfg(has_bar = "yes")] | | | help: remove the value | = note: no expected value for `has_bar` = note: no expected value for `has_bar` = help: consider using a Cargo feature instead = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [lints.rust] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(has_bar, values("yes"))'] } warning: 3 warnings emitted ------------------------------------------ ---- [ui] tests/ui/check-cfg/cargo-feature.rs#none stdout ---- Saved the actual stderr to "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/check-cfg/cargo-feature.none/cargo-feature.none.stderr" 1 warning: unexpected `cfg` condition value: `serde` - --> $DIR/cargo-feature.rs:14:7 + --> $DIR$CARGO_HOME-feature.rs:14:7 --- 24 | 25 LL | #[cfg(tokio_unstable)] 26 | ^^^^^^^^^^^^^^ 31 [lints.rust] 32 unexpected_cfgs = { level = "warn", check-cfg = ['cfg(tokio_unstable)'] } 33 = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(tokio_unstable)");` to the top of the `build.rs` + = note: see for more information about checking conditional configuration 35 36 warning: unexpected `cfg` condition name: `CONFIG_NVME` - --> $DIR/cargo-feature.rs:26:7 - --> $DIR/cargo-feature.rs:26:7 + --> $DIR$CARGO_HOME-feature.rs:26:7 38 | 39 LL | #[cfg(CONFIG_NVME = "m")] 44 [lints.rust] 44 [lints.rust] 45 unexpected_cfgs = { level = "warn", check-cfg = ['cfg(CONFIG_NVME, values("m"))'] } 46 = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(CONFIG_NVME, values(\"m\"))");` to the top of the `build.rs` + = note: see for more information about checking conditional configuration 48 49 warning: 4 warnings emitted 50 --- To only update this specific test, also pass `--test-args check-cfg/cargo-feature.rs` error in revision `none`: 1 errors occurred comparing output. status: exit status: 0 command: env -u RUSTC_LOG_COLOR CARGO_CRATE_NAME="foo" RUSTC_ICE="0" RUST_BACKTRACE="short" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/tests/ui/check-cfg/cargo-feature.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" "--cfg" "none" "--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/check-cfg/cargo-feature.none" "-A" "unused" "-A" "internal_features" "-Crpath" "-Cdebuginfo=0" "-Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "--check-cfg=cfg(feature,values())" --- stderr ------------------------------- warning: unexpected `cfg` condition value: `serde` ##[warning] --> /checkout/tests/ui/check-cfg/cargo-feature.rs:14:7 | --- | ^^^^^^^^^^^^^^ | = help: expected names are: `clippy`, `debug_assertions`, `doc`, `doctest`, `feature`, `fmt_debug`, `miri`, `overflow_checks`, `panic`, `proc_macro`, `relocation_model`, `rustfmt`, `sanitize`, `sanitizer_cfi_generalize_pointers`, `sanitizer_cfi_normalize_integers`, `target_abi`, `target_arch`, `target_endian`, `target_env`, `target_family`, `target_feature`, `target_has_atomic`, `target_has_atomic_equal_alignment`, `target_has_atomic_load_store`, `target_os`, `target_pointer_width`, `target_thread_local`, `target_vendor`, `test`, `ub_checks`, `unix`, and `windows` = help: consider using a Cargo feature instead = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [lints.rust] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(tokio_unstable)'] } = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(tokio_unstable)");` to the top of the `build.rs` warning: unexpected `cfg` condition name: `CONFIG_NVME` ##[warning] --> /checkout/tests/ui/check-cfg/cargo-feature.rs:26:7 | | LL | #[cfg(CONFIG_NVME = "m")] | = help: consider using a Cargo feature instead = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [lints.rust] [lints.rust] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(CONFIG_NVME, values("m"))'] } = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(CONFIG_NVME, values(\"m\"))");` to the top of the `build.rs` warning: 4 warnings emitted ------------------------------------------ --- - --> $DIR/cargo-feature.rs:18:7 + --> $DIR$CARGO_HOME-feature.rs:18:7 14 | 15 LL | #[cfg(feature)] 16 | ^^^^^^^- help: specify a config value: `= "bitcode"` 17 | 18 = note: expected values for `feature` are: `bitcode` 19 = help: consider defining some features in `Cargo.toml` - = note: see for more information about checking conditional configuration --- 24 | 25 LL | #[cfg(tokio_unstable)] 26 | ^^^^^^^^^^^^^^ 31 [lints.rust] 32 unexpected_cfgs = { level = "warn", check-cfg = ['cfg(tokio_unstable)'] } 33 = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(tokio_unstable)");` to the top of the `build.rs` + = note: see for more information about checking conditional configuration 35 36 warning: unexpected `cfg` condition value: `m` - --> $DIR/cargo-feature.rs:26:7 - --> $DIR/cargo-feature.rs:26:7 + --> $DIR$CARGO_HOME-feature.rs:26:7 38 | 39 LL | #[cfg(CONFIG_NVME = "m")] 47 [lints.rust] 47 [lints.rust] 48 unexpected_cfgs = { level = "warn", check-cfg = ['cfg(CONFIG_NVME, values("m"))'] } 49 = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(CONFIG_NVME, values(\"m\"))");` to the top of the `build.rs` + = note: see for more information about checking conditional configuration 51 52 warning: 4 warnings emitted 53 --- To only update this specific test, also pass `--test-args check-cfg/cargo-feature.rs` error in revision `some`: 1 errors occurred comparing output. status: exit status: 0 command: env -u RUSTC_LOG_COLOR CARGO_CRATE_NAME="foo" RUSTC_ICE="0" RUST_BACKTRACE="short" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/tests/ui/check-cfg/cargo-feature.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" "--cfg" "some" "--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/check-cfg/cargo-feature.some" "-A" "unused" "-A" "internal_features" "-Crpath" "-Cdebuginfo=0" "-Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "--check-cfg=cfg(feature,values(\"bitcode\"))" "--check-cfg=cfg(CONFIG_NVME,values(\"y\"))" --- stderr ------------------------------- warning: unexpected `cfg` condition value: `serde` ##[warning] --> /checkout/tests/ui/check-cfg/cargo-feature.rs:14:7 | --- warning: unexpected `cfg` condition value: (none) ##[warning] --> /checkout/tests/ui/check-cfg/cargo-feature.rs:18:7 | LL | #[cfg(feature)] | ^^^^^^^- help: specify a config value: `= "bitcode"` = note: expected values for `feature` are: `bitcode` = help: consider defining some features in `Cargo.toml` = note: see for more information about checking conditional configuration warning: unexpected `cfg` condition name: `tokio_unstable` ##[warning] --> /checkout/tests/ui/check-cfg/cargo-feature.rs:22:7 | LL | #[cfg(tokio_unstable)] | ^^^^^^^^^^^^^^ | = help: expected names are: `CONFIG_NVME`, `clippy`, `debug_assertions`, `doc`, `doctest`, `feature`, `fmt_debug`, `miri`, `overflow_checks`, `panic`, `proc_macro`, `relocation_model`, `rustfmt`, `sanitize`, `sanitizer_cfi_generalize_pointers`, `sanitizer_cfi_normalize_integers`, `target_abi`, `target_arch`, `target_endian`, `target_env`, `target_family`, `target_feature`, `target_has_atomic`, `target_has_atomic_equal_alignment`, `target_has_atomic_load_store`, `target_os`, `target_pointer_width`, `target_thread_local`, `target_vendor`, `test`, `ub_checks`, `unix`, and `windows` = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [lints.rust] [lints.rust] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(tokio_unstable)'] } = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(tokio_unstable)");` to the top of the `build.rs` warning: unexpected `cfg` condition value: `m` ##[warning] --> /checkout/tests/ui/check-cfg/cargo-feature.rs:26:7 | | LL | #[cfg(CONFIG_NVME = "m")] | | | | | help: there is a expected value with a similar name: `"y"` = note: expected values for `CONFIG_NVME` are: `y` = help: consider using a Cargo feature instead = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [lints.rust] [lints.rust] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(CONFIG_NVME, values("m"))'] } = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(CONFIG_NVME, values(\"m\"))");` to the top of the `build.rs` warning: 4 warnings emitted ------------------------------------------ ---- [ui] tests/ui/check-cfg/diagnotics.rs#cargo stdout ---- Saved the actual stderr to "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/check-cfg/diagnotics.cargo/diagnotics.cargo.stderr" 5 | ^^^^^^ help: there is a config with a similar name: `feature` 6 | 7 = help: expected values for `feature` are: `foo` --- 31 help: there is a config with a similar name and different values 32 | 33 LL | #[cfg(feature = "foo")] 44 [lints.rust] 45 unexpected_cfgs = { level = "warn", check-cfg = ['cfg(no_value)'] } 46 = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(no_value)");` to the top of the `build.rs` + = note: see for more information about checking conditional configuration 48 49 warning: unexpected `cfg` condition name: `no_value` 50 --> $DIR/diagnotics.rs:28:7 50 --> $DIR/diagnotics.rs:28:7 57 [lints.rust] 58 unexpected_cfgs = { level = "warn", check-cfg = ['cfg(no_value, values("foo"))'] } 59 = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(no_value, values(\"foo\"))");` to the top of the `build.rs` + = note: see for more information about checking conditional configuration 61 help: there is a config with a similar name and no value 62 | 63 LL | #[cfg(no_values)] 63 LL | #[cfg(no_values)] 77 [lints.rust] 78 unexpected_cfgs = { level = "warn", check-cfg = ['cfg(no_values, values("bar"))'] } 79 = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(no_values, values(\"bar\"))");` to the top of the `build.rs` + = note: see for more information about checking conditional configuration 81 82 warning: unexpected `cfg` condition value: `quote"` 83 --> $DIR/diagnotics.rs:36:7 83 --> $DIR/diagnotics.rs:36:7 93 [lints.rust] 94 unexpected_cfgs = { level = "warn", check-cfg = ['cfg(quote, values("quote\""))'] } 95 = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(quote, values(\"quote\\\"\"))");` to the top of the `build.rs` + = note: see for more information about checking conditional configuration 97 98 warning: 7 warnings emitted 99 --- To only update this specific test, also pass `--test-args check-cfg/diagnotics.rs` error in revision `cargo`: 1 errors occurred comparing output. status: exit status: 0 command: env -u RUSTC_LOG_COLOR CARGO_CRATE_NAME="foo" RUSTC_ICE="0" RUST_BACKTRACE="short" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/tests/ui/check-cfg/diagnotics.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" "--cfg" "cargo" "--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/check-cfg/diagnotics.cargo" "-A" "unused" "-A" "internal_features" "-Crpath" "-Cdebuginfo=0" "-Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "--check-cfg=cfg(feature,values(\"foo\"))" "--check-cfg=cfg(no_values)" "--check-cfg=cfg(quote,values(\"quote\"))" --- stderr ------------------------------- warning: unexpected `cfg` condition name: `featur` ##[warning] --> /checkout/tests/ui/check-cfg/diagnotics.rs:9:7 | --- warning: unexpected `cfg` condition name: `featur` ##[warning] --> /checkout/tests/ui/check-cfg/diagnotics.rs:17:7 | LL | #[cfg(featur = "fo")] | = help: expected values for `feature` are: `foo` = note: see for more information about checking conditional configuration help: there is a config with a similar name and different values --- LL | #[cfg(no_value)] | ^^^^^^^^ help: there is a config with a similar name: `no_values` | = help: consider using a Cargo feature instead = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [lints.rust] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(no_value)'] } = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(no_value)");` to the top of the `build.rs` warning: unexpected `cfg` condition name: `no_value` ##[warning] --> /checkout/tests/ui/check-cfg/diagnotics.rs:28:7 | | LL | #[cfg(no_value = "foo")] | = help: consider using a Cargo feature instead = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [lints.rust] [lints.rust] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(no_value, values("foo"))'] } = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(no_value, values(\"foo\"))");` to the top of the `build.rs` help: there is a config with a similar name and no value | LL | #[cfg(no_values)] | ~~~~~~~~~ | ~~~~~~~~~ warning: unexpected `cfg` condition value: `bar` ##[warning] --> /checkout/tests/ui/check-cfg/diagnotics.rs:32:7 | LL | #[cfg(no_values = "bar")] | | | help: remove the value | = note: no expected value for `no_values` = note: no expected value for `no_values` = help: consider using a Cargo feature instead = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [lints.rust] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(no_values, values("bar"))'] } = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(no_values, values(\"bar\"))");` to the top of the `build.rs` warning: unexpected `cfg` condition value: `quote"` ##[warning] --> /checkout/tests/ui/check-cfg/diagnotics.rs:36:7 | | LL | #[cfg(quote = "quote\"")] | | | | | help: there is a expected value with a similar name: `"quote"` = note: expected values for `quote` are: `quote` = help: consider using a Cargo feature instead = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [lints.rust] [lints.rust] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(quote, values("quote\""))'] } = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(quote, values(\"quote\\\\\"\"))");` to the top of the `build.rs` warning: 7 warnings emitted ------------------------------------------ --- 1 warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item - --> $DIR/cargo-update.rs:17:1 + --> $DIR$CARGO_HOME-update.rs:17:1 3 | 4 LL | non_local_macro::non_local_impl!(LocalStruct); The actual stderr differed from the expected stderr. To update references, rerun the tests and pass the `--bless` flag To update references, rerun the tests and pass the `--bless` flag To only update this specific test, also pass `--test-args lint/non-local-defs/cargo-update.rs` error: 1 errors occurred comparing output. status: exit status: 0 command: env -u RUSTC_LOG_COLOR CARGO_CRATE_NAME="non_local_def" RUSTC_ICE="0" RUST_BACKTRACE="short" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/tests/ui/lint/non-local-defs/cargo-update.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(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/lint/non-local-defs/cargo-update" "-A" "unused" "-A" "internal_features" "-Crpath" "-Cdebuginfo=0" "-Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/lint/non-local-defs/cargo-update/auxiliary" "--edition=2021" --- stderr ------------------------------- warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item ##[warning] --> /checkout/tests/ui/lint/non-local-defs/cargo-update.rs:17:1 | | LL | non_local_macro::non_local_impl!(LocalStruct); | | | `LocalStruct` is not local | `Debug` is not local | move the `impl` block outside of this constant `_IMPL_DEBUG` ```
clubby789 commented 4 days ago

Hmm, we can't normalize $CARGO_HOME naively like other paths, because we have tests with paths containing .../cargo... - and /cargo is the CI $CARGO_HOME

rust-log-analyzer commented 4 days ago

The job x86_64-gnu-llvm-18 failed! Check out the build log: (web) (plain)

Click to see the possible cause of the failure (guessed by this bot) ```plain #16 exporting to docker image format #16 sending tarball 28.9s done #16 DONE 35.0s ##[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-18] debug: `DISABLE_CI_RUSTC_IF_INCOMPATIBLE` configured. --- sccache: Starting the server... ##[group]Configure the build configure: processing command line configure: configure: build.configure-args := ['--build=x86_64-unknown-linux-gnu', '--llvm-root=/usr/lib/llvm-18', '--enable-llvm-link-shared', '--set', 'rust.randomize-layout=true', '--set', 'rust.thin-lto-import-instr-limit=10', '--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', '--enable-new-symbol-mangling'] configure: target.x86_64-unknown-linux-gnu.llvm-config := /usr/lib/llvm-18/bin/llvm-config configure: llvm.link-shared := True configure: rust.randomize-layout := True configure: rust.thin-lto-import-instr-limit := 10 --- failures: ---- [ui] tests/ui/hashmap/hashmap-capacity-overflow.rs stdout ---- Saved the actual run.stderr to "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/hashmap/hashmap-capacity-overflow/hashmap-capacity-overflow.run.stderr" - thread 'main' panicked at $CARGO_HOME/registry/src/index.crates.io-6f17d22bba15001f/hashbrown-0.15.0/src/raw/mod.rs:84:40: + thread 'main' panicked at /cargo/registry/src/index.crates.io-6f17d22bba15001f/hashbrown-0.15.0/src/raw/mod.rs:84:40: 2 Hash table capacity overflow 4 The actual run.stderr differed from the expected run.stderr. --- ---- [ui] tests/ui/issues/issue-21763.rs stdout ---- Saved the actual stderr to "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/issues/issue-21763/issue-21763.stderr" diff of stderr: 8 = note: required because it appears within the type `(Rc<()>, Rc<()>)` 9 = note: required for `hashbrown::raw::RawTable<(Rc<()>, Rc<()>)>` to implement `Send` 10 note: required because it appears within the type `hashbrown::map::HashMap, Rc<()>, RandomState>` - --> $CARGO_HOME/registry/src/index.crates.io-6f17d22bba15001f/hashbrown-0.15.0/src/map.rs:185:12 + --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/hashbrown-0.15.0/src/map.rs:185:12 12 note: required because it appears within the type `HashMap, Rc<()>>` 13 --> $SRC_DIR/std/src/collections/hash/map.rs:LL:COL 14 note: required by a bound in `foo` The actual stderr differed from the expected stderr. To update references, rerun the tests and pass the `--bless` flag To only update this specific test, also pass `--test-args issues/issue-21763.rs` To only update this specific test, also pass `--test-args issues/issue-21763.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/issues/issue-21763.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(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/issues/issue-21763" "-A" "unused" "-A" "internal_features" "-Crpath" "-Cdebuginfo=0" "-Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" --- stderr ------------------------------- --- stderr ------------------------------- error[E0277]: `Rc<()>` cannot be sent between threads safely | | LL | foo::, Rc<()>>>(); | ^^^^^^^^^^^^^^^^^^^^^^^ `Rc<()>` cannot be sent between threads safely | = help: within `(Rc<()>, Rc<()>)`, the trait `Send` is not implemented for `Rc<()>` = note: required because it appears within the type `(Rc<()>, Rc<()>)` = note: required for `hashbrown::raw::RawTable<(Rc<()>, Rc<()>)>` to implement `Send` note: required because it appears within the type `hashbrown::map::HashMap, Rc<()>, RandomState>` --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/hashbrown-0.15.0/src/map.rs:185:12 note: required because it appears within the type `HashMap, Rc<()>>` note: required by a bound in `foo` --> /checkout/tests/ui/issues/issue-21763.rs:6:11 | LL | fn foo() {} ```
rust-log-analyzer commented 2 days ago

The job x86_64-gnu-llvm-18 failed! Check out the build log: (web) (plain)

Click to see the possible cause of the failure (guessed by this bot) ```plain #17 exporting to docker image format #17 sending tarball 28.0s done #17 DONE 33.7s ##[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-18] debug: `DISABLE_CI_RUSTC_IF_INCOMPATIBLE` configured. --- sccache: Starting the server... ##[group]Configure the build configure: processing command line configure: configure: build.configure-args := ['--build=x86_64-unknown-linux-gnu', '--llvm-root=/usr/lib/llvm-18', '--enable-llvm-link-shared', '--set', 'rust.randomize-layout=true', '--set', 'rust.thin-lto-import-instr-limit=10', '--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', '--enable-new-symbol-mangling'] configure: target.x86_64-unknown-linux-gnu.llvm-config := /usr/lib/llvm-18/bin/llvm-config configure: llvm.link-shared := True configure: rust.randomize-layout := True configure: rust.thin-lto-import-instr-limit := 10 --- Downloaded boml v0.3.1 Compiling boml v0.3.1 Compiling y v0.1.0 (/checkout/compiler/rustc_codegen_gcc/build_system) Finished `release` profile [optimized] target(s) in 3.78s Running `/checkout/obj/build/x86_64-unknown-linux-gnu/stage1-codegen/x86_64-unknown-linux-gnu/release/y test --use-system-gcc --use-backend gcc --out-dir /checkout/obj/build/x86_64-unknown-linux-gnu/stage1-tools/cg_gcc --release --mini-tests --std-tests` Using system GCC [BUILD] example [AOT] mini_core_hello_world /checkout/obj/build/x86_64-unknown-linux-gnu/stage1-tools/cg_gcc/mini_core_hello_world abc --- failures: ---- [ui] tests/ui/array-slice-vec/bounds-check-no-overflow.rs stdout ---- Saved the actual run.stderr to "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/array-slice-vec/bounds-check-no-overflow/bounds-check-no-overflow.run.stderr" 1 thread 'main' panicked at $DIR/bounds-check-no-overflow.rs:9:5: - index out of bounds: the len is 3 but the index is 2305843009213693952 + index out of bounds: the len is 3 but the index is 1073741824 ```