rustc 1.59.0-nightly (c14569225 2022-01-01)
binary: rustc
commit-hash: c145692254e86974941f2c92c643a23df0f13e82
commit-date: 2022-01-01
host: x86_64-unknown-linux-gnu
release: 1.59.0-nightly
LLVM version: 13.0.0
warning: unused variable: `string`
--> ./compiler/rustc_codegen_gcc/tests/run/condition.rs:54:13
|
54 | let string =
| ^^^^^^ help: if this is intentional, prefix it with an underscore: `_string`
|
= note: `#[warn(unused_variables)]` on by default
warning: function is never used: `printf`
--> ./compiler/rustc_codegen_gcc/tests/run/condition.rs:25:9
|
25 | pub fn printf(format: *const i8, ...) -> i32;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: `#[warn(dead_code)]` on by default
warning: function is never used: `puts`
--> ./compiler/rustc_codegen_gcc/tests/run/condition.rs:26:9
|
26 | pub fn puts(s: *const u8) -> i32;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: function is never used: `abort`
--> ./compiler/rustc_codegen_gcc/tests/run/condition.rs:33:9
|
33 | pub fn abort() -> !;
| ^^^^^^^^^^^^^^^^^^^^
warning: 4 warnings emitted
error: internal compiler error: broken MIR in Item(WithOptConstParam { did: DefId(0:19 ~ condition[1c5b]::main), const_param_did: None }) (start of phase transition from Build) at bb0[2]:
`Operand::Copy` with non-`Copy` type isize
--> ./compiler/rustc_codegen_gcc/tests/run/condition.rs:55:13
|
55 | match argc {
| ^^^^^^^^^^
|
= note: delayed at compiler/rustc_const_eval/src/transform/validate.rs:119:36
error: internal compiler error: broken MIR in Item(WithOptConstParam { did: DefId(0:19 ~ condition[1c5b]::main), const_param_did: None }) (after pass CheckPackedRef) at bb0[2]:
`Operand::Copy` with non-`Copy` type isize
--> ./compiler/rustc_codegen_gcc/tests/run/condition.rs:55:13
|
55 | match argc {
| ^^^^^^^^^^
|
= note: delayed at compiler/rustc_const_eval/src/transform/validate.rs:119:36
error: internal compiler error: broken MIR in Item(WithOptConstParam { did: DefId(0:19 ~ condition[1c5b]::main), const_param_did: None }) (after pass CheckConstItemMutation) at bb0[2]:
`Operand::Copy` with non-`Copy` type isize
--> ./compiler/rustc_codegen_gcc/tests/run/condition.rs:55:13
|
55 | match argc {
| ^^^^^^^^^^
|
= note: delayed at compiler/rustc_const_eval/src/transform/validate.rs:119:36
error: internal compiler error: broken MIR in Item(WithOptConstParam { did: DefId(0:19 ~ condition[1c5b]::main), const_param_did: None }) (after pass FunctionItemReferences) at bb0[2]:
`Operand::Copy` with non-`Copy` type isize
--> ./compiler/rustc_codegen_gcc/tests/run/condition.rs:55:13
|
55 | match argc {
| ^^^^^^^^^^
|
= note: delayed at compiler/rustc_const_eval/src/transform/validate.rs:119:36
error: internal compiler error: broken MIR in Item(WithOptConstParam { did: DefId(0:19 ~ condition[1c5b]::main), const_param_did: None }) (after pass SimplifyCfg-initial) at bb0[2]:
`Operand::Copy` with non-`Copy` type isize
--> ./compiler/rustc_codegen_gcc/tests/run/condition.rs:55:13
|
55 | match argc {
| ^^^^^^^^^^
|
= note: delayed at compiler/rustc_const_eval/src/transform/validate.rs:119:36
error: internal compiler error: broken MIR in Item(WithOptConstParam { did: DefId(0:19 ~ condition[1c5b]::main), const_param_did: None }) (after pass SanityCheck) at bb0[2]:
`Operand::Copy` with non-`Copy` type isize
--> ./compiler/rustc_codegen_gcc/tests/run/condition.rs:55:13
|
55 | match argc {
| ^^^^^^^^^^
|
= note: delayed at compiler/rustc_const_eval/src/transform/validate.rs:119:36
error: internal compiler error: broken MIR in Item(WithOptConstParam { did: DefId(0:19 ~ condition[1c5b]::main), const_param_did: None }) (after pass PhaseChange-Const) at bb0[2]:
`Operand::Copy` with non-`Copy` type isize
--> ./compiler/rustc_codegen_gcc/tests/run/condition.rs:55:13
|
55 | match argc {
| ^^^^^^^^^^
|
= note: delayed at compiler/rustc_const_eval/src/transform/validate.rs:119:36
error: internal compiler error: broken MIR in Item(WithOptConstParam { did: DefId(0:19 ~ condition[1c5b]::main), const_param_did: None }) (end of phase transition to Const) at bb0[2]:
`Operand::Copy` with non-`Copy` type isize
--> ./compiler/rustc_codegen_gcc/tests/run/condition.rs:55:13
|
55 | match argc {
| ^^^^^^^^^^
|
= note: delayed at compiler/rustc_const_eval/src/transform/validate.rs:119:36
error: internal compiler error: broken MIR in Item(WithOptConstParam { did: DefId(0:19 ~ condition[1c5b]::main), const_param_did: None }) (start of phase transition from Const) at bb0[2]:
`Operand::Copy` with non-`Copy` type isize
--> ./compiler/rustc_codegen_gcc/tests/run/condition.rs:55:13
|
55 | match argc {
| ^^^^^^^^^^
|
= note: delayed at compiler/rustc_const_eval/src/transform/validate.rs:119:36
error: internal compiler error: broken MIR in Item(WithOptConstParam { did: DefId(0:19 ~ condition[1c5b]::main), const_param_did: None }) (after pass PromoteTemps) at bb0[2]:
`Operand::Copy` with non-`Copy` type isize
--> ./compiler/rustc_codegen_gcc/tests/run/condition.rs:55:13
|
55 | match argc {
| ^^^^^^^^^^
|
= note: delayed at compiler/rustc_const_eval/src/transform/validate.rs:119:36
error: internal compiler error: broken MIR in Item(WithOptConstParam { did: DefId(0:19 ~ condition[1c5b]::main), const_param_did: None }) (after pass SimplifyCfg-promote-consts) at bb0[2]:
`Operand::Copy` with non-`Copy` type isize
--> ./compiler/rustc_codegen_gcc/tests/run/condition.rs:55:13
|
55 | match argc {
| ^^^^^^^^^^
|
= note: delayed at compiler/rustc_const_eval/src/transform/validate.rs:119:36
error: internal compiler error: broken MIR in Item(WithOptConstParam { did: DefId(0:19 ~ condition[1c5b]::main), const_param_did: None }) (end of phase transition to ConstPromotion) at bb0[2]:
`Operand::Copy` with non-`Copy` type isize
--> ./compiler/rustc_codegen_gcc/tests/run/condition.rs:55:13
|
55 | match argc {
| ^^^^^^^^^^
|
= note: delayed at compiler/rustc_const_eval/src/transform/validate.rs:119:36
error: internal compiler error: broken MIR in DefId(0:19 ~ condition[1c5b]::main) (NoSolution): could not prove Binder(TraitPredicate(<isize as Copy>, polarity:Positive), [])
|
= note: delayed at compiler/rustc_borrowck/src/type_check/mod.rs:319:27
error: internal compiler error: broken MIR in Item(WithOptConstParam { did: DefId(0:19 ~ condition[1c5b]::main), const_param_did: None }) (start of phase transition from ConstPromotion) at bb0[2]:
`Operand::Copy` with non-`Copy` type isize
--> ./compiler/rustc_codegen_gcc/tests/run/condition.rs:55:13
|
55 | match argc {
| ^^^^^^^^^^
|
= note: delayed at compiler/rustc_const_eval/src/transform/validate.rs:119:36
error: internal compiler error: broken MIR in Item(WithOptConstParam { did: DefId(0:19 ~ condition[1c5b]::main), const_param_did: None }) (after pass RemoveFalseEdges) at bb0[2]:
`Operand::Copy` with non-`Copy` type isize
--> ./compiler/rustc_codegen_gcc/tests/run/condition.rs:55:13
|
55 | match argc {
| ^^^^^^^^^^
|
= note: delayed at compiler/rustc_const_eval/src/transform/validate.rs:119:36
error: internal compiler error: broken MIR in Item(WithOptConstParam { did: DefId(0:19 ~ condition[1c5b]::main), const_param_did: None }) (after pass SimplifyConstCondition-initial) at bb0[2]:
`Operand::Copy` with non-`Copy` type isize
--> ./compiler/rustc_codegen_gcc/tests/run/condition.rs:55:13
|
55 | match argc {
| ^^^^^^^^^^
|
= note: delayed at compiler/rustc_const_eval/src/transform/validate.rs:119:36
error: internal compiler error: broken MIR in Item(WithOptConstParam { did: DefId(0:19 ~ condition[1c5b]::main), const_param_did: None }) (after pass RemoveNoopLandingPads) at bb0[2]:
`Operand::Copy` with non-`Copy` type isize
--> ./compiler/rustc_codegen_gcc/tests/run/condition.rs:55:13
|
55 | match argc {
| ^^^^^^^^^^
|
= note: delayed at compiler/rustc_const_eval/src/transform/validate.rs:119:36
error: internal compiler error: broken MIR in Item(WithOptConstParam { did: DefId(0:19 ~ condition[1c5b]::main), const_param_did: None }) (after pass CleanupNonCodegenStatements) at bb0[2]:
`Operand::Copy` with non-`Copy` type isize
--> ./compiler/rustc_codegen_gcc/tests/run/condition.rs:55:13
|
55 | match argc {
| ^^^^^^^^^^
|
= note: delayed at compiler/rustc_const_eval/src/transform/validate.rs:119:36
error: internal compiler error: broken MIR in Item(WithOptConstParam { did: DefId(0:19 ~ condition[1c5b]::main), const_param_did: None }) (after pass SimplifyCfg-early-opt) at bb0[1]:
`Operand::Copy` with non-`Copy` type isize
--> ./compiler/rustc_codegen_gcc/tests/run/condition.rs:55:13
|
55 | match argc {
| ^^^^^^^^^^
|
= note: delayed at compiler/rustc_const_eval/src/transform/validate.rs:119:36
error: internal compiler error: broken MIR in Item(WithOptConstParam { did: DefId(0:19 ~ condition[1c5b]::main), const_param_did: None }) (after pass AddCallGuards) at bb0[1]:
`Operand::Copy` with non-`Copy` type isize
--> ./compiler/rustc_codegen_gcc/tests/run/condition.rs:55:13
|
55 | match argc {
| ^^^^^^^^^^
|
= note: delayed at compiler/rustc_const_eval/src/transform/validate.rs:119:36
error: internal compiler error: broken MIR in Item(WithOptConstParam { did: DefId(0:19 ~ condition[1c5b]::main), const_param_did: None }) (after pass ElaborateDrops) at bb0[1]:
`Operand::Copy` with non-`Copy` type isize
--> ./compiler/rustc_codegen_gcc/tests/run/condition.rs:55:13
|
55 | match argc {
| ^^^^^^^^^^
|
= note: delayed at compiler/rustc_const_eval/src/transform/validate.rs:119:36
error: internal compiler error: broken MIR in Item(WithOptConstParam { did: DefId(0:19 ~ condition[1c5b]::main), const_param_did: None }) (after pass AbortUnwindingCalls) at bb0[1]:
`Operand::Copy` with non-`Copy` type isize
--> ./compiler/rustc_codegen_gcc/tests/run/condition.rs:55:13
|
55 | match argc {
| ^^^^^^^^^^
|
= note: delayed at compiler/rustc_const_eval/src/transform/validate.rs:119:36
error: internal compiler error: broken MIR in Item(WithOptConstParam { did: DefId(0:19 ~ condition[1c5b]::main), const_param_did: None }) (after pass AddMovesForPackedDrops) at bb0[1]:
`Operand::Copy` with non-`Copy` type isize
--> ./compiler/rustc_codegen_gcc/tests/run/condition.rs:55:13
|
55 | match argc {
| ^^^^^^^^^^
|
= note: delayed at compiler/rustc_const_eval/src/transform/validate.rs:119:36
error: internal compiler error: broken MIR in Item(WithOptConstParam { did: DefId(0:19 ~ condition[1c5b]::main), const_param_did: None }) (after pass LowerIntrinsics) at bb0[1]:
`Operand::Copy` with non-`Copy` type isize
--> ./compiler/rustc_codegen_gcc/tests/run/condition.rs:55:13
|
55 | match argc {
| ^^^^^^^^^^
|
= note: delayed at compiler/rustc_const_eval/src/transform/validate.rs:119:36
error: internal compiler error: broken MIR in Item(WithOptConstParam { did: DefId(0:19 ~ condition[1c5b]::main), const_param_did: None }) (after pass SimplifyCfg-elaborate-drops) at bb0[1]:
`Operand::Copy` with non-`Copy` type isize
--> ./compiler/rustc_codegen_gcc/tests/run/condition.rs:55:13
|
55 | match argc {
| ^^^^^^^^^^
|
= note: delayed at compiler/rustc_const_eval/src/transform/validate.rs:119:36
error: internal compiler error: broken MIR in Item(WithOptConstParam { did: DefId(0:19 ~ condition[1c5b]::main), const_param_did: None }) (after pass Deaggregator) at bb0[1]:
`Operand::Copy` with non-`Copy` type isize
--> ./compiler/rustc_codegen_gcc/tests/run/condition.rs:55:13
|
55 | match argc {
| ^^^^^^^^^^
|
= note: delayed at compiler/rustc_const_eval/src/transform/validate.rs:119:36
error: internal compiler error: broken MIR in Item(WithOptConstParam { did: DefId(0:19 ~ condition[1c5b]::main), const_param_did: None }) (end of phase transition to DropLowering) at bb0[1]:
`Operand::Copy` with non-`Copy` type isize
--> ./compiler/rustc_codegen_gcc/tests/run/condition.rs:55:13
|
55 | match argc {
| ^^^^^^^^^^
|
= note: delayed at compiler/rustc_const_eval/src/transform/validate.rs:119:36
error: internal compiler error: broken MIR in Item(WithOptConstParam { did: DefId(0:19 ~ condition[1c5b]::main), const_param_did: None }) (start of phase transition from DropLowering) at bb0[1]:
`Operand::Copy` with non-`Copy` type isize
--> ./compiler/rustc_codegen_gcc/tests/run/condition.rs:55:13
|
55 | match argc {
| ^^^^^^^^^^
|
= note: delayed at compiler/rustc_const_eval/src/transform/validate.rs:119:36
error: internal compiler error: broken MIR in Item(WithOptConstParam { did: DefId(0:19 ~ condition[1c5b]::main), const_param_did: None }) (after pass LowerSliceLenCalls) at bb0[1]:
`Operand::Copy` with non-`Copy` type isize
--> ./compiler/rustc_codegen_gcc/tests/run/condition.rs:55:13
|
55 | match argc {
| ^^^^^^^^^^
|
= note: delayed at compiler/rustc_const_eval/src/transform/validate.rs:119:36
error: internal compiler error: broken MIR in Item(WithOptConstParam { did: DefId(0:19 ~ condition[1c5b]::main), const_param_did: None }) (after pass UninhabitedEnumBranching) at bb0[1]:
`Operand::Copy` with non-`Copy` type isize
--> ./compiler/rustc_codegen_gcc/tests/run/condition.rs:55:13
|
55 | match argc {
| ^^^^^^^^^^
|
= note: delayed at compiler/rustc_const_eval/src/transform/validate.rs:119:36
error: internal compiler error: broken MIR in Item(WithOptConstParam { did: DefId(0:19 ~ condition[1c5b]::main), const_param_did: None }) (after pass SimplifyCfg-after-uninhabited-enum-branching) at bb0[1]:
`Operand::Copy` with non-`Copy` type isize
--> ./compiler/rustc_codegen_gcc/tests/run/condition.rs:55:13
|
55 | match argc {
| ^^^^^^^^^^
|
= note: delayed at compiler/rustc_const_eval/src/transform/validate.rs:119:36
error: internal compiler error: broken MIR in Item(WithOptConstParam { did: DefId(0:19 ~ condition[1c5b]::main), const_param_did: None }) (after pass StateTransform) at bb0[1]:
`Operand::Copy` with non-`Copy` type isize
--> ./compiler/rustc_codegen_gcc/tests/run/condition.rs:55:13
|
55 | match argc {
| ^^^^^^^^^^
|
= note: delayed at compiler/rustc_const_eval/src/transform/validate.rs:119:36
error: internal compiler error: broken MIR in Item(WithOptConstParam { did: DefId(0:19 ~ condition[1c5b]::main), const_param_did: None }) (end of phase transition to GeneratorLowering) at bb0[1]:
`Operand::Copy` with non-`Copy` type isize
--> ./compiler/rustc_codegen_gcc/tests/run/condition.rs:55:13
|
55 | match argc {
| ^^^^^^^^^^
|
= note: delayed at compiler/rustc_const_eval/src/transform/validate.rs:119:36
error: internal compiler error: broken MIR in Item(WithOptConstParam { did: DefId(0:19 ~ condition[1c5b]::main), const_param_did: None }) (start of phase transition from GeneratorLowering) at bb0[1]:
`Operand::Copy` with non-`Copy` type isize
--> ./compiler/rustc_codegen_gcc/tests/run/condition.rs:55:13
|
55 | match argc {
| ^^^^^^^^^^
|
= note: delayed at compiler/rustc_const_eval/src/transform/validate.rs:119:36
error: internal compiler error: broken MIR in Item(WithOptConstParam { did: DefId(0:19 ~ condition[1c5b]::main), const_param_did: None }) (after pass RemoveStorageMarkers) at bb0[0]:
`Operand::Copy` with non-`Copy` type isize
--> ./compiler/rustc_codegen_gcc/tests/run/condition.rs:55:13
|
55 | match argc {
| ^^^^^^^^^^
|
= note: delayed at compiler/rustc_const_eval/src/transform/validate.rs:119:36
error: internal compiler error: broken MIR in Item(WithOptConstParam { did: DefId(0:19 ~ condition[1c5b]::main), const_param_did: None }) (after pass RemoveZsts) at bb0[0]:
`Operand::Copy` with non-`Copy` type isize
--> ./compiler/rustc_codegen_gcc/tests/run/condition.rs:55:13
|
55 | match argc {
| ^^^^^^^^^^
|
= note: delayed at compiler/rustc_const_eval/src/transform/validate.rs:119:36
error: internal compiler error: broken MIR in Item(WithOptConstParam { did: DefId(0:19 ~ condition[1c5b]::main), const_param_did: None }) (after pass RemoveUnneededDrops) at bb0[0]:
`Operand::Copy` with non-`Copy` type isize
--> ./compiler/rustc_codegen_gcc/tests/run/condition.rs:55:13
|
55 | match argc {
| ^^^^^^^^^^
|
= note: delayed at compiler/rustc_const_eval/src/transform/validate.rs:119:36
error: internal compiler error: broken MIR in Item(WithOptConstParam { did: DefId(0:19 ~ condition[1c5b]::main), const_param_did: None }) (after pass InstCombine) at bb0[0]:
`Operand::Copy` with non-`Copy` type isize
--> ./compiler/rustc_codegen_gcc/tests/run/condition.rs:55:13
|
55 | match argc {
| ^^^^^^^^^^
|
= note: delayed at compiler/rustc_const_eval/src/transform/validate.rs:119:36
error: internal compiler error: broken MIR in Item(WithOptConstParam { did: DefId(0:19 ~ condition[1c5b]::main), const_param_did: None }) (after pass InstCombine) at bb1[1]:
`Operand::Copy` with non-`Copy` type &[u8; 3]
--> ./compiler/rustc_codegen_gcc/tests/run/condition.rs:57:22
|
57 | _ => b"_\n\0",
| ^^^^^^^^
|
= note: delayed at compiler/rustc_const_eval/src/transform/validate.rs:119:36
error: internal compiler error: broken MIR in Item(WithOptConstParam { did: DefId(0:19 ~ condition[1c5b]::main), const_param_did: None }) (after pass ConstProp) at bb0[0]:
`Operand::Copy` with non-`Copy` type isize
--> ./compiler/rustc_codegen_gcc/tests/run/condition.rs:55:13
|
55 | match argc {
| ^^^^^^^^^^
|
= note: delayed at compiler/rustc_const_eval/src/transform/validate.rs:119:36
error: internal compiler error: broken MIR in Item(WithOptConstParam { did: DefId(0:19 ~ condition[1c5b]::main), const_param_did: None }) (after pass ConstProp) at bb1[1]:
`Operand::Copy` with non-`Copy` type &[u8; 3]
--> ./compiler/rustc_codegen_gcc/tests/run/condition.rs:57:22
|
57 | _ => b"_\n\0",
| ^^^^^^^^
|
= note: delayed at compiler/rustc_const_eval/src/transform/validate.rs:119:36
error: internal compiler error: broken MIR in Item(WithOptConstParam { did: DefId(0:19 ~ condition[1c5b]::main), const_param_did: None }) (after pass SimplifyConstCondition-after-const-prop) at bb0[0]:
`Operand::Copy` with non-`Copy` type isize
--> ./compiler/rustc_codegen_gcc/tests/run/condition.rs:55:13
|
55 | match argc {
| ^^^^^^^^^^
|
= note: delayed at compiler/rustc_const_eval/src/transform/validate.rs:119:36
error: internal compiler error: broken MIR in Item(WithOptConstParam { did: DefId(0:19 ~ condition[1c5b]::main), const_param_did: None }) (after pass SimplifyConstCondition-after-const-prop) at bb1[1]:
`Operand::Copy` with non-`Copy` type &[u8; 3]
--> ./compiler/rustc_codegen_gcc/tests/run/condition.rs:57:22
|
57 | _ => b"_\n\0",
| ^^^^^^^^
|
= note: delayed at compiler/rustc_const_eval/src/transform/validate.rs:119:36
error: internal compiler error: broken MIR in Item(WithOptConstParam { did: DefId(0:19 ~ condition[1c5b]::main), const_param_did: None }) (after pass SimplifyComparisonIntegral) at bb0[0]:
`Operand::Copy` with non-`Copy` type isize
--> ./compiler/rustc_codegen_gcc/tests/run/condition.rs:55:13
|
55 | match argc {
| ^^^^^^^^^^
|
= note: delayed at compiler/rustc_const_eval/src/transform/validate.rs:119:36
error: internal compiler error: broken MIR in Item(WithOptConstParam { did: DefId(0:19 ~ condition[1c5b]::main), const_param_did: None }) (after pass SimplifyComparisonIntegral) at bb1[1]:
`Operand::Copy` with non-`Copy` type &[u8; 3]
--> ./compiler/rustc_codegen_gcc/tests/run/condition.rs:57:22
|
57 | _ => b"_\n\0",
| ^^^^^^^^
|
= note: delayed at compiler/rustc_const_eval/src/transform/validate.rs:119:36
error: internal compiler error: broken MIR in Item(WithOptConstParam { did: DefId(0:19 ~ condition[1c5b]::main), const_param_did: None }) (after pass SimplifyArmIdentity) at bb0[0]:
`Operand::Copy` with non-`Copy` type isize
--> ./compiler/rustc_codegen_gcc/tests/run/condition.rs:55:13
|
55 | match argc {
| ^^^^^^^^^^
|
= note: delayed at compiler/rustc_const_eval/src/transform/validate.rs:119:36
error: internal compiler error: broken MIR in Item(WithOptConstParam { did: DefId(0:19 ~ condition[1c5b]::main), const_param_did: None }) (after pass SimplifyArmIdentity) at bb1[1]:
`Operand::Copy` with non-`Copy` type &[u8; 3]
--> ./compiler/rustc_codegen_gcc/tests/run/condition.rs:57:22
|
57 | _ => b"_\n\0",
| ^^^^^^^^
|
= note: delayed at compiler/rustc_const_eval/src/transform/validate.rs:119:36
error: internal compiler error: broken MIR in Item(WithOptConstParam { did: DefId(0:19 ~ condition[1c5b]::main), const_param_did: None }) (after pass SimplifyBranchSame) at bb0[0]:
`Operand::Copy` with non-`Copy` type isize
--> ./compiler/rustc_codegen_gcc/tests/run/condition.rs:55:13
|
55 | match argc {
| ^^^^^^^^^^
|
= note: delayed at compiler/rustc_const_eval/src/transform/validate.rs:119:36
error: internal compiler error: broken MIR in Item(WithOptConstParam { did: DefId(0:19 ~ condition[1c5b]::main), const_param_did: None }) (after pass SimplifyBranchSame) at bb1[1]:
`Operand::Copy` with non-`Copy` type &[u8; 3]
--> ./compiler/rustc_codegen_gcc/tests/run/condition.rs:57:22
|
57 | _ => b"_\n\0",
| ^^^^^^^^
|
= note: delayed at compiler/rustc_const_eval/src/transform/validate.rs:119:36
error: internal compiler error: broken MIR in Item(WithOptConstParam { did: DefId(0:19 ~ condition[1c5b]::main), const_param_did: None }) (after pass SimplifyConstCondition-final) at bb0[0]:
`Operand::Copy` with non-`Copy` type isize
--> ./compiler/rustc_codegen_gcc/tests/run/condition.rs:55:13
|
55 | match argc {
| ^^^^^^^^^^
|
= note: delayed at compiler/rustc_const_eval/src/transform/validate.rs:119:36
error: internal compiler error: broken MIR in Item(WithOptConstParam { did: DefId(0:19 ~ condition[1c5b]::main), const_param_did: None }) (after pass SimplifyConstCondition-final) at bb1[1]:
`Operand::Copy` with non-`Copy` type &[u8; 3]
--> ./compiler/rustc_codegen_gcc/tests/run/condition.rs:57:22
|
57 | _ => b"_\n\0",
| ^^^^^^^^
|
= note: delayed at compiler/rustc_const_eval/src/transform/validate.rs:119:36
error: internal compiler error: broken MIR in Item(WithOptConstParam { did: DefId(0:19 ~ condition[1c5b]::main), const_param_did: None }) (after pass RemoveNoopLandingPads) at bb0[0]:
`Operand::Copy` with non-`Copy` type isize
--> ./compiler/rustc_codegen_gcc/tests/run/condition.rs:55:13
|
55 | match argc {
| ^^^^^^^^^^
|
= note: delayed at compiler/rustc_const_eval/src/transform/validate.rs:119:36
error: internal compiler error: broken MIR in Item(WithOptConstParam { did: DefId(0:19 ~ condition[1c5b]::main), const_param_did: None }) (after pass RemoveNoopLandingPads) at bb1[1]:
`Operand::Copy` with non-`Copy` type &[u8; 3]
--> ./compiler/rustc_codegen_gcc/tests/run/condition.rs:57:22
|
57 | _ => b"_\n\0",
| ^^^^^^^^
|
= note: delayed at compiler/rustc_const_eval/src/transform/validate.rs:119:36
error: internal compiler error: broken MIR in Item(WithOptConstParam { did: DefId(0:19 ~ condition[1c5b]::main), const_param_did: None }) (after pass SimplifyCfg-final) at bb0[0]:
`Operand::Copy` with non-`Copy` type isize
--> ./compiler/rustc_codegen_gcc/tests/run/condition.rs:55:13
|
55 | match argc {
| ^^^^^^^^^^
|
= note: delayed at compiler/rustc_const_eval/src/transform/validate.rs:119:36
error: internal compiler error: broken MIR in Item(WithOptConstParam { did: DefId(0:19 ~ condition[1c5b]::main), const_param_did: None }) (after pass SimplifyCfg-final) at bb1[1]:
`Operand::Copy` with non-`Copy` type &[u8; 3]
--> ./compiler/rustc_codegen_gcc/tests/run/condition.rs:57:22
|
57 | _ => b"_\n\0",
| ^^^^^^^^
|
= note: delayed at compiler/rustc_const_eval/src/transform/validate.rs:119:36
error: internal compiler error: broken MIR in Item(WithOptConstParam { did: DefId(0:19 ~ condition[1c5b]::main), const_param_did: None }) (after pass RenameReturnPlace) at bb0[0]:
`Operand::Copy` with non-`Copy` type isize
--> ./compiler/rustc_codegen_gcc/tests/run/condition.rs:55:13
|
55 | match argc {
| ^^^^^^^^^^
|
= note: delayed at compiler/rustc_const_eval/src/transform/validate.rs:119:36
error: internal compiler error: broken MIR in Item(WithOptConstParam { did: DefId(0:19 ~ condition[1c5b]::main), const_param_did: None }) (after pass RenameReturnPlace) at bb1[1]:
`Operand::Copy` with non-`Copy` type &[u8; 3]
--> ./compiler/rustc_codegen_gcc/tests/run/condition.rs:57:22
|
57 | _ => b"_\n\0",
| ^^^^^^^^
|
= note: delayed at compiler/rustc_const_eval/src/transform/validate.rs:119:36
error: internal compiler error: broken MIR in Item(WithOptConstParam { did: DefId(0:19 ~ condition[1c5b]::main), const_param_did: None }) (after pass SimplifyLocals) at bb0[0]:
`Operand::Copy` with non-`Copy` type isize
--> ./compiler/rustc_codegen_gcc/tests/run/condition.rs:55:13
|
55 | match argc {
| ^^^^^^^^^^
|
= note: delayed at compiler/rustc_const_eval/src/transform/validate.rs:119:36
error: internal compiler error: broken MIR in Item(WithOptConstParam { did: DefId(0:19 ~ condition[1c5b]::main), const_param_did: None }) (after pass SimplifyLocals) at bb1[1]:
`Operand::Copy` with non-`Copy` type &[u8; 3]
--> ./compiler/rustc_codegen_gcc/tests/run/condition.rs:57:22
|
57 | _ => b"_\n\0",
| ^^^^^^^^
|
= note: delayed at compiler/rustc_const_eval/src/transform/validate.rs:119:36
error: internal compiler error: broken MIR in Item(WithOptConstParam { did: DefId(0:19 ~ condition[1c5b]::main), const_param_did: None }) (after pass AddCallGuards) at bb0[0]:
`Operand::Copy` with non-`Copy` type isize
--> ./compiler/rustc_codegen_gcc/tests/run/condition.rs:55:13
|
55 | match argc {
| ^^^^^^^^^^
|
= note: delayed at compiler/rustc_const_eval/src/transform/validate.rs:119:36
error: internal compiler error: broken MIR in Item(WithOptConstParam { did: DefId(0:19 ~ condition[1c5b]::main), const_param_did: None }) (after pass AddCallGuards) at bb1[1]:
`Operand::Copy` with non-`Copy` type &[u8; 3]
--> ./compiler/rustc_codegen_gcc/tests/run/condition.rs:57:22
|
57 | _ => b"_\n\0",
| ^^^^^^^^
|
= note: delayed at compiler/rustc_const_eval/src/transform/validate.rs:119:36
error: internal compiler error: broken MIR in Item(WithOptConstParam { did: DefId(0:19 ~ condition[1c5b]::main), const_param_did: None }) (after pass PhaseChange-Optimization) at bb0[0]:
`Operand::Copy` with non-`Copy` type isize
--> ./compiler/rustc_codegen_gcc/tests/run/condition.rs:55:13
|
55 | match argc {
| ^^^^^^^^^^
|
= note: delayed at compiler/rustc_const_eval/src/transform/validate.rs:119:36
error: internal compiler error: broken MIR in Item(WithOptConstParam { did: DefId(0:19 ~ condition[1c5b]::main), const_param_did: None }) (after pass PhaseChange-Optimization) at bb1[1]:
`Operand::Copy` with non-`Copy` type &[u8; 3]
--> ./compiler/rustc_codegen_gcc/tests/run/condition.rs:57:22
|
57 | _ => b"_\n\0",
| ^^^^^^^^
|
= note: delayed at compiler/rustc_const_eval/src/transform/validate.rs:119:36
error: internal compiler error: broken MIR in Item(WithOptConstParam { did: DefId(0:19 ~ condition[1c5b]::main), const_param_did: None }) (after pass PreCodegen) at bb0[0]:
`Operand::Copy` with non-`Copy` type isize
--> ./compiler/rustc_codegen_gcc/tests/run/condition.rs:55:13
|
55 | match argc {
| ^^^^^^^^^^
|
= note: delayed at compiler/rustc_const_eval/src/transform/validate.rs:119:36
error: internal compiler error: broken MIR in Item(WithOptConstParam { did: DefId(0:19 ~ condition[1c5b]::main), const_param_did: None }) (after pass PreCodegen) at bb1[1]:
`Operand::Copy` with non-`Copy` type &[u8; 3]
--> ./compiler/rustc_codegen_gcc/tests/run/condition.rs:57:22
|
57 | _ => b"_\n\0",
| ^^^^^^^^
|
= note: delayed at compiler/rustc_const_eval/src/transform/validate.rs:119:36
error: internal compiler error: broken MIR in Item(WithOptConstParam { did: DefId(0:19 ~ condition[1c5b]::main), const_param_did: None }) (end of phase transition to Optimization) at bb0[0]:
`Operand::Copy` with non-`Copy` type isize
--> ./compiler/rustc_codegen_gcc/tests/run/condition.rs:55:13
|
55 | match argc {
| ^^^^^^^^^^
|
= note: delayed at compiler/rustc_const_eval/src/transform/validate.rs:119:36
error: internal compiler error: broken MIR in Item(WithOptConstParam { did: DefId(0:19 ~ condition[1c5b]::main), const_param_did: None }) (end of phase transition to Optimization) at bb1[1]:
`Operand::Copy` with non-`Copy` type &[u8; 3]
--> ./compiler/rustc_codegen_gcc/tests/run/condition.rs:57:22
|
57 | _ => b"_\n\0",
| ^^^^^^^^
|
= note: delayed at compiler/rustc_const_eval/src/transform/validate.rs:119:36
thread 'rustc' panicked at 'no errors encountered even though `delay_span_bug` issued', compiler/rustc_errors/src/lib.rs:1188:13
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
error: internal compiler error: unexpected panic
note: the compiler unexpectedly panicked. this is a bug.
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: rustc 1.59.0-nightly (c14569225 2022-01-01) running on x86_64-unknown-linux-gnu
note: compiler flags: -Z validate-mir
query stack during panic:
end of query stack
Code
code from
./compiler/rustc_codegen_gcc/tests/run/condition.rsMeta
rustc --version --verbose:Error output
Backtrace