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 ~ code[4f42]::main)) (after pass ReferencePropagation) at bb7[1]:
encountered `((_2 as variant#3).0: &i32) = copy (_2.2: &i32)` statement with overlapping memory
--> code.rs:2:44
|
2 | gen fn foo<'a, 'b>(x: &'a i32, y: &'b i32, z: &'b i32) -> &'b i32 {
| ^
|
note: delayed at compiler/rustc_mir_transform/src/lint.rs:106:34 - disabled backtrace
--> code.rs:2:44
|
2 | gen fn foo<'a, 'b>(x: &'a i32, y: &'b i32, z: &'b i32) -> &'b i32 {
| ^
error: internal compiler error: broken MIR in Item(DefId(0:8 ~ code[4f42]::main)) (after pass SimplifyLocals-before-const-prop) at bb7[1]:
encountered `((_2 as variant#3).0: &i32) = copy (_2.2: &i32)` statement with overlapping memory
--> code.rs:2:44
|
2 | gen fn foo<'a, 'b>(x: &'a i32, y: &'b i32, z: &'b i32) -> &'b i32 {
| ^
|
note: delayed at compiler/rustc_mir_transform/src/lint.rs:106:34 - disabled backtrace
--> code.rs:2:44
|
2 | gen fn foo<'a, 'b>(x: &'a i32, y: &'b i32, z: &'b i32) -> &'b i32 {
| ^
error: internal compiler error: broken MIR in Item(DefId(0:8 ~ code[4f42]::main)) (after pass SimplifyLocals-after-value-numbering) at bb7[1]:
encountered `((_2 as variant#3).0: &i32) = copy (_2.2: &i32)` statement with overlapping memory
--> code.rs:2:44
|
2 | gen fn foo<'a, 'b>(x: &'a i32, y: &'b i32, z: &'b i32) -> &'b i32 {
| ^
|
note: delayed at compiler/rustc_mir_transform/src/lint.rs:106:34 - disabled backtrace
--> code.rs:2:44
|
2 | gen fn foo<'a, 'b>(x: &'a i32, y: &'b i32, z: &'b i32) -> &'b i32 {
| ^
error: internal compiler error: broken MIR in Item(DefId(0:8 ~ code[4f42]::main)) (after pass MatchBranchSimplification) at bb7[1]:
encountered `((_2 as variant#3).0: &i32) = copy (_2.2: &i32)` statement with overlapping memory
--> code.rs:2:44
|
2 | gen fn foo<'a, 'b>(x: &'a i32, y: &'b i32, z: &'b i32) -> &'b i32 {
| ^
|
note: delayed at compiler/rustc_mir_transform/src/lint.rs:106:34 - disabled backtrace
--> code.rs:2:44
|
2 | gen fn foo<'a, 'b>(x: &'a i32, y: &'b i32, z: &'b i32) -> &'b i32 {
| ^
error: internal compiler error: broken MIR in Item(DefId(0:8 ~ code[4f42]::main)) (after pass SingleUseConsts) at bb7[1]:
encountered `((_2 as variant#3).0: &i32) = copy (_2.2: &i32)` statement with overlapping memory
--> code.rs:2:44
|
2 | gen fn foo<'a, 'b>(x: &'a i32, y: &'b i32, z: &'b i32) -> &'b i32 {
| ^
|
note: delayed at compiler/rustc_mir_transform/src/lint.rs:106:34 - disabled backtrace
--> code.rs:2:44
|
2 | gen fn foo<'a, 'b>(x: &'a i32, y: &'b i32, z: &'b i32) -> &'b i32 {
| ^
error: internal compiler error: broken MIR in Item(DefId(0:8 ~ code[4f42]::main)) (after pass SimplifyConstCondition-after-const-prop) at bb7[1]:
encountered `((_2 as variant#3).0: &i32) = copy (_2.2: &i32)` statement with overlapping memory
--> code.rs:2:44
|
2 | gen fn foo<'a, 'b>(x: &'a i32, y: &'b i32, z: &'b i32) -> &'b i32 {
| ^
|
note: delayed at compiler/rustc_mir_transform/src/lint.rs:106:34 - disabled backtrace
--> code.rs:2:44
|
2 | gen fn foo<'a, 'b>(x: &'a i32, y: &'b i32, z: &'b i32) -> &'b i32 {
| ^
error: internal compiler error: broken MIR in Item(DefId(0:8 ~ code[4f42]::main)) (after pass SimplifyComparisonIntegral) at bb7[1]:
encountered `((_2 as variant#3).0: &i32) = copy (_2.2: &i32)` statement with overlapping memory
--> code.rs:2:44
|
2 | gen fn foo<'a, 'b>(x: &'a i32, y: &'b i32, z: &'b i32) -> &'b i32 {
| ^
|
note: delayed at compiler/rustc_mir_transform/src/lint.rs:106:34 - disabled backtrace
--> code.rs:2:44
|
2 | gen fn foo<'a, 'b>(x: &'a i32, y: &'b i32, z: &'b i32) -> &'b i32 {
| ^
error: internal compiler error: broken MIR in Item(DefId(0:8 ~ code[4f42]::main)) (after pass SimplifyConstCondition-final) at bb7[1]:
encountered `((_2 as variant#3).0: &i32) = copy (_2.2: &i32)` statement with overlapping memory
--> code.rs:2:44
|
2 | gen fn foo<'a, 'b>(x: &'a i32, y: &'b i32, z: &'b i32) -> &'b i32 {
| ^
|
note: delayed at compiler/rustc_mir_transform/src/lint.rs:106:34 - disabled backtrace
--> code.rs:2:44
|
2 | gen fn foo<'a, 'b>(x: &'a i32, y: &'b i32, z: &'b i32) -> &'b i32 {
| ^
error: internal compiler error: broken MIR in Item(DefId(0:8 ~ code[4f42]::main)) (after pass RemoveNoopLandingPads) at bb7[1]:
encountered `((_2 as variant#3).0: &i32) = copy (_2.2: &i32)` statement with overlapping memory
--> code.rs:2:44
|
2 | gen fn foo<'a, 'b>(x: &'a i32, y: &'b i32, z: &'b i32) -> &'b i32 {
| ^
|
note: delayed at compiler/rustc_mir_transform/src/lint.rs:106:34 - disabled backtrace
--> code.rs:2:44
|
2 | gen fn foo<'a, 'b>(x: &'a i32, y: &'b i32, z: &'b i32) -> &'b i32 {
| ^
error: internal compiler error: broken MIR in Item(DefId(0:8 ~ code[4f42]::main)) (after pass SimplifyCfg-final) at bb7[1]:
encountered `((_2 as variant#3).0: &i32) = copy (_2.2: &i32)` statement with overlapping memory
--> code.rs:2:44
|
2 | gen fn foo<'a, 'b>(x: &'a i32, y: &'b i32, z: &'b i32) -> &'b i32 {
| ^
|
note: delayed at compiler/rustc_mir_transform/src/lint.rs:106:34 - disabled backtrace
--> code.rs:2:44
|
2 | gen fn foo<'a, 'b>(x: &'a i32, y: &'b i32, z: &'b i32) -> &'b i32 {
| ^
error: internal compiler error: broken MIR in Item(DefId(0:8 ~ code[4f42]::main)) (after pass CopyProp) at bb7[1]:
encountered `((_2 as variant#3).0: &i32) = copy (_2.2: &i32)` statement with overlapping memory
--> code.rs:2:44
|
2 | gen fn foo<'a, 'b>(x: &'a i32, y: &'b i32, z: &'b i32) -> &'b i32 {
| ^
|
note: delayed at compiler/rustc_mir_transform/src/lint.rs:106:34 - disabled backtrace
--> code.rs:2:44
|
2 | gen fn foo<'a, 'b>(x: &'a i32, y: &'b i32, z: &'b i32) -> &'b i32 {
| ^
error: internal compiler error: broken MIR in Item(DefId(0:8 ~ code[4f42]::main)) (after pass SimplifyLocals-final) at bb7[1]:
encountered `((_2 as variant#3).0: &i32) = copy (_2.2: &i32)` statement with overlapping memory
--> code.rs:2:44
|
2 | gen fn foo<'a, 'b>(x: &'a i32, y: &'b i32, z: &'b i32) -> &'b i32 {
| ^
|
note: delayed at compiler/rustc_mir_transform/src/lint.rs:106:34 - disabled backtrace
--> code.rs:2:44
|
2 | gen fn foo<'a, 'b>(x: &'a i32, y: &'b i32, z: &'b i32) -> &'b i32 {
| ^
error: internal compiler error: broken MIR in Item(DefId(0:8 ~ code[4f42]::main)) (after pass AddCallGuards) at bb7[1]:
encountered `((_2 as variant#3).0: &i32) = copy (_2.2: &i32)` statement with overlapping memory
--> code.rs:2:44
|
2 | gen fn foo<'a, 'b>(x: &'a i32, y: &'b i32, z: &'b i32) -> &'b i32 {
| ^
|
note: delayed at compiler/rustc_mir_transform/src/lint.rs:106:34 - disabled backtrace
--> code.rs:2:44
|
2 | gen fn foo<'a, 'b>(x: &'a i32, y: &'b i32, z: &'b i32) -> &'b i32 {
| ^
error: internal compiler error: broken MIR in Item(DefId(0:8 ~ code[4f42]::main)) (after pass PreCodegen) at bb7[1]:
encountered `((_2 as variant#3).0: &i32) = copy (_2.2: &i32)` statement with overlapping memory
--> code.rs:2:44
|
2 | gen fn foo<'a, 'b>(x: &'a i32, y: &'b i32, z: &'b i32) -> &'b i32 {
| ^
|
note: delayed at compiler/rustc_mir_transform/src/lint.rs:106:34 - disabled backtrace
--> code.rs:2:44
|
2 | gen fn foo<'a, 'b>(x: &'a i32, y: &'b i32, z: &'b i32) -> &'b i32 {
| ^
error: internal compiler error: broken MIR in Item(DefId(0:8 ~ code[4f42]::main)) (after phase change to runtime-optimized) at bb7[1]:
encountered `((_2 as variant#3).0: &i32) = copy (_2.2: &i32)` statement with overlapping memory
--> code.rs:2:44
|
2 | gen fn foo<'a, 'b>(x: &'a i32, y: &'b i32, z: &'b i32) -> &'b i32 {
| ^
|
note: delayed at compiler/rustc_mir_transform/src/lint.rs:106:34 - disabled backtrace
--> code.rs:2:44
|
2 | gen fn foo<'a, 'b>(x: &'a i32, y: &'b i32, z: &'b i32) -> &'b i32 {
| ^
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: please attach the file at `/home/matthias/vcs/github/CRED/rustc-ice-2025-12-07T22_59_17-462340.txt` to your bug report
note: compiler flags: -Z mir-enable-passes=+Inline -Z mir-enable-passes=+ReferencePropagation -Z lint-mir
query stack during panic:
end of query stack
Code
Meta
rustc --version --verbose:Error output
Backtrace