Skip to content

Conversation

@Urgau
Copy link
Member

@Urgau Urgau commented Dec 17, 2025

This is done to avoid leaking the relative paths to the standard library after the overall of filenames in #149709.

Noted that the paths were already leaking before, but to a lesser extent since most (but not all) the paths embedded in the distributed rlib were absolute.

In general Cargo compiles workspace members with relative paths, so it's better anyway to remap the relative path.

In addition to our tests I have manually confirmed that it also works as expected for the printed diagnostics paths.

cf. https://rust-lang.zulipchat.com/#narrow/channel/131828-t-compiler/topic/remapping.20of.20the.20standard.20library/near/564093571

r? @jieyouxu

This is done to avoid leaking the relative paths to the standard
library after the overall of filenames.

Noted that the paths were already leaking before, but to a lesser extent
since the paths embedded in the distributed `rlib` were absolute.

In general Cargo compiles workspace members with relative paths, so it's
better anyway to remap the relative path.

cf https://rust-lang.zulipchat.com/#narrow/channel/131828-t-compiler/topic/remapping.20of.20the.20standard.20library/near/564093571
@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Dec 17, 2025
@Urgau
Copy link
Member Author

Urgau commented Dec 17, 2025

@bors try

rust-bors bot added a commit that referenced this pull request Dec 17, 2025
Prefer remapping the relative `library/` and `compiler/` directories
@rust-bors

This comment has been minimized.

@rust-bors
Copy link

rust-bors bot commented Dec 17, 2025

☀️ Try build successful (CI)
Build commit: 7b8f45c (7b8f45c196d5f10b2f859b09c58205f9f9228066, parent: 68f11a11b666b36137374b6e54fc0d013a3b26cf)

Copy link
Member

@jieyouxu jieyouxu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, let give this a try at least. If this proves problematic, we can revert.

View changes since this review

@jieyouxu
Copy link
Member

@bors r+ rollup=never

@bors
Copy link
Collaborator

bors commented Dec 18, 2025

📌 Commit 74eecf9 has been approved by jieyouxu

It is now in the queue for this repository.

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Dec 18, 2025
@bors
Copy link
Collaborator

bors commented Dec 18, 2025

⌛ Testing commit 74eecf9 with merge 0e7ebb4...

bors added a commit that referenced this pull request Dec 18, 2025
Prefer remapping the relative `library/` and `compiler/` directories

This is done to avoid leaking the relative paths to the standard library after the overall of filenames in #149709.

Noted that the paths were already leaking before, but to a lesser extent since most (but not all) the paths embedded in the distributed `rlib` were absolute.

In general Cargo compiles workspace members with relative paths, so it's better anyway to remap the relative path.

In addition to our tests I have manually confirmed that it also works as expected for the printed diagnostics paths.

cf. https://rust-lang.zulipchat.com/#narrow/channel/131828-t-compiler/topic/remapping.20of.20the.20standard.20library/near/564093571
@rust-log-analyzer
Copy link
Collaborator

The job dist-i586-gnu-i586-i686-musl failed! Check out the build log: (web) (plain enhanced) (plain)

Click to see the possible cause of the failure (guessed by this bot)
Saved the actual run.stderr to `/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/extern/extern-types-field-offset/extern-types-field-offset.run.stderr`
diff of run.stderr:

1 
- thread 'main' ($TID) panicked at library/core/src/panicking.rs:$LINE:$COL:
+ thread 'main' ($TID) panicked at /rustc/0e7ebb4f85e61918c91843de41197121cb700e36/library/core/src/panicking.rs:$LINE:$COL:
3 attempted to compute the size or alignment of extern type `Opaque`
4 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
5 thread caused non-unwinding panic. aborting.

Note: some mismatched output was normalized before being compared
- thread 'main' (107574) panicked at /rustc/0e7ebb4f85e61918c91843de41197121cb700e36/library/core/src/panicking.rs:225:5:
+ thread 'main' ($TID) panicked at /rustc/0e7ebb4f85e61918c91843de41197121cb700e36/library/core/src/panicking.rs:$LINE:$COL:


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/extern/extern-types-field-offset" && RUSTC="/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" RUST_BACKTRACE="0" RUST_TEST_THREADS="4" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/extern/extern-types-field-offset/a"
stdout: none
--- stderr -------------------------------

thread 'main' (107574) panicked at /rustc/0e7ebb4f85e61918c91843de41197121cb700e36/library/core/src/panicking.rs:225:5:
attempted to compute the size or alignment of extern type `Opaque`
---
Saved the actual run.stderr to `/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/hygiene/panic-location/panic-location.run.stderr`
diff of run.stderr:

1 
- thread 'main' ($TID) panicked at library/alloc/src/raw_vec/mod.rs:LL:CC:
+ thread 'main' ($TID) panicked at /rustc/0e7ebb4f85e61918c91843de41197121cb700e36/library/alloc/src/raw_vec/mod.rs:LL:CC:
3 capacity overflow
4 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
5 

Note: some mismatched output was normalized before being compared
- thread 'main' (115531) panicked at /rustc/0e7ebb4f85e61918c91843de41197121cb700e36/library/alloc/src/raw_vec/mod.rs:28:5:
+ thread 'main' ($TID) panicked at /rustc/0e7ebb4f85e61918c91843de41197121cb700e36/library/alloc/src/raw_vec/mod.rs:LL:CC:


The actual run.stderr differed from the expected run.stderr

error: 1 errors occurred comparing run output.
---
To only update this specific test, also pass `--test-args mir/lint/storage-live.rs`

error: 1 errors occurred comparing output.
status: exit status: 101
command: env -u RUSTC_LOG_COLOR RUSTC_ICE="0" RUST_BACKTRACE="0" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/tests/ui/mir/lint/storage-live.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=i586-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/mir/lint/storage-live" "-A" "unused" "-W" "unused_attributes" "-A" "internal_features" "-A" "unused_parens" "-A" "unused_braces" "-Crpath" "-Cdebuginfo=0" "-Lnative=/checkout/obj/build/i586-unknown-linux-gnu/native/rust-test-helpers" "-Clinker=i586-unknown-linux-gnu-gcc" "-Zlint-mir" "-Ztreat-err-as-bug"
stdout: none
--- stderr -------------------------------
note: no errors encountered even though delayed bugs were created

note: those delayed bugs will now be shown as internal compiler errors

error: internal compiler error: broken MIR in Item(DefId(0:8 ~ storage_live[e681]::multiple_storage)) (after pass CheckForceInline) at bb0[1]:
                                StorageLive(_1) which already has storage here
  --> /checkout/tests/ui/mir/lint/storage-live.rs:21:13
   |
LL |             StorageLive(a); //~ ERROR broken MIR
   |             ^^^^^^^^^^^^^^
   |
note: delayed at /rustc-dev/0e7ebb4f85e61918c91843de41197121cb700e36/compiler/rustc_mir_transform/src/lint.rs:120:26 - disabled backtrace
  --> /checkout/tests/ui/mir/lint/storage-live.rs:21:13
   |
LL |             StorageLive(a); //~ ERROR broken MIR
   |             ^^^^^^^^^^^^^^


thread 'rustc' (144931) panicked at /rustc-dev/0e7ebb4f85e61918c91843de41197121cb700e36/compiler/rustc_errors/src/lib.rs:1853:17:
aborting due to `-Z treat-err-as-bug=1`
---
note: using internal features is not supported and expected to cause internal compiler errors when used incorrectly

note: rustc 1.94.0-nightly (0e7ebb4f8 2025-12-18) running on x86_64-unknown-linux-gnu

note: compiler flags: -Z threads=1 -Z simulate-remapped-rust-src-base=/rustc/FAKE_PREFIX -Z translate-remapped-path-to-local-path=no -Z ignore-directory-in-diagnostics-source-blocks=/cargo -Z ignore-directory-in-diagnostics-source-blocks=/checkout/vendor -C codegen-units=1 -Z ui-testing -Z deduplicate-diagnostics=no -Z write-long-types-to-disk=no -C strip=debuginfo -C prefer-dynamic -C rpath -C debuginfo=0 -C linker=i586-unknown-linux-gnu-gcc -Z lint-mir -Z treat-err-as-bug

query stack during panic:
end of query stack
------------------------------------------

---

7 BOOM
8 stack backtrace:
9 
- thread 'main' ($TID) panicked at library/core/src/panicking.rs:$LINE:$COL:
+ thread 'main' ($TID) panicked at /rustc/0e7ebb4f85e61918c91843de41197121cb700e36/library/core/src/panicking.rs:$LINE:$COL:
11 panic in a destructor during cleanup
12 thread caused non-unwinding panic. aborting.
13 

Note: some mismatched output was normalized before being compared
- thread 'main' (153893) panicked at /rustc/0e7ebb4f85e61918c91843de41197121cb700e36/library/core/src/panicking.rs:233:5:
+ thread 'main' ($TID) panicked at /rustc/0e7ebb4f85e61918c91843de41197121cb700e36/library/core/src/panicking.rs:$LINE:$COL:


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/panics/panic-in-cleanup" && RUSTC="/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" RUST_BACKTRACE="0" RUST_TEST_THREADS="4" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/panics/panic-in-cleanup/a"
stdout: none
--- stderr -------------------------------

thread 'main' (153893) panicked at /checkout/tests/ui/panics/panic-in-cleanup.rs:22:5:
explicit panic
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

thread 'main' (153893) panicked at /checkout/tests/ui/panics/panic-in-cleanup.rs:16:9:
BOOM
stack backtrace:
   0: 0xf3e54f7b - std[512f13cabec77920]::backtrace_rs::backtrace::libunwind::trace
                       at /rustc/0e7ebb4f85e61918c91843de41197121cb700e36/library/std/src/../../backtrace/src/backtrace/libunwind.rs:117:9
   1: 0xf3e54f7b - std[512f13cabec77920]::backtrace_rs::backtrace::trace_unsynchronized::<std[512f13cabec77920]::sys::backtrace::_print_fmt::{closure#1}>
                       at /rustc/0e7ebb4f85e61918c91843de41197121cb700e36/library/std/src/../../backtrace/src/backtrace/mod.rs:66:14
   2: 0xf3e54f7b - std[512f13cabec77920]::sys::backtrace::_print_fmt
                       at /rustc/0e7ebb4f85e61918c91843de41197121cb700e36/library/std/src/sys/backtrace.rs:74:9
   3: 0xf3e54f7b - <<std[512f13cabec77920]::sys::backtrace::BacktraceLock>::print::DisplayBacktrace as core[ed0149da5c7c88a5]::fmt::Display>::fmt
                       at /rustc/0e7ebb4f85e61918c91843de41197121cb700e36/library/std/src/sys/backtrace.rs:44:26
   4: 0xf3e99aac - <core[ed0149da5c7c88a5]::fmt::rt::Argument>::fmt
                       at /rustc/0e7ebb4f85e61918c91843de41197121cb700e36/library/core/src/fmt/rt.rs:152:76
   5: 0xf3e99aac - core[ed0149da5c7c88a5]::fmt::write
                       at /rustc/0e7ebb4f85e61918c91843de41197121cb700e36/library/core/src/fmt/mod.rs:1686:22
   6: 0xf3e69814 - std[512f13cabec77920]::io::default_write_fmt::<std[512f13cabec77920]::sys::stdio::unix::Stderr>
                       at /rustc/0e7ebb4f85e61918c91843de41197121cb700e36/library/std/src/io/mod.rs:639:11
   7: 0xf3e69814 - <std[512f13cabec77920]::sys::stdio::unix::Stderr as std[512f13cabec77920]::io::Write>::write_fmt
                       at /rustc/0e7ebb4f85e61918c91843de41197121cb700e36/library/std/src/io/mod.rs:1994:13
   8: 0xf3e2679b - <std[512f13cabec77920]::sys::backtrace::BacktraceLock>::print
                       at /rustc/0e7ebb4f85e61918c91843de41197121cb700e36/library/std/src/sys/backtrace.rs:47:9
   9: 0xf3e2679b - std[512f13cabec77920]::panicking::default_hook::{closure#0}
                       at /rustc/0e7ebb4f85e61918c91843de41197121cb700e36/library/std/src/panicking.rs:292:27
  10: 0xf3e47438 - std[512f13cabec77920]::panicking::default_hook
                       at /rustc/0e7ebb4f85e61918c91843de41197121cb700e36/library/std/src/panicking.rs:319:9
  11: 0xf3e47615 - std[512f13cabec77920]::panicking::panic_with_hook
                       at /rustc/0e7ebb4f85e61918c91843de41197121cb700e36/library/std/src/panicking.rs:825:13
  12: 0xf3e25778 - std[512f13cabec77920]::panicking::begin_panic::<&str>::{closure#0}
                       at /rustc/0e7ebb4f85e61918c91843de41197121cb700e36/library/std/src/panicking.rs:762:9
  13: 0xf3e19ed9 - std[512f13cabec77920]::sys::backtrace::__rust_end_short_backtrace::<std[512f13cabec77920]::panicking::begin_panic<&str>::{closure#0}, !>
                       at /rustc/0e7ebb4f85e61918c91843de41197121cb700e36/library/std/src/sys/backtrace.rs:182:18
  14: 0xf3e0a849 - std[512f13cabec77920]::panicking::begin_panic::<&str>
                       at /rustc/0e7ebb4f85e61918c91843de41197121cb700e36/library/std/src/panicking.rs:761:5
  15: 0x5990c3a0 - <panic_in_cleanup[f013a81dde98b56e]::Bomb as core[ed0149da5c7c88a5]::ops::drop::Drop>::drop
  16: 0x5990c24c - core[ed0149da5c7c88a5]::ptr::drop_in_place::<panic_in_cleanup[f013a81dde98b56e]::Bomb>
  17: 0x5990c346 - panic_in_cleanup[f013a81dde98b56e]::main
  18: 0x5990c3c6 - <fn() as core[ed0149da5c7c88a5]::ops::function::FnOnce<()>>::call_once
  19: 0x5990c27c - std[512f13cabec77920]::sys::backtrace::__rust_begin_short_backtrace::<fn(), ()>
  20: 0x5990c2b2 - std[512f13cabec77920]::rt::lang_start::<()>::{closure#0}
  21: 0xf3e45d3c - <&dyn core[ed0149da5c7c88a5]::ops::function::Fn<(), Output = i32> + core[ed0149da5c7c88a5]::panic::unwind_safe::RefUnwindSafe + core[ed0149da5c7c88a5]::marker::Sync as core[ed0149da5c7c88a5]::ops::function::FnOnce<()>>::call_once
                       at /checkout/library/core/src/ops/function.rs:287:21
  22: 0xf3e45d3c - std[512f13cabec77920]::panicking::catch_unwind::do_call::<&dyn core[ed0149da5c7c88a5]::ops::function::Fn<(), Output = i32> + core[ed0149da5c7c88a5]::panic::unwind_safe::RefUnwindSafe + core[ed0149da5c7c88a5]::marker::Sync, i32>
                       at /rustc/0e7ebb4f85e61918c91843de41197121cb700e36/library/std/src/panicking.rs:581:40
  23: 0xf3e45d3c - std[512f13cabec77920]::panicking::catch_unwind::<i32, &dyn core[ed0149da5c7c88a5]::ops::function::Fn<(), Output = i32> + core[ed0149da5c7c88a5]::panic::unwind_safe::RefUnwindSafe + core[ed0149da5c7c88a5]::marker::Sync>
                       at /rustc/0e7ebb4f85e61918c91843de41197121cb700e36/library/std/src/panicking.rs:544:19
  24: 0xf3e45d3c - std[512f13cabec77920]::panic::catch_unwind::<&dyn core[ed0149da5c7c88a5]::ops::function::Fn<(), Output = i32> + core[ed0149da5c7c88a5]::panic::unwind_safe::RefUnwindSafe + core[ed0149da5c7c88a5]::marker::Sync, i32>
                       at /rustc/0e7ebb4f85e61918c91843de41197121cb700e36/library/std/src/panic.rs:359:14
  25: 0xf3e45d3c - std[512f13cabec77920]::rt::lang_start_internal::{closure#0}
                       at /rustc/0e7ebb4f85e61918c91843de41197121cb700e36/library/std/src/rt.rs:175:24
  26: 0xf3e45d3c - std[512f13cabec77920]::panicking::catch_unwind::do_call::<std[512f13cabec77920]::rt::lang_start_internal::{closure#0}, isize>
                       at /rustc/0e7ebb4f85e61918c91843de41197121cb700e36/library/std/src/panicking.rs:581:40
  27: 0xf3e45d3c - std[512f13cabec77920]::panicking::catch_unwind::<isize, std[512f13cabec77920]::rt::lang_start_internal::{closure#0}>
                       at /rustc/0e7ebb4f85e61918c91843de41197121cb700e36/library/std/src/panicking.rs:544:19
  28: 0xf3e45d3c - std[512f13cabec77920]::panic::catch_unwind::<std[512f13cabec77920]::rt::lang_start_internal::{closure#0}, isize>
                       at /rustc/0e7ebb4f85e61918c91843de41197121cb700e36/library/std/src/panic.rs:359:14
  29: 0xf3e45d3c - std[512f13cabec77920]::rt::lang_start_internal
                       at /rustc/0e7ebb4f85e61918c91843de41197121cb700e36/library/std/src/rt.rs:171:5
  30: 0x5990c227 - std[512f13cabec77920]::rt::lang_start::<()>
  31: 0x5990c459 - main
---

4 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
5 Noisy Drop
6 
- thread 'main' ($TID) panicked at library/core/src/panicking.rs:$LINE:$COL:
+ thread 'main' ($TID) panicked at /rustc/0e7ebb4f85e61918c91843de41197121cb700e36/library/core/src/panicking.rs:$LINE:$COL:
8 panic in a function that cannot unwind
9 stack backtrace:
10 thread caused non-unwinding panic. aborting.

Note: some mismatched output was normalized before being compared
- thread 'main' (154217) panicked at /rustc/0e7ebb4f85e61918c91843de41197121cb700e36/library/core/src/panicking.rs:225:5:
+ thread 'main' ($TID) panicked at /rustc/0e7ebb4f85e61918c91843de41197121cb700e36/library/core/src/panicking.rs:$LINE:$COL:


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/panics/panic-in-ffi" && RUSTC="/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" RUST_BACKTRACE="0" RUST_TEST_THREADS="4" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/panics/panic-in-ffi/a"
stdout: none
--- stderr -------------------------------

thread 'main' (154217) panicked at /checkout/tests/ui/panics/panic-in-ffi.rs:21:5:
Test
---
panic in a function that cannot unwind
stack backtrace:
   0: 0xecc6af7b - std[512f13cabec77920]::backtrace_rs::backtrace::libunwind::trace
                       at /rustc/0e7ebb4f85e61918c91843de41197121cb700e36/library/std/src/../../backtrace/src/backtrace/libunwind.rs:117:9
   1: 0xecc6af7b - std[512f13cabec77920]::backtrace_rs::backtrace::trace_unsynchronized::<std[512f13cabec77920]::sys::backtrace::_print_fmt::{closure#1}>
                       at /rustc/0e7ebb4f85e61918c91843de41197121cb700e36/library/std/src/../../backtrace/src/backtrace/mod.rs:66:14
   2: 0xecc6af7b - std[512f13cabec77920]::sys::backtrace::_print_fmt
                       at /rustc/0e7ebb4f85e61918c91843de41197121cb700e36/library/std/src/sys/backtrace.rs:74:9
   3: 0xecc6af7b - <<std[512f13cabec77920]::sys::backtrace::BacktraceLock>::print::DisplayBacktrace as core[ed0149da5c7c88a5]::fmt::Display>::fmt
                       at /rustc/0e7ebb4f85e61918c91843de41197121cb700e36/library/std/src/sys/backtrace.rs:44:26
   4: 0xeccafaac - <core[ed0149da5c7c88a5]::fmt::rt::Argument>::fmt
                       at /rustc/0e7ebb4f85e61918c91843de41197121cb700e36/library/core/src/fmt/rt.rs:152:76
   5: 0xeccafaac - core[ed0149da5c7c88a5]::fmt::write
                       at /rustc/0e7ebb4f85e61918c91843de41197121cb700e36/library/core/src/fmt/mod.rs:1686:22
   6: 0xecc7f814 - std[512f13cabec77920]::io::default_write_fmt::<std[512f13cabec77920]::sys::stdio::unix::Stderr>
                       at /rustc/0e7ebb4f85e61918c91843de41197121cb700e36/library/std/src/io/mod.rs:639:11
   7: 0xecc7f814 - <std[512f13cabec77920]::sys::stdio::unix::Stderr as std[512f13cabec77920]::io::Write>::write_fmt
                       at /rustc/0e7ebb4f85e61918c91843de41197121cb700e36/library/std/src/io/mod.rs:1994:13
   8: 0xecc3c79b - <std[512f13cabec77920]::sys::backtrace::BacktraceLock>::print
                       at /rustc/0e7ebb4f85e61918c91843de41197121cb700e36/library/std/src/sys/backtrace.rs:47:9
   9: 0xecc3c79b - std[512f13cabec77920]::panicking::default_hook::{closure#0}
                       at /rustc/0e7ebb4f85e61918c91843de41197121cb700e36/library/std/src/panicking.rs:292:27
  10: 0xecc5d438 - std[512f13cabec77920]::panicking::default_hook
                       at /rustc/0e7ebb4f85e61918c91843de41197121cb700e36/library/std/src/panicking.rs:319:9
  11: 0xecc5d615 - std[512f13cabec77920]::panicking::panic_with_hook
                       at /rustc/0e7ebb4f85e61918c91843de41197121cb700e36/library/std/src/panicking.rs:825:13
  12: 0xecc3c88d - std[512f13cabec77920]::panicking::panic_handler::{closure#0}
                       at /rustc/0e7ebb4f85e61918c91843de41197121cb700e36/library/std/src/panicking.rs:691:13
  13: 0xecc2fef9 - std[512f13cabec77920]::sys::backtrace::__rust_end_short_backtrace::<std[512f13cabec77920]::panicking::panic_handler::{closure#0}, !>
                       at /rustc/0e7ebb4f85e61918c91843de41197121cb700e36/library/std/src/sys/backtrace.rs:182:18
  14: 0xecc3e25f - __rustc[abe2b505efdecc82]::rust_begin_unwind
                       at /rustc/0e7ebb4f85e61918c91843de41197121cb700e36/library/std/src/panicking.rs:689:5
  15: 0xecc23ab2 - core[ed0149da5c7c88a5]::panicking::panic_nounwind_fmt::runtime
                       at /rustc/0e7ebb4f85e61918c91843de41197121cb700e36/library/core/src/panicking.rs:122:22
  16: 0xecc23ab2 - core[ed0149da5c7c88a5]::panicking::panic_nounwind_fmt
                       at /rustc/0e7ebb4f85e61918c91843de41197121cb700e36/library/core/src/intrinsics/mod.rs:2453:9
  17: 0xecc239ba - core[ed0149da5c7c88a5]::panicking::panic_nounwind
                       at /rustc/0e7ebb4f85e61918c91843de41197121cb700e36/library/core/src/panicking.rs:225:5
  18: 0xecc23bae - core[ed0149da5c7c88a5]::panicking::panic_cannot_unwind
                       at /rustc/0e7ebb4f85e61918c91843de41197121cb700e36/library/core/src/panicking.rs:337:5
  19: 0x586eb386 - panic_in_ffi[3a25badfe6acf07e]::panic_in_ffi
  20: 0x586eb3a5 - panic_in_ffi[3a25badfe6acf07e]::main
  21: 0x586eb426 - <fn() as core[ed0149da5c7c88a5]::ops::function::FnOnce<()>>::call_once
  22: 0x586eb29c - std[512f13cabec77920]::sys::backtrace::__rust_begin_short_backtrace::<fn(), ()>
  23: 0x586eb2d2 - std[512f13cabec77920]::rt::lang_start::<()>::{closure#0}
  24: 0xecc5bd3c - <&dyn core[ed0149da5c7c88a5]::ops::function::Fn<(), Output = i32> + core[ed0149da5c7c88a5]::panic::unwind_safe::RefUnwindSafe + core[ed0149da5c7c88a5]::marker::Sync as core[ed0149da5c7c88a5]::ops::function::FnOnce<()>>::call_once
                       at /checkout/library/core/src/ops/function.rs:287:21
  25: 0xecc5bd3c - std[512f13cabec77920]::panicking::catch_unwind::do_call::<&dyn core[ed0149da5c7c88a5]::ops::function::Fn<(), Output = i32> + core[ed0149da5c7c88a5]::panic::unwind_safe::RefUnwindSafe + core[ed0149da5c7c88a5]::marker::Sync, i32>
                       at /rustc/0e7ebb4f85e61918c91843de41197121cb700e36/library/std/src/panicking.rs:581:40
  26: 0xecc5bd3c - std[512f13cabec77920]::panicking::catch_unwind::<i32, &dyn core[ed0149da5c7c88a5]::ops::function::Fn<(), Output = i32> + core[ed0149da5c7c88a5]::panic::unwind_safe::RefUnwindSafe + core[ed0149da5c7c88a5]::marker::Sync>
                       at /rustc/0e7ebb4f85e61918c91843de41197121cb700e36/library/std/src/panicking.rs:544:19
  27: 0xecc5bd3c - std[512f13cabec77920]::panic::catch_unwind::<&dyn core[ed0149da5c7c88a5]::ops::function::Fn<(), Output = i32> + core[ed0149da5c7c88a5]::panic::unwind_safe::RefUnwindSafe + core[ed0149da5c7c88a5]::marker::Sync, i32>
                       at /rustc/0e7ebb4f85e61918c91843de41197121cb700e36/library/std/src/panic.rs:359:14
  28: 0xecc5bd3c - std[512f13cabec77920]::rt::lang_start_internal::{closure#0}
                       at /rustc/0e7ebb4f85e61918c91843de41197121cb700e36/library/std/src/rt.rs:175:24
  29: 0xecc5bd3c - std[512f13cabec77920]::panicking::catch_unwind::do_call::<std[512f13cabec77920]::rt::lang_start_internal::{closure#0}, isize>
                       at /rustc/0e7ebb4f85e61918c91843de41197121cb700e36/library/std/src/panicking.rs:581:40
  30: 0xecc5bd3c - std[512f13cabec77920]::panicking::catch_unwind::<isize, std[512f13cabec77920]::rt::lang_start_internal::{closure#0}>
                       at /rustc/0e7ebb4f85e61918c91843de41197121cb700e36/library/std/src/panicking.rs:544:19
  31: 0xecc5bd3c - std[512f13cabec77920]::panic::catch_unwind::<std[512f13cabec77920]::rt::lang_start_internal::{closure#0}, isize>
                       at /rustc/0e7ebb4f85e61918c91843de41197121cb700e36/library/std/src/panic.rs:359:14
  32: 0xecc5bd3c - std[512f13cabec77920]::rt::lang_start_internal
                       at /rustc/0e7ebb4f85e61918c91843de41197121cb700e36/library/std/src/rt.rs:171:5
  33: 0x586eb247 - std[512f13cabec77920]::rt::lang_start::<()>
  34: 0x586eb4b9 - main
---
Saved the actual run.stderr to `/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/process/println-with-broken-pipe/println-with-broken-pipe.run.stderr`
diff of run.stderr:

1 
- thread 'main' ($TID) panicked at library/std/src/io/stdio.rs:LL:CC:
+ thread 'main' ($TID) panicked at /rustc/0e7ebb4f85e61918c91843de41197121cb700e36/library/std/src/io/stdio.rs:LL:CC:
3 failed printing to stdout: Broken pipe (os error 32)
4 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
5 

Note: some mismatched output was normalized before being compared
- thread 'main' (168715) panicked at /rustc/0e7ebb4f85e61918c91843de41197121cb700e36/library/std/src/io/stdio.rs:1165:9:
+ thread 'main' ($TID) panicked at /rustc/0e7ebb4f85e61918c91843de41197121cb700e36/library/std/src/io/stdio.rs:LL:CC:


The actual run.stderr differed from the expected run.stderr

error: 1 errors occurred comparing run output.
---
---- [ui] tests/ui/resolve/multiple_definitions_attribute_merging.rs stdout ----
Saved the actual stderr to `/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/resolve/multiple_definitions_attribute_merging/multiple_definitions_attribute_merging.stderr`
diff of stderr:

7 LL | struct Dealigned<T>(u8, T);
8    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ `Dealigned` redefined here
9    |
-    = error: internal compiler error: compiler/rustc_mir_transform/src/check_packed_ref.rs:LL:CC: builtin derive created an unaligned reference
+    = error: internal compiler error: /rustc-dev/0e7ebb4f85e61918c91843de41197121cb700e36/compiler/rustc_mir_transform/src/check_packed_ref.rs:LL:CC: builtin derive created an unaligned reference
11   --> $DIR/multiple_definitions_attribute_merging.rs:17:25
12    |
13 LL | #[derive(PartialEq)]

Note: some mismatched output was normalized before being compared
-    = note: `Dealigned` must be defined only once in the type namespace of this module
- 
##[error]- error: internal compiler error: /rustc-dev/0e7ebb4f85e61918c91843de41197121cb700e36/compiler/rustc_mir_transform/src/check_packed_ref.rs:51:17: builtin derive created an unaligned reference
-   --> /checkout/tests/ui/resolve/multiple_definitions_attribute_merging.rs:17:25
+    = error: internal compiler error: /rustc-dev/0e7ebb4f85e61918c91843de41197121cb700e36/compiler/rustc_mir_transform/src/check_packed_ref.rs:LL:CC: builtin derive created an unaligned reference


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 resolve/multiple_definitions_attribute_merging.rs`

error: 1 errors occurred comparing output.
status: exit status: 101
command: env -u RUSTC_LOG_COLOR RUSTC_ICE="0" RUST_BACKTRACE="0" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/tests/ui/resolve/multiple_definitions_attribute_merging.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=i586-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/resolve/multiple_definitions_attribute_merging" "-A" "unused" "-W" "unused_attributes" "-A" "internal_features" "-A" "unused_parens" "-A" "unused_braces" "-Crpath" "-Cdebuginfo=0" "-Lnative=/checkout/obj/build/i586-unknown-linux-gnu/native/rust-test-helpers" "-Clinker=i586-unknown-linux-gnu-gcc"
stdout: none
--- stderr -------------------------------
error[E0428]: the name `Dealigned` is defined multiple times
##[error]  --> /checkout/tests/ui/resolve/multiple_definitions_attribute_merging.rs:17:1
   |
LL | struct Dealigned<T>(u8, T);
   | --------------------------- previous definition of the type `Dealigned` here
...
LL | struct Dealigned<T>(u8, T);
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ `Dealigned` redefined here
   |
   = note: `Dealigned` must be defined only once in the type namespace of this module

##[error]error: internal compiler error: /rustc-dev/0e7ebb4f85e61918c91843de41197121cb700e36/compiler/rustc_mir_transform/src/check_packed_ref.rs:51:17: builtin derive created an unaligned reference
  --> /checkout/tests/ui/resolve/multiple_definitions_attribute_merging.rs:17:25
   |
LL | #[derive(PartialEq)]
   |          --------- in this derive macro expansion
LL | #[repr(C)]
LL | struct Dealigned<T>(u8, T);
   |                         ^


thread 'rustc' (172904) panicked at /rustc-dev/0e7ebb4f85e61918c91843de41197121cb700e36/compiler/rustc_mir_transform/src/check_packed_ref.rs:51:17:
Box<dyn Any>
---
note: please make sure that you have updated to the latest nightly

note: rustc 1.94.0-nightly (0e7ebb4f8 2025-12-18) running on x86_64-unknown-linux-gnu

note: compiler flags: -Z threads=1 -Z simulate-remapped-rust-src-base=/rustc/FAKE_PREFIX -Z translate-remapped-path-to-local-path=no -Z ignore-directory-in-diagnostics-source-blocks=/cargo -Z ignore-directory-in-diagnostics-source-blocks=/checkout/vendor -C codegen-units=1 -Z ui-testing -Z deduplicate-diagnostics=no -Z write-long-types-to-disk=no -C strip=debuginfo -C prefer-dynamic -C rpath -C debuginfo=0 -C linker=i586-unknown-linux-gnu-gcc

query stack during panic:
#0 [mir_built] building MIR for `<impl at /checkout/tests/ui/resolve/multiple_definitions_attribute_merging.rs:15:10: 15:19>::eq`
#1 [check_unsafety] unsafety-checking `<impl at /checkout/tests/ui/resolve/multiple_definitions_attribute_merging.rs:15:10: 15:19>::eq`
... and 1 other queries... use `env RUST_BACKTRACE=1` to see the full query stack
error: aborting due to 2 previous errors

For more information about this error, try `rustc --explain E0428`.
------------------------------------------

---- [ui] tests/ui/resolve/multiple_definitions_attribute_merging.rs stdout end ----
---- [ui] tests/ui/resolve/proc_macro_generated_packed.rs stdout ----
Saved the actual stderr to `/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/resolve/proc_macro_generated_packed/proc_macro_generated_packed.stderr`
diff of stderr:

- error: internal compiler error: compiler/rustc_mir_transform/src/check_packed_ref.rs:LL:CC: builtin derive created an unaligned reference
+ error: internal compiler error: /rustc-dev/0e7ebb4f85e61918c91843de41197121cb700e36/compiler/rustc_mir_transform/src/check_packed_ref.rs:LL:CC: builtin derive created an unaligned reference
2   --> $DIR/proc_macro_generated_packed.rs:18:25
3    |
4 LL | #[derive(PartialEq)]

Note: some mismatched output was normalized before being compared
##[error]- error: internal compiler error: /rustc-dev/0e7ebb4f85e61918c91843de41197121cb700e36/compiler/rustc_mir_transform/src/check_packed_ref.rs:51:17: builtin derive created an unaligned reference
-   --> /checkout/tests/ui/resolve/proc_macro_generated_packed.rs:18:25
+ error: internal compiler error: /rustc-dev/0e7ebb4f85e61918c91843de41197121cb700e36/compiler/rustc_mir_transform/src/check_packed_ref.rs:LL:CC: builtin derive created an unaligned reference


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 resolve/proc_macro_generated_packed.rs`

error: 1 errors occurred comparing output.
status: exit status: 101
command: env -u RUSTC_LOG_COLOR RUSTC_ICE="0" RUST_BACKTRACE="0" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/tests/ui/resolve/proc_macro_generated_packed.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=i586-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/resolve/proc_macro_generated_packed" "-A" "unused" "-W" "unused_attributes" "-A" "internal_features" "-A" "unused_parens" "-A" "unused_braces" "-Crpath" "-Cdebuginfo=0" "-Lnative=/checkout/obj/build/i586-unknown-linux-gnu/native/rust-test-helpers" "-Clinker=i586-unknown-linux-gnu-gcc" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/resolve/proc_macro_generated_packed/auxiliary" "--extern" "proc_macro_generate_packed=/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/resolve/proc_macro_generated_packed/auxiliary/libproc_macro_generate_packed.so"
stdout: none
--- stderr -------------------------------
##[error]error: internal compiler error: /rustc-dev/0e7ebb4f85e61918c91843de41197121cb700e36/compiler/rustc_mir_transform/src/check_packed_ref.rs:51:17: builtin derive created an unaligned reference
  --> /checkout/tests/ui/resolve/proc_macro_generated_packed.rs:18:25
   |
LL | #[derive(PartialEq)]
   |          --------- in this derive macro expansion
...
LL | struct Dealigned<T>(u8, T);
   |                         ^


thread 'rustc' (173190) panicked at /rustc-dev/0e7ebb4f85e61918c91843de41197121cb700e36/compiler/rustc_mir_transform/src/check_packed_ref.rs:51:17:
Box<dyn Any>
---
note: please make sure that you have updated to the latest nightly

note: rustc 1.94.0-nightly (0e7ebb4f8 2025-12-18) running on x86_64-unknown-linux-gnu

note: compiler flags: -Z threads=1 -Z simulate-remapped-rust-src-base=/rustc/FAKE_PREFIX -Z translate-remapped-path-to-local-path=no -Z ignore-directory-in-diagnostics-source-blocks=/cargo -Z ignore-directory-in-diagnostics-source-blocks=/checkout/vendor -C codegen-units=1 -Z ui-testing -Z deduplicate-diagnostics=no -Z write-long-types-to-disk=no -C strip=debuginfo -C prefer-dynamic -C rpath -C debuginfo=0 -C linker=i586-unknown-linux-gnu-gcc

query stack during panic:
#0 [mir_built] building MIR for `<impl at /checkout/tests/ui/resolve/proc_macro_generated_packed.rs:15:10: 15:19>::eq`
#1 [check_unsafety] unsafety-checking `<impl at /checkout/tests/ui/resolve/proc_macro_generated_packed.rs:15:10: 15:19>::eq`
... and 1 other queries... use `env RUST_BACKTRACE=1` to see the full query stack
error: aborting due to 1 previous error
------------------------------------------

---- [ui] tests/ui/resolve/proc_macro_generated_packed.rs stdout end ----
---- [ui] tests/ui/track-diagnostics/track.rs stdout ----
Saved the actual stderr to `/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/track-diagnostics/track/track.stderr`
diff of stderr:

4 LL |     break rust;
5    |           ^^^^ not found in this scope
6    |
-    = note: -Ztrack-diagnostics: created at compiler/rustc_resolve/src/late/diagnostics.rs:LL:CC
+    = note: -Ztrack-diagnostics: created at /rustc-dev/0e7ebb4f85e61918c91843de41197121cb700e36/compiler/rustc_resolve/src/late/diagnostics.rs:LL:CC
8 
9 error[E0268]: `break` outside of a loop or labeled block
10   --> $DIR/track.rs:LL:CC

12 LL |     break rust;
13    |     ^^^^^^^^^^ cannot `break` outside of a loop or labeled block
14    |
-    = note: -Ztrack-diagnostics: created at compiler/rustc_hir_typeck/src/loops.rs:LL:CC
+    = note: -Ztrack-diagnostics: created at /rustc-dev/0e7ebb4f85e61918c91843de41197121cb700e36/compiler/rustc_hir_typeck/src/loops.rs:LL:CC
16 
17 error: internal compiler error: It looks like you're trying to break rust; would you like some ICE?
18   --> $DIR/track.rs:LL:CC

20 LL |     break rust;
21    |     ^^^^^^^^^^
22    |
-    = note: -Ztrack-diagnostics: created at compiler/rustc_hir_typeck/src/lib.rs:LL:CC
+    = note: -Ztrack-diagnostics: created at /rustc-dev/0e7ebb4f85e61918c91843de41197121cb700e36/compiler/rustc_hir_typeck/src/lib.rs:LL:CC
24    = note: the compiler expectedly panicked. this is a feature.
25    = note: we would appreciate a joke overview: https://github.com/rust-lang/rust/issues/43162#issuecomment-320764675
26    = note: rustc $VERSION running on $TARGET

27    = note: compiler flags: ... -Z ui-testing ... -Z track-diagnostics
28 
29 
- thread 'rustc' ($TID) panicked at compiler/rustc_hir_typeck/src/lib.rs:LL:CC:
+ thread 'rustc' ($TID) panicked at /rustc-dev/0e7ebb4f85e61918c91843de41197121cb700e36/compiler/rustc_hir_typeck/src/lib.rs:LL:CC:
31 Box<dyn Any>
32 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
33 

Note: some mismatched output was normalized before being compared
-    = note: -Ztrack-diagnostics: created at /rustc-dev/0e7ebb4f85e61918c91843de41197121cb700e36/compiler/rustc_resolve/src/late/diagnostics.rs:430:36
-    = note: -Ztrack-diagnostics: created at /rustc-dev/0e7ebb4f85e61918c91843de41197121cb700e36/compiler/rustc_hir_typeck/src/loops.rs:378:32
-    = note: -Ztrack-diagnostics: created at /rustc-dev/0e7ebb4f85e61918c91843de41197121cb700e36/compiler/rustc_hir_typeck/src/lib.rs:514:24
- thread 'rustc' (200410) panicked at /rustc-dev/0e7ebb4f85e61918c91843de41197121cb700e36/compiler/rustc_hir_typeck/src/lib.rs:530:10:
+    = note: -Ztrack-diagnostics: created at /rustc-dev/0e7ebb4f85e61918c91843de41197121cb700e36/compiler/rustc_resolve/src/late/diagnostics.rs:LL:CC
+    = note: -Ztrack-diagnostics: created at /rustc-dev/0e7ebb4f85e61918c91843de41197121cb700e36/compiler/rustc_hir_typeck/src/loops.rs:LL:CC
+    = note: -Ztrack-diagnostics: created at /rustc-dev/0e7ebb4f85e61918c91843de41197121cb700e36/compiler/rustc_hir_typeck/src/lib.rs:LL:CC
+ thread 'rustc' ($TID) panicked at /rustc-dev/0e7ebb4f85e61918c91843de41197121cb700e36/compiler/rustc_hir_typeck/src/lib.rs:LL:CC:


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 track-diagnostics/track.rs`

error: 1 errors occurred comparing output.
status: exit status: 101
command: env -u RUSTC_LOG_COLOR RUSTC_ICE="0" RUST_BACKTRACE="0" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/tests/ui/track-diagnostics/track.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=i586-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/track-diagnostics/track" "-A" "unused" "-W" "unused_attributes" "-A" "internal_features" "-A" "unused_parens" "-A" "unused_braces" "-Crpath" "-Cdebuginfo=0" "-Lnative=/checkout/obj/build/i586-unknown-linux-gnu/native/rust-test-helpers" "-Clinker=i586-unknown-linux-gnu-gcc" "-Z" "track-diagnostics"
stdout: none
--- stderr -------------------------------
error[E0425]: cannot find value `rust` in this scope
##[error]  --> /checkout/tests/ui/track-diagnostics/track.rs:17:11
   |
LL |     break rust;
   |           ^^^^ not found in this scope
   |
   = note: -Ztrack-diagnostics: created at /rustc-dev/0e7ebb4f85e61918c91843de41197121cb700e36/compiler/rustc_resolve/src/late/diagnostics.rs:430:36

error[E0268]: `break` outside of a loop or labeled block
##[error]  --> /checkout/tests/ui/track-diagnostics/track.rs:17:5
   |
LL |     break rust;
   |     ^^^^^^^^^^ cannot `break` outside of a loop or labeled block
   |
   = note: -Ztrack-diagnostics: created at /rustc-dev/0e7ebb4f85e61918c91843de41197121cb700e36/compiler/rustc_hir_typeck/src/loops.rs:378:32

error: internal compiler error: It looks like you're trying to break rust; would you like some ICE?
##[error]  --> /checkout/tests/ui/track-diagnostics/track.rs:17:5
   |
LL |     break rust;
   |     ^^^^^^^^^^
   |
   = note: -Ztrack-diagnostics: created at /rustc-dev/0e7ebb4f85e61918c91843de41197121cb700e36/compiler/rustc_hir_typeck/src/lib.rs:514:24
   = note: the compiler expectedly panicked. this is a feature.
   = note: we would appreciate a joke overview: https://github.com/rust-lang/rust/issues/43162#issuecomment-320764675
   = note: rustc 1.94.0-nightly (0e7ebb4f8 2025-12-18) running on x86_64-unknown-linux-gnu
   = note: compiler flags: -Z threads=1 -Z simulate-remapped-rust-src-base=/rustc/FAKE_PREFIX -Z translate-remapped-path-to-local-path=no -Z ignore-directory-in-diagnostics-source-blocks=/cargo -Z ignore-directory-in-diagnostics-source-blocks=/checkout/vendor -C codegen-units=1 -Z ui-testing -Z deduplicate-diagnostics=no -Z write-long-types-to-disk=no -C strip=debuginfo -C prefer-dynamic -C rpath -C debuginfo=0 -C linker=i586-unknown-linux-gnu-gcc -Z track-diagnostics


thread 'rustc' (200410) panicked at /rustc-dev/0e7ebb4f85e61918c91843de41197121cb700e36/compiler/rustc_hir_typeck/src/lib.rs:530:10:
Box<dyn Any>
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

note: we would appreciate a bug report: https://github.com/rust-lang/rust/issues/new?labels=C-bug%2C+I-ICE%2C+T-compiler&template=ice.md

note: please make sure that you have updated to the latest nightly

note: rustc 1.94.0-nightly (0e7ebb4f8 2025-12-18) running on x86_64-unknown-linux-gnu

note: compiler flags: -Z threads=1 -Z simulate-remapped-rust-src-base=/rustc/FAKE_PREFIX -Z translate-remapped-path-to-local-path=no -Z ignore-directory-in-diagnostics-source-blocks=/cargo -Z ignore-directory-in-diagnostics-source-blocks=/checkout/vendor -C codegen-units=1 -Z ui-testing -Z deduplicate-diagnostics=no -Z write-long-types-to-disk=no -C strip=debuginfo -C prefer-dynamic -C rpath -C debuginfo=0 -C linker=i586-unknown-linux-gnu-gcc -Z track-diagnostics

query stack during panic:
#0 [typeck] type-checking `main`
#1 [analysis] running analysis passes on crate `track`
end of query stack
error: aborting due to 3 previous errors

Some errors have detailed explanations: E0268, E0425.
For more information about an error, try `rustc --explain E0268`.
---

7    |         |        value moved here
8    |         value used here after move
9    |
-    = note: -Ztrack-diagnostics: created at compiler/rustc_borrowck/src/borrowck_errors.rs:LL:CC
+    = note: -Ztrack-diagnostics: created at /rustc-dev/0e7ebb4f85e61918c91843de41197121cb700e36/compiler/rustc_borrowck/src/borrowck_errors.rs:LL:CC
11 help: borrow this binding in the pattern to avoid moving the value
12    |
13 LL |     let ref _moved @ ref _from = String::from("foo");

Note: some mismatched output was normalized before being compared
-    = note: -Ztrack-diagnostics: created at /rustc-dev/0e7ebb4f85e61918c91843de41197121cb700e36/compiler/rustc_borrowck/src/borrowck_errors.rs:333:9
+    = note: -Ztrack-diagnostics: created at /rustc-dev/0e7ebb4f85e61918c91843de41197121cb700e36/compiler/rustc_borrowck/src/borrowck_errors.rs:LL:CC


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 track-diagnostics/track2.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/track-diagnostics/track2.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=i586-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/track-diagnostics/track2" "-A" "unused" "-W" "unused_attributes" "-A" "internal_features" "-A" "unused_parens" "-A" "unused_braces" "-Crpath" "-Cdebuginfo=0" "-Lnative=/checkout/obj/build/i586-unknown-linux-gnu/native/rust-test-helpers" "-Clinker=i586-unknown-linux-gnu-gcc" "-Z" "track-diagnostics"
stdout: none
--- stderr -------------------------------
error[E0382]: use of moved value
##[error]  --> /checkout/tests/ui/track-diagnostics/track2.rs:9:9
   |
LL |     let _moved @ _from = String::from("foo");
   |         ^^^^^^   -----   ------------------- move occurs because value has type `String`, which does not implement the `Copy` trait
   |         |        |
   |         |        value moved here
   |         value used here after move
   |
   = note: -Ztrack-diagnostics: created at /rustc-dev/0e7ebb4f85e61918c91843de41197121cb700e36/compiler/rustc_borrowck/src/borrowck_errors.rs:333:9
help: borrow this binding in the pattern to avoid moving the value
   |
LL |     let ref _moved @ ref _from = String::from("foo");
   |         +++          +++

error: aborting due to 1 previous error

For more information about this error, try `rustc --explain E0382`.
------------------------------------------

---- [ui] tests/ui/track-diagnostics/track2.rs stdout end ----
---- [ui] tests/ui/track-diagnostics/track3.rs stdout ----
Saved the actual stderr to `/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/track-diagnostics/track3/track3.stderr`
diff of stderr:

4 LL |     let _unimported = Blah { field: u8 };
5    |                       ^^^^ not found in this scope
6    |
-    = note: -Ztrack-diagnostics: created at compiler/rustc_resolve/src/late/diagnostics.rs:LL:CC
+    = note: -Ztrack-diagnostics: created at /rustc-dev/0e7ebb4f85e61918c91843de41197121cb700e36/compiler/rustc_resolve/src/late/diagnostics.rs:LL:CC
8 
9 error[E0423]: expected value, found builtin type `u8`
10   --> $DIR/track3.rs:LL:CC

12 LL |     let _unimported = Blah { field: u8 };
13    |                                     ^^ not a value
14    |
-    = note: -Ztrack-diagnostics: created at compiler/rustc_resolve/src/late/diagnostics.rs:LL:CC
+    = note: -Ztrack-diagnostics: created at /rustc-dev/0e7ebb4f85e61918c91843de41197121cb700e36/compiler/rustc_resolve/src/late/diagnostics.rs:LL:CC
16 
17 error: aborting due to 2 previous errors
18 

Note: some mismatched output was normalized before being compared
-    = note: -Ztrack-diagnostics: created at /rustc-dev/0e7ebb4f85e61918c91843de41197121cb700e36/compiler/rustc_resolve/src/late/diagnostics.rs:430:36
-    = note: -Ztrack-diagnostics: created at /rustc-dev/0e7ebb4f85e61918c91843de41197121cb700e36/compiler/rustc_resolve/src/late/diagnostics.rs:430:36
+    = note: -Ztrack-diagnostics: created at /rustc-dev/0e7ebb4f85e61918c91843de41197121cb700e36/compiler/rustc_resolve/src/late/diagnostics.rs:LL:CC
+    = note: -Ztrack-diagnostics: created at /rustc-dev/0e7ebb4f85e61918c91843de41197121cb700e36/compiler/rustc_resolve/src/late/diagnostics.rs:LL:CC


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 track-diagnostics/track3.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/track-diagnostics/track3.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=i586-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/track-diagnostics/track3" "-A" "unused" "-W" "unused_attributes" "-A" "internal_features" "-A" "unused_parens" "-A" "unused_braces" "-Crpath" "-Cdebuginfo=0" "-Lnative=/checkout/obj/build/i586-unknown-linux-gnu/native/rust-test-helpers" "-Clinker=i586-unknown-linux-gnu-gcc" "-Z" "track-diagnostics"
stdout: none
--- stderr -------------------------------
error[E0422]: cannot find struct, variant or union type `Blah` in this scope
##[error]  --> /checkout/tests/ui/track-diagnostics/track3.rs:9:23
   |
LL |     let _unimported = Blah { field: u8 };
   |                       ^^^^ not found in this scope
   |
   = note: -Ztrack-diagnostics: created at /rustc-dev/0e7ebb4f85e61918c91843de41197121cb700e36/compiler/rustc_resolve/src/late/diagnostics.rs:430:36

error[E0423]: expected value, found builtin type `u8`
##[error]  --> /checkout/tests/ui/track-diagnostics/track3.rs:9:37
   |
LL |     let _unimported = Blah { field: u8 };
   |                                     ^^ not a value
   |
   = note: -Ztrack-diagnostics: created at /rustc-dev/0e7ebb4f85e61918c91843de41197121cb700e36/compiler/rustc_resolve/src/late/diagnostics.rs:430:36

error: aborting due to 2 previous errors

Some errors have detailed explanations: E0422, E0423.
For more information about an error, try `rustc --explain E0422`.
---

4 LL | pub onion {
5    | ^^^^^^^^^
6    |
-    = note: -Ztrack-diagnostics: created at compiler/rustc_parse/src/parser/item.rs:LL:CC
+    = note: -Ztrack-diagnostics: created at /rustc-dev/0e7ebb4f85e61918c91843de41197121cb700e36/compiler/rustc_parse/src/parser/item.rs:LL:CC
8 help: add `enum` here to parse `onion` as an enum
9    |
10 LL | pub enum onion {

Note: some mismatched output was normalized before being compared
-    = note: -Ztrack-diagnostics: created at /rustc-dev/0e7ebb4f85e61918c91843de41197121cb700e36/compiler/rustc_parse/src/parser/item.rs:466:49
+    = note: -Ztrack-diagnostics: created at /rustc-dev/0e7ebb4f85e61918c91843de41197121cb700e36/compiler/rustc_parse/src/parser/item.rs:LL:CC


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 track-diagnostics/track4.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/track-diagnostics/track4.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=i586-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/track-diagnostics/track4" "-A" "unused" "-W" "unused_attributes" "-A" "internal_features" "-A" "unused_parens" "-A" "unused_braces" "-Crpath" "-Cdebuginfo=0" "-Lnative=/checkout/obj/build/i586-unknown-linux-gnu/native/rust-test-helpers" "-Clinker=i586-unknown-linux-gnu-gcc" "-Z" "track-diagnostics"
stdout: none
--- stderr -------------------------------
error: missing `enum` for enum definition
##[error]  --> /checkout/tests/ui/track-diagnostics/track4.rs:8:1
   |
LL | pub onion {
   | ^^^^^^^^^
   |
   = note: -Ztrack-diagnostics: created at /rustc-dev/0e7ebb4f85e61918c91843de41197121cb700e36/compiler/rustc_parse/src/parser/item.rs:466:49
help: add `enum` here to parse `onion` as an enum
   |
LL | pub enum onion {
   |     ++++

error: aborting due to 1 previous error
---

4 LL | }
5    | ^ unexpected closing delimiter
6    |
-    = note: -Ztrack-diagnostics: created at compiler/rustc_parse/src/lexer/tokentrees.rs:LL:CC
+    = note: -Ztrack-diagnostics: created at /rustc-dev/0e7ebb4f85e61918c91843de41197121cb700e36/compiler/rustc_parse/src/lexer/tokentrees.rs:LL:CC
8 
9 error: aborting due to 1 previous error
10 

Note: some mismatched output was normalized before being compared
-    = note: -Ztrack-diagnostics: created at /rustc-dev/0e7ebb4f85e61918c91843de41197121cb700e36/compiler/rustc_parse/src/lexer/tokentrees.rs:243:34
+    = note: -Ztrack-diagnostics: created at /rustc-dev/0e7ebb4f85e61918c91843de41197121cb700e36/compiler/rustc_parse/src/lexer/tokentrees.rs:LL:CC


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 track-diagnostics/track5.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/track-diagnostics/track5.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=i586-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/track-diagnostics/track5" "-A" "unused" "-W" "unused_attributes" "-A" "internal_features" "-A" "unused_parens" "-A" "unused_braces" "-Crpath" "-Cdebuginfo=0" "-Lnative=/checkout/obj/build/i586-unknown-linux-gnu/native/rust-test-helpers" "-Clinker=i586-unknown-linux-gnu-gcc" "-Z" "track-diagnostics"
stdout: none
--- stderr -------------------------------
error: unexpected closing delimiter: `}`
##[error]  --> /checkout/tests/ui/track-diagnostics/track5.rs:8:1
   |
LL | }
   | ^ unexpected closing delimiter
   |
   = note: -Ztrack-diagnostics: created at /rustc-dev/0e7ebb4f85e61918c91843de41197121cb700e36/compiler/rustc_parse/src/lexer/tokentrees.rs:243:34

error: aborting due to 1 previous error
------------------------------------------

---- [ui] tests/ui/track-diagnostics/track5.rs stdout end ----
---- [ui] tests/ui/track-diagnostics/track6.rs stdout ----
Saved the actual stderr to `/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/track-diagnostics/track6/track6.stderr`
diff of stderr:

4 LL |     default fn bar() {}
5    |     ^^^^^^^^^^^^^^^^^^^
6    |
-    = note: -Ztrack-diagnostics: created at compiler/rustc_ast_passes/src/feature_gate.rs:LL:CC
+    = note: -Ztrack-diagnostics: created at /rustc-dev/0e7ebb4f85e61918c91843de41197121cb700e36/compiler/rustc_ast_passes/src/feature_gate.rs:LL:CC
8    = note: see issue #31844 <https://github.com/rust-lang/rust/issues/31844> for more information
9    = help: add `#![feature(specialization)]` to the crate attributes to enable
10    = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date

Note: some mismatched output was normalized before being compared
-    = note: -Ztrack-diagnostics: created at /rustc-dev/0e7ebb4f85e61918c91843de41197121cb700e36/compiler/rustc_ast_passes/src/feature_gate.rs:434:13
+    = note: -Ztrack-diagnostics: created at /rustc-dev/0e7ebb4f85e61918c91843de41197121cb700e36/compiler/rustc_ast_passes/src/feature_gate.rs:LL:CC


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 track-diagnostics/track6.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/track-diagnostics/track6.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=i586-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/track-diagnostics/track6" "-A" "unused" "-W" "unused_attributes" "-A" "internal_features" "-A" "unused_parens" "-A" "unused_braces" "-Crpath" "-Cdebuginfo=0" "-Lnative=/checkout/obj/build/i586-unknown-linux-gnu/native/rust-test-helpers" "-Clinker=i586-unknown-linux-gnu-gcc" "-Z" "track-diagnostics"
stdout: none
--- stderr -------------------------------
error[E0658]: specialization is unstable
##[error]  --> /checkout/tests/ui/track-diagnostics/track6.rs:14:5
   |
LL |     default fn bar() {}
   |     ^^^^^^^^^^^^^^^^^^^
   |
   = note: -Ztrack-diagnostics: created at /rustc-dev/0e7ebb4f85e61918c91843de41197121cb700e36/compiler/rustc_ast_passes/src/feature_gate.rs:434:13
   = note: see issue #31844 <https://github.com/rust-lang/rust/issues/31844> for more information
   = help: add `#![feature(specialization)]` to the crate attributes to enable
   = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date

error: aborting due to 1 previous error

For more information about this error, try `rustc --explain E0658`.
------------------------------------------
---

5    |                                               ^^^^^^^^^^^^^^^^^^^
6    |
7    = note: see issue #76560 <https://github.com/rust-lang/rust/issues/76560> for more information
-    = error: internal compiler error: compiler/rustc_hir_analysis/src/hir_ty_lowering/mod.rs:LL:CC: try_lower_anon_const_lit: received const param which shouldn't be possible
+    = error: internal compiler error: /rustc-dev/0e7ebb4f85e61918c91843de41197121cb700e36/compiler/rustc_hir_analysis/src/hir_ty_lowering/mod.rs:LL:CC: try_lower_anon_const_lit: received const param which shouldn't be possible
9   --> $DIR/bad_const_generics_args_on_const_param.rs:12:36
10    |
11 LL |     std::pat::pattern_type!(u32 is START::<(), i32, 2>..=END::<_, Assoc = ()>);

Note: some mismatched output was normalized before being compared
-    = note: `#[warn(incomplete_features)]` on by default
- 
##[error]- error: internal compiler error: /rustc-dev/0e7ebb4f85e61918c91843de41197121cb700e36/compiler/rustc_hir_analysis/src/hir_ty_lowering/mod.rs:2420:13: try_lower_anon_const_lit: received const param which shouldn't be possible
-   --> /checkout/tests/ui/type/pattern_types/bad_const_generics_args_on_const_param.rs:12:36
+    = error: internal compiler error: /rustc-dev/0e7ebb4f85e61918c91843de41197121cb700e36/compiler/rustc_hir_analysis/src/hir_ty_lowering/mod.rs:LL:CC: try_lower_anon_const_lit: received const param which shouldn't be possible


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 type/pattern_types/bad_const_generics_args_on_const_param.rs`

error: 1 errors occurred comparing output.
status: exit status: 101
command: env -u RUSTC_LOG_COLOR RUSTC_ICE="0" RUST_BACKTRACE="0" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/tests/ui/type/pattern_types/bad_const_generics_args_on_const_param.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=i586-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/type/pattern_types/bad_const_generics_args_on_const_param" "-A" "unused" "-W" "unused_attributes" "-A" "internal_features" "-A" "unused_parens" "-A" "unused_braces" "-Crpath" "-Cdebuginfo=0" "-Lnative=/checkout/obj/build/i586-unknown-linux-gnu/native/rust-test-helpers" "-Clinker=i586-unknown-linux-gnu-gcc"
stdout: none
--- stderr -------------------------------
warning: the feature `generic_const_exprs` is incomplete and may not be safe to use and/or cause compiler crashes
##[warning]  --> /checkout/tests/ui/type/pattern_types/bad_const_generics_args_on_const_param.rs:8:47
   |
LL | #![feature(pattern_types, pattern_type_macro, generic_const_exprs)]
   |                                               ^^^^^^^^^^^^^^^^^^^
   |
   = note: see issue #76560 <https://github.com/rust-lang/rust/issues/76560> for more information
   = note: `#[warn(incomplete_features)]` on by default

##[error]error: internal compiler error: /rustc-dev/0e7ebb4f85e61918c91843de41197121cb700e36/compiler/rustc_hir_analysis/src/hir_ty_lowering/mod.rs:2420:13: try_lower_anon_const_lit: received const param which shouldn't be possible
  --> /checkout/tests/ui/type/pattern_types/bad_const_generics_args_on_const_param.rs:12:36
   |
LL |     std::pat::pattern_type!(u32 is START::<(), i32, 2>..=END::<_, Assoc = ()>);
   |                                    ^^^^^^^^^^^^^^^^^^^


thread 'rustc' (223526) panicked at /rustc-dev/0e7ebb4f85e61918c91843de41197121cb700e36/compiler/rustc_hir_analysis/src/hir_ty_lowering/mod.rs:2420:13:
Box<dyn Any>
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

note: using internal features is not supported and expected to cause internal compiler errors when used incorrectly

note: rustc 1.94.0-nightly (0e7ebb4f8 2025-12-18) running on x86_64-unknown-linux-gnu

note: compiler flags: -Z threads=1 -Z simulate-remapped-rust-src-base=/rustc/FAKE_PREFIX -Z translate-remapped-path-to-local-path=no -Z ignore-directory-in-diagnostics-source-blocks=/cargo -Z ignore-directory-in-diagnostics-source-blocks=/checkout/vendor -C codegen-units=1 -Z ui-testing -Z deduplicate-diagnostics=no -Z write-long-types-to-disk=no -C strip=debuginfo -C prefer-dynamic -C rpath -C debuginfo=0 -C linker=i586-unknown-linux-gnu-gcc

query stack during panic:
#0 [type_of] expanding type alias `Pat`
#1 [check_well_formed] checking that `Pat` is well-formed
... and 2 other queries... use `env RUST_BACKTRACE=1` to see the full query stack
error: aborting due to 1 previous error; 1 warning emitted
------------------------------------------

---- [ui] tests/ui/type/pattern_types/bad_const_generics_args_on_const_param.rs stdout end ----

@bors
Copy link
Collaborator

bors commented Dec 18, 2025

💔 Test failed - checks-actions

@bors bors added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. labels Dec 18, 2025
@jieyouxu
Copy link
Member

Huh.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants