From 86be22ebcdb904cfdc3c223718a32dc6af422621 Mon Sep 17 00:00:00 2001 From: Xavier Denis Date: Mon, 27 Jul 2020 21:22:43 +0200 Subject: [PATCH] add crate name to mir dumps --- fuckyou.rb | 7 +++++++ omg.mir | 2 ++ src/librustc_mir/util/pretty.rs | 3 ++- src/test/mir-opt/address-of.rs | 4 ++-- ...ddress_of_reborrow.SimplifyCfg-initial.after.mir} | 0 ...of.borrow_and_cast.SimplifyCfg-initial.after.mir} | 0 src/test/mir-opt/array-index-is-temporary.rs | 2 +- ...orary.main.SimplifyCfg-elaborate-drops.after.mir} | 0 src/test/mir-opt/basic_assignment.rs | 2 +- ...ic_assignment.main.SimplifyCfg-initial.after.mir} | 0 src/test/mir-opt/box_expr.rs | 2 +- ...e.mir => box_expr.main.ElaborateDrops.before.mir} | 0 src/test/mir-opt/byte_slice.rs | 2 +- ...slice.main.SimplifyCfg-elaborate-drops.after.mir} | 0 src/test/mir-opt/combine_array_len.rs | 2 +- ...diff => combine_array_len.norm2.InstCombine.diff} | 0 src/test/mir-opt/const-promotion-extern-static.rs | 8 ++++---- ...xtern_static.BAR-promoted[0].ConstProp.after.mir} | 0 ...st_promotion_extern_static.BAR.PromoteTemps.diff} | 0 ...xtern_static.FOO-promoted[0].ConstProp.after.mir} | 0 ...st_promotion_extern_static.FOO.PromoteTemps.diff} | 0 src/test/mir-opt/const_allocation.rs | 2 +- ...mir => const_allocation.main.ConstProp.after.mir} | 0 src/test/mir-opt/const_allocation2.rs | 2 +- ...ir => const_allocation2.main.ConstProp.after.mir} | 0 src/test/mir-opt/const_allocation3.rs | 2 +- ...ir => const_allocation3.main.ConstProp.after.mir} | 0 src/test/mir-opt/const_prop/aggregate.rs | 2 +- ....ConstProp.diff => aggregate.main.ConstProp.diff} | 0 src/test/mir-opt/const_prop/array_index.rs | 2 +- ...onstProp.diff => array_index.main.ConstProp.diff} | 0 src/test/mir-opt/const_prop/bad_op_div_by_zero.rs | 2 +- ...p.diff => bad_op_div_by_zero.main.ConstProp.diff} | 0 src/test/mir-opt/const_prop/bad_op_mod_by_zero.rs | 2 +- ...p.diff => bad_op_mod_by_zero.main.ConstProp.diff} | 0 .../const_prop/bad_op_unsafe_oob_for_slices.rs | 2 +- ...bad_op_unsafe_oob_for_slices.main.ConstProp.diff} | 0 src/test/mir-opt/const_prop/boolean_identities.rs | 2 +- ...p.diff => boolean_identities.test.ConstProp.diff} | 0 src/test/mir-opt/const_prop/boxes.rs | 2 +- ...main.ConstProp.diff => boxes.main.ConstProp.diff} | 0 src/test/mir-opt/const_prop/cast.rs | 2 +- ....main.ConstProp.diff => cast.main.ConstProp.diff} | 0 src/test/mir-opt/const_prop/checked_add.rs | 2 +- ...onstProp.diff => checked_add.main.ConstProp.diff} | 0 .../const_prop/const_prop_fails_gracefully.rs | 2 +- ... const_prop_fails_gracefully.main.ConstProp.diff} | 0 .../const_prop/control-flow-simplification.rs | 4 ++-- ...control_flow_simplification.hello.ConstProp.diff} | 0 ..._flow_simplification.hello.PreCodegen.before.mir} | 0 src/test/mir-opt/const_prop/discriminant.rs | 2 +- ...nstProp.diff => discriminant.main.ConstProp.diff} | 0 src/test/mir-opt/const_prop/indirect.rs | 2 +- ...n.ConstProp.diff => indirect.main.ConstProp.diff} | 0 src/test/mir-opt/const_prop/issue-66971.rs | 2 +- ...onstProp.diff => issue_66971.main.ConstProp.diff} | 0 src/test/mir-opt/const_prop/issue-67019.rs | 2 +- ...onstProp.diff => issue_67019.main.ConstProp.diff} | 0 src/test/mir-opt/const_prop/mult_by_zero.rs | 2 +- ...nstProp.diff => mult_by_zero.test.ConstProp.diff} | 0 src/test/mir-opt/const_prop/mutable_variable.rs | 2 +- ...rop.diff => mutable_variable.main.ConstProp.diff} | 0 .../mir-opt/const_prop/mutable_variable_aggregate.rs | 2 +- ...> mutable_variable_aggregate.main.ConstProp.diff} | 0 .../const_prop/mutable_variable_aggregate_mut_ref.rs | 2 +- ...e_variable_aggregate_mut_ref.main.ConstProp.diff} | 0 .../mutable_variable_aggregate_partial_read.rs | 2 +- ...iable_aggregate_partial_read.main.ConstProp.diff} | 0 .../mir-opt/const_prop/mutable_variable_no_prop.rs | 2 +- ... => mutable_variable_no_prop.main.ConstProp.diff} | 0 .../const_prop/mutable_variable_unprop_assign.rs | 2 +- ...table_variable_unprop_assign.main.ConstProp.diff} | 0 .../mir-opt/const_prop/optimizes_into_variable.rs | 4 ++-- ...f => optimizes_into_variable.main.ConstProp.diff} | 0 ...izes_into_variable.main.SimplifyLocals.after.mir} | 0 src/test/mir-opt/const_prop/read_immutable_static.rs | 2 +- ...iff => read_immutable_static.main.ConstProp.diff} | 0 src/test/mir-opt/const_prop/ref_deref.rs | 4 ++-- ....ConstProp.diff => ref_deref.main.ConstProp.diff} | 0 ...teTemps.diff => ref_deref.main.PromoteTemps.diff} | 0 src/test/mir-opt/const_prop/ref_deref_project.rs | 4 ++-- ...op.diff => ref_deref_project.main.ConstProp.diff} | 0 ...diff => ref_deref_project.main.PromoteTemps.diff} | 0 src/test/mir-opt/const_prop/reify_fn_ptr.rs | 2 +- ...nstProp.diff => reify_fn_ptr.main.ConstProp.diff} | 0 src/test/mir-opt/const_prop/repeat.rs | 2 +- ...ain.ConstProp.diff => repeat.main.ConstProp.diff} | 0 src/test/mir-opt/const_prop/return_place.rs | 4 ++-- ...onstProp.diff => return_place.add.ConstProp.diff} | 0 ...re.mir => return_place.add.PreCodegen.before.mir} | 0 .../mir-opt/const_prop/scalar_literal_propagation.rs | 2 +- ...> scalar_literal_propagation.main.ConstProp.diff} | 0 src/test/mir-opt/const_prop/slice_len.rs | 2 +- ....ConstProp.diff => slice_len.main.ConstProp.diff} | 0 src/test/mir-opt/const_prop/switch_int.rs | 4 ++-- ...ConstProp.diff => switch_int.main.ConstProp.diff} | 0 ..._int.main.SimplifyBranches-after-const-prop.diff} | 0 .../mir-opt/const_prop/tuple_literal_propagation.rs | 2 +- ...=> tuple_literal_propagation.main.ConstProp.diff} | 0 src/test/mir-opt/const_prop_miscompile.rs | 4 ++-- ...diff => const_prop_miscompile.bar.ConstProp.diff} | 0 ...diff => const_prop_miscompile.foo.ConstProp.diff} | 0 src/test/mir-opt/copy_propagation.rs | 2 +- ...ff => copy_propagation.test.CopyPropagation.diff} | 0 src/test/mir-opt/copy_propagation_arg.rs | 8 ++++---- ...opy_propagation_arg.arg_src.CopyPropagation.diff} | 0 ...=> copy_propagation_arg.bar.CopyPropagation.diff} | 0 ...=> copy_propagation_arg.baz.CopyPropagation.diff} | 0 ...=> copy_propagation_arg.foo.CopyPropagation.diff} | 0 src/test/mir-opt/deaggregator_test.rs | 2 +- ....diff => deaggregator_test.bar.Deaggregator.diff} | 0 src/test/mir-opt/deaggregator_test_enum.rs | 2 +- ... => deaggregator_test_enum.bar.Deaggregator.diff} | 0 src/test/mir-opt/deaggregator_test_enum_2.rs | 2 +- ...deaggregator_test_enum_2.test1.Deaggregator.diff} | 0 src/test/mir-opt/deaggregator_test_multiple.rs | 2 +- ...eaggregator_test_multiple.test.Deaggregator.diff} | 0 src/test/mir-opt/exponential-or.rs | 2 +- ...ial_or.match_tuple.SimplifyCfg-initial.after.mir} | 0 src/test/mir-opt/fn-ptr-shim.rs | 2 +- ...nction-Fn-call.AddMovesForPackedDrops.before.mir} | 0 src/test/mir-opt/generator-drop-cleanup.rs | 2 +- ...op_cleanup.main-{{closure}}.generator_drop.0.mir} | 0 src/test/mir-opt/generator-storage-dead-unwind.rs | 2 +- ...nwind.main-{{closure}}.StateTransform.before.mir} | 0 src/test/mir-opt/generator-tiny.rs | 2 +- ...tor_tiny.main-{{closure}}.generator_resume.0.mir} | 0 src/test/mir-opt/graphviz.rs | 2 +- ...ain.mir_map.0.dot => graphviz.main.mir_map.0.dot} | 0 src/test/mir-opt/inline/inline-any-operand.rs | 2 +- ...r.mir => inline_any_operand.bar.Inline.after.mir} | 0 .../mir-opt/inline/inline-closure-borrows-arg.rs | 2 +- ... inline_closure_borrows_arg.foo.Inline.after.mir} | 0 src/test/mir-opt/inline/inline-closure-captures.rs | 2 +- ... => inline_closure_captures.foo.Inline.after.mir} | 0 src/test/mir-opt/inline/inline-closure.rs | 2 +- ...after.mir => inline_closure.foo.Inline.after.mir} | 0 src/test/mir-opt/inline/inline-into-box-place.rs | 2 +- ...e.diff => inline_into_box_place.main.Inline.diff} | 0 src/test/mir-opt/inline/inline-retag.rs | 2 +- ...e.after.mir => inline_retag.bar.Inline.after.mir} | 0 src/test/mir-opt/inline/inline-specialization.rs | 2 +- ...e.diff => inline_specialization.main.Inline.diff} | 0 src/test/mir-opt/inline/inline-trait-method.rs | 2 +- ...mir => inline_trait_method.test.Inline.after.mir} | 0 src/test/mir-opt/inline/inline-trait-method_2.rs | 2 +- ... => inline_trait_method_2.test2.Inline.after.mir} | 0 .../inline/issue-58867-inline-as-ref-as-mut.rs | 8 ++++---- ...ue_58867_inline_as_ref_as_mut.a.Inline.after.mir} | 0 ...ue_58867_inline_as_ref_as_mut.b.Inline.after.mir} | 0 ...ue_58867_inline_as_ref_as_mut.c.Inline.after.mir} | 0 ...ue_58867_inline_as_ref_as_mut.d.Inline.after.mir} | 0 src/test/mir-opt/instrument_coverage.rs | 4 ++-- src/test/mir-opt/issue-38669.rs | 2 +- ...> issue_38669.main.SimplifyCfg-initial.after.mir} | 0 src/test/mir-opt/issue-41110.rs | 4 ++-- ...mir => issue_41110.main.ElaborateDrops.after.mir} | 0 ...mir => issue_41110.test.ElaborateDrops.after.mir} | 0 src/test/mir-opt/issue-41697.rs | 2 +- ...{constant}}.SimplifyCfg-qualify-consts.after.mir} | 0 src/test/mir-opt/issue-41888.rs | 2 +- ...mir => issue_41888.main.ElaborateDrops.after.mir} | 0 src/test/mir-opt/issue-49232.rs | 2 +- ....mir_map.0.mir => issue_49232.main.mir_map.0.mir} | 0 src/test/mir-opt/issue-62289.rs | 2 +- ...ir => issue_62289.test.ElaborateDrops.before.mir} | 0 src/test/mir-opt/issue-72181-1.rs | 4 ++-- ...f.mir_map.0.mir => issue_72181_1.f.mir_map.0.mir} | 0 ...ir_map.0.mir => issue_72181_1.main.mir_map.0.mir} | 0 src/test/mir-opt/issue-72181.rs | 6 +++--- ...r.mir_map.0.mir => issue_72181.bar.mir_map.0.mir} | 0 ...o.mir_map.0.mir => issue_72181.foo.mir_map.0.mir} | 0 ....mir_map.0.mir => issue_72181.main.mir_map.0.mir} | 0 src/test/mir-opt/issue-73223.rs | 4 ++-- ...Codegen.diff => issue_73223.main.PreCodegen.diff} | 0 ...iff => issue_73223.main.SimplifyArmIdentity.diff} | 0 src/test/mir-opt/loop_test.rs | 2 +- ...p_test.main.SimplifyCfg-qualify-consts.after.mir} | 0 src/test/mir-opt/match-arm-scopes.rs | 2 +- ...plifyCfg-initial.after-ElaborateDrops.after.diff} | 0 src/test/mir-opt/match_false_edges.rs | 6 +++--- ...e_edges.full_tested_match.PromoteTemps.after.mir} | 0 ...edges.full_tested_match2.PromoteTemps.before.mir} | 0 ...> match_false_edges.main.PromoteTemps.before.mir} | 0 src/test/mir-opt/match_test.rs | 2 +- ...=> match_test.main.SimplifyCfg-initial.after.mir} | 0 src/test/mir-opt/nll/named-lifetimes-basic.rs | 2 +- ...l.0.mir => named_lifetimes_basic.use_x.nll.0.mir} | 0 src/test/mir-opt/nll/region-subtyping-basic.rs | 2 +- ...l.0.mir => region_subtyping_basic.main.nll.0.mir} | 0 src/test/mir-opt/no-drop-for-inactive-variant.rs | 2 +- ...ant.unwrap.SimplifyCfg-elaborate-drops.after.mir} | 0 src/test/mir-opt/no-spurious-drop-after-call.rs | 2 +- ...s_drop_after_call.main.ElaborateDrops.before.mir} | 0 src/test/mir-opt/nrvo-simple.rs | 2 +- ....diff => nrvo_simple.nrvo.RenameReturnPlace.diff} | 0 src/test/mir-opt/packed-struct-drop-aligned.rs | 2 +- ...igned.main.SimplifyCfg-elaborate-drops.after.mir} | 0 src/test/mir-opt/remove-never-const.rs | 2 +- ...move_never_const.no_codegen.PreCodegen.after.mir} | 0 src/test/mir-opt/remove_fake_borrows.rs | 2 +- ...ows.match_guard.CleanupNonCodegenStatements.diff} | 0 src/test/mir-opt/retag.rs | 10 +++++----- ...op_in_place.Test.SimplifyCfg-make_shim.after.mir} | 0 ...{closure}}.SimplifyCfg-elaborate-drops.after.mir} | 0 ...retag.main.SimplifyCfg-elaborate-drops.after.mir} | 0 ...impl}}-foo.SimplifyCfg-elaborate-drops.after.mir} | 0 ...}}-foo_shr.SimplifyCfg-elaborate-drops.after.mir} | 0 src/test/mir-opt/simple-match.rs | 2 +- ...p.0.mir => simple_match.match_bool.mir_map.0.mir} | 0 src/test/mir-opt/simplify-arm-identity.rs | 2 +- ...plify_arm_identity.main.SimplifyArmIdentity.diff} | 0 src/test/mir-opt/simplify-arm.rs | 12 ++++++------ ...diff => simplify_arm.id.SimplifyArmIdentity.diff} | 0 ....diff => simplify_arm.id.SimplifyBranchSame.diff} | 0 ... simplify_arm.id_result.SimplifyArmIdentity.diff} | 0 ...> simplify_arm.id_result.SimplifyBranchSame.diff} | 0 ... => simplify_arm.id_try.SimplifyArmIdentity.diff} | 0 ...f => simplify_arm.id_try.SimplifyBranchSame.diff} | 0 src/test/mir-opt/simplify-locals-fixedpoint.rs | 2 +- ...mplify_locals_fixedpoint.foo.SimplifyLocals.diff} | 0 .../mir-opt/simplify-locals-removes-unused-consts.rs | 2 +- ...s_removes_unused_consts.main.SimplifyLocals.diff} | 0 ...plify-locals-removes-unused-discriminant-reads.rs | 2 +- ...nused_discriminant_reads.map.SimplifyLocals.diff} | 0 src/test/mir-opt/simplify_cfg.rs | 4 ++-- ... => simplify_cfg.main.SimplifyCfg-early-opt.diff} | 0 ...ff => simplify_cfg.main.SimplifyCfg-initial.diff} | 0 src/test/mir-opt/simplify_if.rs | 2 +- ...y_if.main.SimplifyBranches-after-const-prop.diff} | 0 src/test/mir-opt/simplify_match.rs | 2 +- ...tProp.diff => simplify_match.main.ConstProp.diff} | 0 src/test/mir-opt/simplify_try.rs | 6 +++--- ...mplify_try.try_identity.SimplifyArmIdentity.diff} | 0 ...fy_try.try_identity.SimplifyBranchSame.after.mir} | 0 ...mplify_try.try_identity.SimplifyLocals.after.mir} | 0 src/test/mir-opt/simplify_try_if_let.rs | 2 +- ..._if_let.{{impl}}-append.SimplifyArmIdentity.diff} | 0 src/test/mir-opt/slice-drop-shim.rs | 2 +- ...tring__String].AddMovesForPackedDrops.before.mir} | 0 src/test/mir-opt/storage_live_dead_in_statics.rs | 2 +- ...> storage_live_dead_in_statics.XXX.mir_map.0.mir} | 0 src/test/mir-opt/storage_ranges.rs | 2 +- ....main.nll.0.mir => storage_ranges.main.nll.0.mir} | 0 src/test/mir-opt/tls-access.rs | 2 +- ...r => tls_access.main.SimplifyCfg-final.after.mir} | 0 src/test/mir-opt/uniform_array_move_out.rs | 4 ++-- ...rray_move_out.move_out_by_subslice.mir_map.0.mir} | 0 ...m_array_move_out.move_out_from_end.mir_map.0.mir} | 0 src/test/mir-opt/uninhabited-enum.rs | 4 ++-- ...ited_enum.process_never.SimplifyLocals.after.mir} | 0 ...bited_enum.process_void.SimplifyLocals.after.mir} | 0 src/test/mir-opt/uninhabited_enum_branching.rs | 4 ++-- ...fyCfg-after-uninhabited-enum-branching.after.mir} | 0 ...num_branching.main.UninhabitedEnumBranching.diff} | 0 src/test/mir-opt/unreachable.rs | 2 +- ... => unreachable.main.UnreachablePropagation.diff} | 0 src/test/mir-opt/unreachable_asm.rs | 2 +- ...unreachable_asm.main.UnreachablePropagation.diff} | 0 src/test/mir-opt/unreachable_asm_2.rs | 2 +- ...reachable_asm_2.main.UnreachablePropagation.diff} | 0 src/test/mir-opt/unreachable_diverging.rs | 2 +- ...hable_diverging.main.UnreachablePropagation.diff} | 0 src/test/mir-opt/unusual-item-types.rs | 8 ++++---- ..._vec__Vec_i32_.AddMovesForPackedDrops.before.mir} | 0 ...nusual_item_types.E-V-{{constant}}.mir_map.0.mir} | 0 ..._item_types.Test-X-{{constructor}}.mir_map.0.mir} | 0 ...types.{{impl}}-ASSOCIATED_CONSTANT.mir_map.0.mir} | 0 src/test/mir-opt/while-storage.rs | 2 +- ...=> while_storage.while_loop.PreCodegen.after.mir} | 0 270 files changed, 167 insertions(+), 157 deletions(-) create mode 100644 fuckyou.rb create mode 100644 omg.mir rename src/test/mir-opt/address-of/{rustc.address_of_reborrow.SimplifyCfg-initial.after.mir => address_of.address_of_reborrow.SimplifyCfg-initial.after.mir} (100%) rename src/test/mir-opt/address-of/{rustc.borrow_and_cast.SimplifyCfg-initial.after.mir => address_of.borrow_and_cast.SimplifyCfg-initial.after.mir} (100%) rename src/test/mir-opt/array-index-is-temporary/64bit/{rustc.main.SimplifyCfg-elaborate-drops.after.mir => array_index_is_temporary.main.SimplifyCfg-elaborate-drops.after.mir} (100%) rename src/test/mir-opt/basic_assignment/{rustc.main.SimplifyCfg-initial.after.mir => basic_assignment.main.SimplifyCfg-initial.after.mir} (100%) rename src/test/mir-opt/box_expr/{rustc.main.ElaborateDrops.before.mir => box_expr.main.ElaborateDrops.before.mir} (100%) rename src/test/mir-opt/byte_slice/{rustc.main.SimplifyCfg-elaborate-drops.after.mir => byte_slice.main.SimplifyCfg-elaborate-drops.after.mir} (100%) rename src/test/mir-opt/combine_array_len/64bit/{rustc.norm2.InstCombine.diff => combine_array_len.norm2.InstCombine.diff} (100%) rename src/test/mir-opt/const-promotion-extern-static/{rustc.BAR-promoted[0].ConstProp.after.mir => const_promotion_extern_static.BAR-promoted[0].ConstProp.after.mir} (100%) rename src/test/mir-opt/const-promotion-extern-static/{rustc.BAR.PromoteTemps.diff => const_promotion_extern_static.BAR.PromoteTemps.diff} (100%) rename src/test/mir-opt/const-promotion-extern-static/{rustc.FOO-promoted[0].ConstProp.after.mir => const_promotion_extern_static.FOO-promoted[0].ConstProp.after.mir} (100%) rename src/test/mir-opt/const-promotion-extern-static/{rustc.FOO.PromoteTemps.diff => const_promotion_extern_static.FOO.PromoteTemps.diff} (100%) rename src/test/mir-opt/const_allocation/64bit/{rustc.main.ConstProp.after.mir => const_allocation.main.ConstProp.after.mir} (100%) rename src/test/mir-opt/const_allocation2/64bit/{rustc.main.ConstProp.after.mir => const_allocation2.main.ConstProp.after.mir} (100%) rename src/test/mir-opt/const_allocation3/64bit/{rustc.main.ConstProp.after.mir => const_allocation3.main.ConstProp.after.mir} (100%) rename src/test/mir-opt/const_prop/aggregate/{rustc.main.ConstProp.diff => aggregate.main.ConstProp.diff} (100%) rename src/test/mir-opt/const_prop/array_index/64bit/{rustc.main.ConstProp.diff => array_index.main.ConstProp.diff} (100%) rename src/test/mir-opt/const_prop/bad_op_div_by_zero/{rustc.main.ConstProp.diff => bad_op_div_by_zero.main.ConstProp.diff} (100%) rename src/test/mir-opt/const_prop/bad_op_mod_by_zero/{rustc.main.ConstProp.diff => bad_op_mod_by_zero.main.ConstProp.diff} (100%) rename src/test/mir-opt/const_prop/bad_op_unsafe_oob_for_slices/64bit/{rustc.main.ConstProp.diff => bad_op_unsafe_oob_for_slices.main.ConstProp.diff} (100%) rename src/test/mir-opt/const_prop/boolean_identities/{rustc.test.ConstProp.diff => boolean_identities.test.ConstProp.diff} (100%) rename src/test/mir-opt/const_prop/boxes/{rustc.main.ConstProp.diff => boxes.main.ConstProp.diff} (100%) rename src/test/mir-opt/const_prop/cast/{rustc.main.ConstProp.diff => cast.main.ConstProp.diff} (100%) rename src/test/mir-opt/const_prop/checked_add/{rustc.main.ConstProp.diff => checked_add.main.ConstProp.diff} (100%) rename src/test/mir-opt/const_prop/const_prop_fails_gracefully/{rustc.main.ConstProp.diff => const_prop_fails_gracefully.main.ConstProp.diff} (100%) rename src/test/mir-opt/const_prop/control-flow-simplification/{rustc.hello.ConstProp.diff => control_flow_simplification.hello.ConstProp.diff} (100%) rename src/test/mir-opt/const_prop/control-flow-simplification/{rustc.hello.PreCodegen.before.mir => control_flow_simplification.hello.PreCodegen.before.mir} (100%) rename src/test/mir-opt/const_prop/discriminant/64bit/{rustc.main.ConstProp.diff => discriminant.main.ConstProp.diff} (100%) rename src/test/mir-opt/const_prop/indirect/{rustc.main.ConstProp.diff => indirect.main.ConstProp.diff} (100%) rename src/test/mir-opt/const_prop/issue-66971/{rustc.main.ConstProp.diff => issue_66971.main.ConstProp.diff} (100%) rename src/test/mir-opt/const_prop/issue-67019/{rustc.main.ConstProp.diff => issue_67019.main.ConstProp.diff} (100%) rename src/test/mir-opt/const_prop/mult_by_zero/{rustc.test.ConstProp.diff => mult_by_zero.test.ConstProp.diff} (100%) rename src/test/mir-opt/const_prop/mutable_variable/{rustc.main.ConstProp.diff => mutable_variable.main.ConstProp.diff} (100%) rename src/test/mir-opt/const_prop/mutable_variable_aggregate/{rustc.main.ConstProp.diff => mutable_variable_aggregate.main.ConstProp.diff} (100%) rename src/test/mir-opt/const_prop/mutable_variable_aggregate_mut_ref/{rustc.main.ConstProp.diff => mutable_variable_aggregate_mut_ref.main.ConstProp.diff} (100%) rename src/test/mir-opt/const_prop/mutable_variable_aggregate_partial_read/{rustc.main.ConstProp.diff => mutable_variable_aggregate_partial_read.main.ConstProp.diff} (100%) rename src/test/mir-opt/const_prop/mutable_variable_no_prop/{rustc.main.ConstProp.diff => mutable_variable_no_prop.main.ConstProp.diff} (100%) rename src/test/mir-opt/const_prop/mutable_variable_unprop_assign/{rustc.main.ConstProp.diff => mutable_variable_unprop_assign.main.ConstProp.diff} (100%) rename src/test/mir-opt/const_prop/optimizes_into_variable/64bit/{rustc.main.ConstProp.diff => optimizes_into_variable.main.ConstProp.diff} (100%) rename src/test/mir-opt/const_prop/optimizes_into_variable/64bit/{rustc.main.SimplifyLocals.after.mir => optimizes_into_variable.main.SimplifyLocals.after.mir} (100%) rename src/test/mir-opt/const_prop/read_immutable_static/{rustc.main.ConstProp.diff => read_immutable_static.main.ConstProp.diff} (100%) rename src/test/mir-opt/const_prop/ref_deref/{rustc.main.ConstProp.diff => ref_deref.main.ConstProp.diff} (100%) rename src/test/mir-opt/const_prop/ref_deref/{rustc.main.PromoteTemps.diff => ref_deref.main.PromoteTemps.diff} (100%) rename src/test/mir-opt/const_prop/ref_deref_project/{rustc.main.ConstProp.diff => ref_deref_project.main.ConstProp.diff} (100%) rename src/test/mir-opt/const_prop/ref_deref_project/{rustc.main.PromoteTemps.diff => ref_deref_project.main.PromoteTemps.diff} (100%) rename src/test/mir-opt/const_prop/reify_fn_ptr/{rustc.main.ConstProp.diff => reify_fn_ptr.main.ConstProp.diff} (100%) rename src/test/mir-opt/const_prop/repeat/64bit/{rustc.main.ConstProp.diff => repeat.main.ConstProp.diff} (100%) rename src/test/mir-opt/const_prop/return_place/{rustc.add.ConstProp.diff => return_place.add.ConstProp.diff} (100%) rename src/test/mir-opt/const_prop/return_place/{rustc.add.PreCodegen.before.mir => return_place.add.PreCodegen.before.mir} (100%) rename src/test/mir-opt/const_prop/scalar_literal_propagation/{rustc.main.ConstProp.diff => scalar_literal_propagation.main.ConstProp.diff} (100%) rename src/test/mir-opt/const_prop/slice_len/64bit/{rustc.main.ConstProp.diff => slice_len.main.ConstProp.diff} (100%) rename src/test/mir-opt/const_prop/switch_int/{rustc.main.ConstProp.diff => switch_int.main.ConstProp.diff} (100%) rename src/test/mir-opt/const_prop/switch_int/{rustc.main.SimplifyBranches-after-const-prop.diff => switch_int.main.SimplifyBranches-after-const-prop.diff} (100%) rename src/test/mir-opt/const_prop/tuple_literal_propagation/{rustc.main.ConstProp.diff => tuple_literal_propagation.main.ConstProp.diff} (100%) rename src/test/mir-opt/const_prop_miscompile/{rustc.bar.ConstProp.diff => const_prop_miscompile.bar.ConstProp.diff} (100%) rename src/test/mir-opt/const_prop_miscompile/{rustc.foo.ConstProp.diff => const_prop_miscompile.foo.ConstProp.diff} (100%) rename src/test/mir-opt/copy_propagation/{rustc.test.CopyPropagation.diff => copy_propagation.test.CopyPropagation.diff} (100%) rename src/test/mir-opt/copy_propagation_arg/{rustc.arg_src.CopyPropagation.diff => copy_propagation_arg.arg_src.CopyPropagation.diff} (100%) rename src/test/mir-opt/copy_propagation_arg/{rustc.bar.CopyPropagation.diff => copy_propagation_arg.bar.CopyPropagation.diff} (100%) rename src/test/mir-opt/copy_propagation_arg/{rustc.baz.CopyPropagation.diff => copy_propagation_arg.baz.CopyPropagation.diff} (100%) rename src/test/mir-opt/copy_propagation_arg/{rustc.foo.CopyPropagation.diff => copy_propagation_arg.foo.CopyPropagation.diff} (100%) rename src/test/mir-opt/deaggregator_test/{rustc.bar.Deaggregator.diff => deaggregator_test.bar.Deaggregator.diff} (100%) rename src/test/mir-opt/deaggregator_test_enum/{rustc.bar.Deaggregator.diff => deaggregator_test_enum.bar.Deaggregator.diff} (100%) rename src/test/mir-opt/deaggregator_test_enum_2/{rustc.test1.Deaggregator.diff => deaggregator_test_enum_2.test1.Deaggregator.diff} (100%) rename src/test/mir-opt/deaggregator_test_multiple/{rustc.test.Deaggregator.diff => deaggregator_test_multiple.test.Deaggregator.diff} (100%) rename src/test/mir-opt/exponential-or/{rustc.match_tuple.SimplifyCfg-initial.after.mir => exponential_or.match_tuple.SimplifyCfg-initial.after.mir} (100%) rename src/test/mir-opt/fn-ptr-shim/{rustc.ops-function-Fn-call.AddMovesForPackedDrops.before.mir => core.ops-function-Fn-call.AddMovesForPackedDrops.before.mir} (100%) rename src/test/mir-opt/generator-drop-cleanup/{rustc.main-{{closure}}.generator_drop.0.mir => generator_drop_cleanup.main-{{closure}}.generator_drop.0.mir} (100%) rename src/test/mir-opt/generator-storage-dead-unwind/{rustc.main-{{closure}}.StateTransform.before.mir => generator_storage_dead_unwind.main-{{closure}}.StateTransform.before.mir} (100%) rename src/test/mir-opt/generator-tiny/{rustc.main-{{closure}}.generator_resume.0.mir => generator_tiny.main-{{closure}}.generator_resume.0.mir} (100%) rename src/test/mir-opt/graphviz/{rustc.main.mir_map.0.dot => graphviz.main.mir_map.0.dot} (100%) rename src/test/mir-opt/inline/inline-any-operand/{rustc.bar.Inline.after.mir => inline_any_operand.bar.Inline.after.mir} (100%) rename src/test/mir-opt/inline/inline-closure-borrows-arg/{rustc.foo.Inline.after.mir => inline_closure_borrows_arg.foo.Inline.after.mir} (100%) rename src/test/mir-opt/inline/inline-closure-captures/{rustc.foo.Inline.after.mir => inline_closure_captures.foo.Inline.after.mir} (100%) rename src/test/mir-opt/inline/inline-closure/{rustc.foo.Inline.after.mir => inline_closure.foo.Inline.after.mir} (100%) rename src/test/mir-opt/inline/inline-into-box-place/64bit/{rustc.main.Inline.diff => inline_into_box_place.main.Inline.diff} (100%) rename src/test/mir-opt/inline/inline-retag/{rustc.bar.Inline.after.mir => inline_retag.bar.Inline.after.mir} (100%) rename src/test/mir-opt/inline/inline-specialization/{rustc.main.Inline.diff => inline_specialization.main.Inline.diff} (100%) rename src/test/mir-opt/inline/inline-trait-method/{rustc.test.Inline.after.mir => inline_trait_method.test.Inline.after.mir} (100%) rename src/test/mir-opt/inline/inline-trait-method_2/{rustc.test2.Inline.after.mir => inline_trait_method_2.test2.Inline.after.mir} (100%) rename src/test/mir-opt/inline/issue-58867-inline-as-ref-as-mut/{rustc.a.Inline.after.mir => issue_58867_inline_as_ref_as_mut.a.Inline.after.mir} (100%) rename src/test/mir-opt/inline/issue-58867-inline-as-ref-as-mut/{rustc.b.Inline.after.mir => issue_58867_inline_as_ref_as_mut.b.Inline.after.mir} (100%) rename src/test/mir-opt/inline/issue-58867-inline-as-ref-as-mut/{rustc.c.Inline.after.mir => issue_58867_inline_as_ref_as_mut.c.Inline.after.mir} (100%) rename src/test/mir-opt/inline/issue-58867-inline-as-ref-as-mut/{rustc.d.Inline.after.mir => issue_58867_inline_as_ref_as_mut.d.Inline.after.mir} (100%) rename src/test/mir-opt/issue-38669/{rustc.main.SimplifyCfg-initial.after.mir => issue_38669.main.SimplifyCfg-initial.after.mir} (100%) rename src/test/mir-opt/issue-41110/{rustc.main.ElaborateDrops.after.mir => issue_41110.main.ElaborateDrops.after.mir} (100%) rename src/test/mir-opt/issue-41110/{rustc.test.ElaborateDrops.after.mir => issue_41110.test.ElaborateDrops.after.mir} (100%) rename src/test/mir-opt/issue-41697/64bit/{rustc.{{impl}}-{{constant}}.SimplifyCfg-qualify-consts.after.mir => issue_41697.{{impl}}-{{constant}}.SimplifyCfg-qualify-consts.after.mir} (100%) rename src/test/mir-opt/issue-41888/{rustc.main.ElaborateDrops.after.mir => issue_41888.main.ElaborateDrops.after.mir} (100%) rename src/test/mir-opt/issue-49232/{rustc.main.mir_map.0.mir => issue_49232.main.mir_map.0.mir} (100%) rename src/test/mir-opt/issue-62289/{rustc.test.ElaborateDrops.before.mir => issue_62289.test.ElaborateDrops.before.mir} (100%) rename src/test/mir-opt/issue-72181-1/{rustc.f.mir_map.0.mir => issue_72181_1.f.mir_map.0.mir} (100%) rename src/test/mir-opt/issue-72181-1/{rustc.main.mir_map.0.mir => issue_72181_1.main.mir_map.0.mir} (100%) rename src/test/mir-opt/issue-72181/64bit/{rustc.bar.mir_map.0.mir => issue_72181.bar.mir_map.0.mir} (100%) rename src/test/mir-opt/issue-72181/64bit/{rustc.foo.mir_map.0.mir => issue_72181.foo.mir_map.0.mir} (100%) rename src/test/mir-opt/issue-72181/64bit/{rustc.main.mir_map.0.mir => issue_72181.main.mir_map.0.mir} (100%) rename src/test/mir-opt/issue-73223/64bit/{rustc.main.PreCodegen.diff => issue_73223.main.PreCodegen.diff} (100%) rename src/test/mir-opt/issue-73223/64bit/{rustc.main.SimplifyArmIdentity.diff => issue_73223.main.SimplifyArmIdentity.diff} (100%) rename src/test/mir-opt/loop_test/{rustc.main.SimplifyCfg-qualify-consts.after.mir => loop_test.main.SimplifyCfg-qualify-consts.after.mir} (100%) rename src/test/mir-opt/match-arm-scopes/{rustc.complicated_match.SimplifyCfg-initial.after-ElaborateDrops.after.diff => match_arm_scopes.complicated_match.SimplifyCfg-initial.after-ElaborateDrops.after.diff} (100%) rename src/test/mir-opt/match_false_edges/{rustc.full_tested_match.PromoteTemps.after.mir => match_false_edges.full_tested_match.PromoteTemps.after.mir} (100%) rename src/test/mir-opt/match_false_edges/{rustc.full_tested_match2.PromoteTemps.before.mir => match_false_edges.full_tested_match2.PromoteTemps.before.mir} (100%) rename src/test/mir-opt/match_false_edges/{rustc.main.PromoteTemps.before.mir => match_false_edges.main.PromoteTemps.before.mir} (100%) rename src/test/mir-opt/match_test/{rustc.main.SimplifyCfg-initial.after.mir => match_test.main.SimplifyCfg-initial.after.mir} (100%) rename src/test/mir-opt/nll/named-lifetimes-basic/{rustc.use_x.nll.0.mir => named_lifetimes_basic.use_x.nll.0.mir} (100%) rename src/test/mir-opt/nll/region-subtyping-basic/64bit/{rustc.main.nll.0.mir => region_subtyping_basic.main.nll.0.mir} (100%) rename src/test/mir-opt/no-drop-for-inactive-variant/{rustc.unwrap.SimplifyCfg-elaborate-drops.after.mir => no_drop_for_inactive_variant.unwrap.SimplifyCfg-elaborate-drops.after.mir} (100%) rename src/test/mir-opt/no-spurious-drop-after-call/{rustc.main.ElaborateDrops.before.mir => no_spurious_drop_after_call.main.ElaborateDrops.before.mir} (100%) rename src/test/mir-opt/nrvo-simple/{rustc.nrvo.RenameReturnPlace.diff => nrvo_simple.nrvo.RenameReturnPlace.diff} (100%) rename src/test/mir-opt/packed-struct-drop-aligned/64bit/{rustc.main.SimplifyCfg-elaborate-drops.after.mir => packed_struct_drop_aligned.main.SimplifyCfg-elaborate-drops.after.mir} (100%) rename src/test/mir-opt/remove-never-const/{rustc.no_codegen.PreCodegen.after.mir => remove_never_const.no_codegen.PreCodegen.after.mir} (100%) rename src/test/mir-opt/remove_fake_borrows/{rustc.match_guard.CleanupNonCodegenStatements.diff => remove_fake_borrows.match_guard.CleanupNonCodegenStatements.diff} (100%) rename src/test/mir-opt/retag/{rustc.ptr-drop_in_place.Test.SimplifyCfg-make_shim.after.mir => core.ptr-drop_in_place.Test.SimplifyCfg-make_shim.after.mir} (100%) rename src/test/mir-opt/retag/{rustc.main-{{closure}}.SimplifyCfg-elaborate-drops.after.mir => retag.main-{{closure}}.SimplifyCfg-elaborate-drops.after.mir} (100%) rename src/test/mir-opt/retag/{rustc.main.SimplifyCfg-elaborate-drops.after.mir => retag.main.SimplifyCfg-elaborate-drops.after.mir} (100%) rename src/test/mir-opt/retag/{rustc.{{impl}}-foo.SimplifyCfg-elaborate-drops.after.mir => retag.{{impl}}-foo.SimplifyCfg-elaborate-drops.after.mir} (100%) rename src/test/mir-opt/retag/{rustc.{{impl}}-foo_shr.SimplifyCfg-elaborate-drops.after.mir => retag.{{impl}}-foo_shr.SimplifyCfg-elaborate-drops.after.mir} (100%) rename src/test/mir-opt/simple-match/64bit/{rustc.match_bool.mir_map.0.mir => simple_match.match_bool.mir_map.0.mir} (100%) rename src/test/mir-opt/simplify-arm-identity/64bit/{rustc.main.SimplifyArmIdentity.diff => simplify_arm_identity.main.SimplifyArmIdentity.diff} (100%) rename src/test/mir-opt/simplify-arm/{rustc.id.SimplifyArmIdentity.diff => simplify_arm.id.SimplifyArmIdentity.diff} (100%) rename src/test/mir-opt/simplify-arm/{rustc.id.SimplifyBranchSame.diff => simplify_arm.id.SimplifyBranchSame.diff} (100%) rename src/test/mir-opt/simplify-arm/{rustc.id_result.SimplifyArmIdentity.diff => simplify_arm.id_result.SimplifyArmIdentity.diff} (100%) rename src/test/mir-opt/simplify-arm/{rustc.id_result.SimplifyBranchSame.diff => simplify_arm.id_result.SimplifyBranchSame.diff} (100%) rename src/test/mir-opt/simplify-arm/{rustc.id_try.SimplifyArmIdentity.diff => simplify_arm.id_try.SimplifyArmIdentity.diff} (100%) rename src/test/mir-opt/simplify-arm/{rustc.id_try.SimplifyBranchSame.diff => simplify_arm.id_try.SimplifyBranchSame.diff} (100%) rename src/test/mir-opt/simplify-locals-fixedpoint/{rustc.foo.SimplifyLocals.diff => simplify_locals_fixedpoint.foo.SimplifyLocals.diff} (100%) rename src/test/mir-opt/simplify-locals-removes-unused-consts/{rustc.main.SimplifyLocals.diff => simplify_locals_removes_unused_consts.main.SimplifyLocals.diff} (100%) rename src/test/mir-opt/simplify-locals-removes-unused-discriminant-reads/64bit/{rustc.map.SimplifyLocals.diff => simplify_locals_removes_unused_discriminant_reads.map.SimplifyLocals.diff} (100%) rename src/test/mir-opt/simplify_cfg/{rustc.main.SimplifyCfg-early-opt.diff => simplify_cfg.main.SimplifyCfg-early-opt.diff} (100%) rename src/test/mir-opt/simplify_cfg/{rustc.main.SimplifyCfg-initial.diff => simplify_cfg.main.SimplifyCfg-initial.diff} (100%) rename src/test/mir-opt/simplify_if/{rustc.main.SimplifyBranches-after-const-prop.diff => simplify_if.main.SimplifyBranches-after-const-prop.diff} (100%) rename src/test/mir-opt/simplify_match/{rustc.main.ConstProp.diff => simplify_match.main.ConstProp.diff} (100%) rename src/test/mir-opt/simplify_try/{rustc.try_identity.SimplifyArmIdentity.diff => simplify_try.try_identity.SimplifyArmIdentity.diff} (100%) rename src/test/mir-opt/simplify_try/{rustc.try_identity.SimplifyBranchSame.after.mir => simplify_try.try_identity.SimplifyBranchSame.after.mir} (100%) rename src/test/mir-opt/simplify_try/{rustc.try_identity.SimplifyLocals.after.mir => simplify_try.try_identity.SimplifyLocals.after.mir} (100%) rename src/test/mir-opt/simplify_try_if_let/{rustc.{{impl}}-append.SimplifyArmIdentity.diff => simplify_try_if_let.{{impl}}-append.SimplifyArmIdentity.diff} (100%) rename src/test/mir-opt/slice-drop-shim/64bit/{rustc.ptr-drop_in_place.[std__string__String].AddMovesForPackedDrops.before.mir => core.ptr-drop_in_place.[std__string__String].AddMovesForPackedDrops.before.mir} (100%) rename src/test/mir-opt/storage_live_dead_in_statics/{rustc.XXX.mir_map.0.mir => storage_live_dead_in_statics.XXX.mir_map.0.mir} (100%) rename src/test/mir-opt/storage_ranges/{rustc.main.nll.0.mir => storage_ranges.main.nll.0.mir} (100%) rename src/test/mir-opt/tls-access/{rustc.main.SimplifyCfg-final.after.mir => tls_access.main.SimplifyCfg-final.after.mir} (100%) rename src/test/mir-opt/uniform_array_move_out/{rustc.move_out_by_subslice.mir_map.0.mir => uniform_array_move_out.move_out_by_subslice.mir_map.0.mir} (100%) rename src/test/mir-opt/uniform_array_move_out/{rustc.move_out_from_end.mir_map.0.mir => uniform_array_move_out.move_out_from_end.mir_map.0.mir} (100%) rename src/test/mir-opt/uninhabited-enum/{rustc.process_never.SimplifyLocals.after.mir => uninhabited_enum.process_never.SimplifyLocals.after.mir} (100%) rename src/test/mir-opt/uninhabited-enum/{rustc.process_void.SimplifyLocals.after.mir => uninhabited_enum.process_void.SimplifyLocals.after.mir} (100%) rename src/test/mir-opt/uninhabited_enum_branching/{rustc.main.SimplifyCfg-after-uninhabited-enum-branching.after.mir => uninhabited_enum_branching.main.SimplifyCfg-after-uninhabited-enum-branching.after.mir} (100%) rename src/test/mir-opt/uninhabited_enum_branching/{rustc.main.UninhabitedEnumBranching.diff => uninhabited_enum_branching.main.UninhabitedEnumBranching.diff} (100%) rename src/test/mir-opt/unreachable/{rustc.main.UnreachablePropagation.diff => unreachable.main.UnreachablePropagation.diff} (100%) rename src/test/mir-opt/unreachable_asm/{rustc.main.UnreachablePropagation.diff => unreachable_asm.main.UnreachablePropagation.diff} (100%) rename src/test/mir-opt/unreachable_asm_2/{rustc.main.UnreachablePropagation.diff => unreachable_asm_2.main.UnreachablePropagation.diff} (100%) rename src/test/mir-opt/unreachable_diverging/{rustc.main.UnreachablePropagation.diff => unreachable_diverging.main.UnreachablePropagation.diff} (100%) rename src/test/mir-opt/unusual-item-types/64bit/{rustc.ptr-drop_in_place.std__vec__Vec_i32_.AddMovesForPackedDrops.before.mir => core.ptr-drop_in_place.std__vec__Vec_i32_.AddMovesForPackedDrops.before.mir} (100%) rename src/test/mir-opt/unusual-item-types/64bit/{rustc.E-V-{{constant}}.mir_map.0.mir => unusual_item_types.E-V-{{constant}}.mir_map.0.mir} (100%) rename src/test/mir-opt/unusual-item-types/64bit/{rustc.Test-X-{{constructor}}.mir_map.0.mir => unusual_item_types.Test-X-{{constructor}}.mir_map.0.mir} (100%) rename src/test/mir-opt/unusual-item-types/64bit/{rustc.{{impl}}-ASSOCIATED_CONSTANT.mir_map.0.mir => unusual_item_types.{{impl}}-ASSOCIATED_CONSTANT.mir_map.0.mir} (100%) rename src/test/mir-opt/while-storage/{rustc.while_loop.PreCodegen.after.mir => while_storage.while_loop.PreCodegen.after.mir} (100%) diff --git a/fuckyou.rb b/fuckyou.rb new file mode 100644 index 00000000000..e4f1fc2f785 --- /dev/null +++ b/fuckyou.rb @@ -0,0 +1,7 @@ +Dir.glob('src/test/mir-opt/**/*.rs').each do |f| + puts f + t = File.read(f) + b = File.basename(f, ".rs") + t.gsub!(/\/\/ EMIT_MIR rustc/, "// EMIT_MIR " + b) + File.open(f, "w") { |f| f.puts t } +end diff --git a/omg.mir b/omg.mir new file mode 100644 index 00000000000..c067a2c1d44 --- /dev/null +++ b/omg.mir @@ -0,0 +1,2 @@ +// EMIT_MIR rustc.OMG +test 123 diff --git a/src/librustc_mir/util/pretty.rs b/src/librustc_mir/util/pretty.rs index 990bfc064c2..bc1b1e4f992 100644 --- a/src/librustc_mir/util/pretty.rs +++ b/src/librustc_mir/util/pretty.rs @@ -177,6 +177,7 @@ fn dump_path( let mut file_path = PathBuf::new(); file_path.push(Path::new(&tcx.sess.opts.debugging_opts.dump_mir_dir)); + let crate_name = tcx.crate_name(source.def_id().krate); let item_name = tcx.def_path(source.def_id()).to_filename_friendly_no_crate(); // All drop shims have the same DefId, so we have to add the type // to get unique file names. @@ -196,7 +197,7 @@ fn dump_path( }; let file_name = format!( - "rustc.{}{}{}{}.{}.{}.{}", + "{}.{}{}{}{}.{}.{}.{}", crate_name, item_name, shim_disambiguator, promotion_id, pass_num, pass_name, disambiguator, extension, ); diff --git a/src/test/mir-opt/address-of.rs b/src/test/mir-opt/address-of.rs index 6cd14ccf434..c4bea5613e4 100644 --- a/src/test/mir-opt/address-of.rs +++ b/src/test/mir-opt/address-of.rs @@ -1,4 +1,4 @@ -// EMIT_MIR rustc.address_of_reborrow.SimplifyCfg-initial.after.mir +// EMIT_MIR address_of.address_of_reborrow.SimplifyCfg-initial.after.mir fn address_of_reborrow() { let y = &[0; 10]; @@ -37,7 +37,7 @@ fn address_of_reborrow() { } // The normal borrows here should be preserved -// EMIT_MIR rustc.borrow_and_cast.SimplifyCfg-initial.after.mir +// EMIT_MIR address_of.borrow_and_cast.SimplifyCfg-initial.after.mir fn borrow_and_cast(mut x: i32) { let p = &x as *const i32; let q = &mut x as *const i32; diff --git a/src/test/mir-opt/address-of/rustc.address_of_reborrow.SimplifyCfg-initial.after.mir b/src/test/mir-opt/address-of/address_of.address_of_reborrow.SimplifyCfg-initial.after.mir similarity index 100% rename from src/test/mir-opt/address-of/rustc.address_of_reborrow.SimplifyCfg-initial.after.mir rename to src/test/mir-opt/address-of/address_of.address_of_reborrow.SimplifyCfg-initial.after.mir diff --git a/src/test/mir-opt/address-of/rustc.borrow_and_cast.SimplifyCfg-initial.after.mir b/src/test/mir-opt/address-of/address_of.borrow_and_cast.SimplifyCfg-initial.after.mir similarity index 100% rename from src/test/mir-opt/address-of/rustc.borrow_and_cast.SimplifyCfg-initial.after.mir rename to src/test/mir-opt/address-of/address_of.borrow_and_cast.SimplifyCfg-initial.after.mir diff --git a/src/test/mir-opt/array-index-is-temporary.rs b/src/test/mir-opt/array-index-is-temporary.rs index 4667c4f66b2..0e4c486e464 100644 --- a/src/test/mir-opt/array-index-is-temporary.rs +++ b/src/test/mir-opt/array-index-is-temporary.rs @@ -8,7 +8,7 @@ unsafe fn foo(z: *mut usize) -> u32 { } // EMIT_MIR_FOR_EACH_BIT_WIDTH -// EMIT_MIR rustc.main.SimplifyCfg-elaborate-drops.after.mir +// EMIT_MIR array_index_is_temporary.main.SimplifyCfg-elaborate-drops.after.mir fn main() { let mut x = [42, 43, 44]; let mut y = 1; diff --git a/src/test/mir-opt/array-index-is-temporary/64bit/rustc.main.SimplifyCfg-elaborate-drops.after.mir b/src/test/mir-opt/array-index-is-temporary/64bit/array_index_is_temporary.main.SimplifyCfg-elaborate-drops.after.mir similarity index 100% rename from src/test/mir-opt/array-index-is-temporary/64bit/rustc.main.SimplifyCfg-elaborate-drops.after.mir rename to src/test/mir-opt/array-index-is-temporary/64bit/array_index_is_temporary.main.SimplifyCfg-elaborate-drops.after.mir diff --git a/src/test/mir-opt/basic_assignment.rs b/src/test/mir-opt/basic_assignment.rs index 17141b6334c..ac350271e9f 100644 --- a/src/test/mir-opt/basic_assignment.rs +++ b/src/test/mir-opt/basic_assignment.rs @@ -1,6 +1,6 @@ // this tests move up progration, which is not yet implemented -// EMIT_MIR rustc.main.SimplifyCfg-initial.after.mir +// EMIT_MIR basic_assignment.main.SimplifyCfg-initial.after.mir // Check codegen for assignments (`a = b`) where the left-hand-side is // not yet initialized. Assignments tend to be absent in simple code, diff --git a/src/test/mir-opt/basic_assignment/rustc.main.SimplifyCfg-initial.after.mir b/src/test/mir-opt/basic_assignment/basic_assignment.main.SimplifyCfg-initial.after.mir similarity index 100% rename from src/test/mir-opt/basic_assignment/rustc.main.SimplifyCfg-initial.after.mir rename to src/test/mir-opt/basic_assignment/basic_assignment.main.SimplifyCfg-initial.after.mir diff --git a/src/test/mir-opt/box_expr.rs b/src/test/mir-opt/box_expr.rs index beaf0baf12c..a214504f6dd 100644 --- a/src/test/mir-opt/box_expr.rs +++ b/src/test/mir-opt/box_expr.rs @@ -2,7 +2,7 @@ #![feature(box_syntax)] -// EMIT_MIR rustc.main.ElaborateDrops.before.mir +// EMIT_MIR box_expr.main.ElaborateDrops.before.mir fn main() { let x = box S::new(); drop(x); diff --git a/src/test/mir-opt/box_expr/rustc.main.ElaborateDrops.before.mir b/src/test/mir-opt/box_expr/box_expr.main.ElaborateDrops.before.mir similarity index 100% rename from src/test/mir-opt/box_expr/rustc.main.ElaborateDrops.before.mir rename to src/test/mir-opt/box_expr/box_expr.main.ElaborateDrops.before.mir diff --git a/src/test/mir-opt/byte_slice.rs b/src/test/mir-opt/byte_slice.rs index 317e96d6f52..48e9c48c120 100644 --- a/src/test/mir-opt/byte_slice.rs +++ b/src/test/mir-opt/byte_slice.rs @@ -1,6 +1,6 @@ // compile-flags: -Z mir-opt-level=0 -// EMIT_MIR rustc.main.SimplifyCfg-elaborate-drops.after.mir +// EMIT_MIR byte_slice.main.SimplifyCfg-elaborate-drops.after.mir fn main() { let x = b"foo"; let y = [5u8, b'x']; diff --git a/src/test/mir-opt/byte_slice/rustc.main.SimplifyCfg-elaborate-drops.after.mir b/src/test/mir-opt/byte_slice/byte_slice.main.SimplifyCfg-elaborate-drops.after.mir similarity index 100% rename from src/test/mir-opt/byte_slice/rustc.main.SimplifyCfg-elaborate-drops.after.mir rename to src/test/mir-opt/byte_slice/byte_slice.main.SimplifyCfg-elaborate-drops.after.mir diff --git a/src/test/mir-opt/combine_array_len.rs b/src/test/mir-opt/combine_array_len.rs index aa1c7459ea1..93490c14fd6 100644 --- a/src/test/mir-opt/combine_array_len.rs +++ b/src/test/mir-opt/combine_array_len.rs @@ -1,5 +1,5 @@ // EMIT_MIR_FOR_EACH_BIT_WIDTH -// EMIT_MIR rustc.norm2.InstCombine.diff +// EMIT_MIR combine_array_len.norm2.InstCombine.diff fn norm2(x: [f32; 2]) -> f32 { let a = x[0]; diff --git a/src/test/mir-opt/combine_array_len/64bit/rustc.norm2.InstCombine.diff b/src/test/mir-opt/combine_array_len/64bit/combine_array_len.norm2.InstCombine.diff similarity index 100% rename from src/test/mir-opt/combine_array_len/64bit/rustc.norm2.InstCombine.diff rename to src/test/mir-opt/combine_array_len/64bit/combine_array_len.norm2.InstCombine.diff diff --git a/src/test/mir-opt/const-promotion-extern-static.rs b/src/test/mir-opt/const-promotion-extern-static.rs index c9d350a98fd..e63309a9bd2 100644 --- a/src/test/mir-opt/const-promotion-extern-static.rs +++ b/src/test/mir-opt/const-promotion-extern-static.rs @@ -4,12 +4,12 @@ static Y: i32 = 42; -// EMIT_MIR rustc.BAR.PromoteTemps.diff -// EMIT_MIR rustc.BAR-promoted[0].ConstProp.after.mir +// EMIT_MIR const_promotion_extern_static.BAR.PromoteTemps.diff +// EMIT_MIR const_promotion_extern_static.BAR-promoted[0].ConstProp.after.mir static mut BAR: *const &i32 = [&Y].as_ptr(); -// EMIT_MIR rustc.FOO.PromoteTemps.diff -// EMIT_MIR rustc.FOO-promoted[0].ConstProp.after.mir +// EMIT_MIR const_promotion_extern_static.FOO.PromoteTemps.diff +// EMIT_MIR const_promotion_extern_static.FOO-promoted[0].ConstProp.after.mir static mut FOO: *const &i32 = [unsafe { &X }].as_ptr(); fn main() {} diff --git a/src/test/mir-opt/const-promotion-extern-static/rustc.BAR-promoted[0].ConstProp.after.mir b/src/test/mir-opt/const-promotion-extern-static/const_promotion_extern_static.BAR-promoted[0].ConstProp.after.mir similarity index 100% rename from src/test/mir-opt/const-promotion-extern-static/rustc.BAR-promoted[0].ConstProp.after.mir rename to src/test/mir-opt/const-promotion-extern-static/const_promotion_extern_static.BAR-promoted[0].ConstProp.after.mir diff --git a/src/test/mir-opt/const-promotion-extern-static/rustc.BAR.PromoteTemps.diff b/src/test/mir-opt/const-promotion-extern-static/const_promotion_extern_static.BAR.PromoteTemps.diff similarity index 100% rename from src/test/mir-opt/const-promotion-extern-static/rustc.BAR.PromoteTemps.diff rename to src/test/mir-opt/const-promotion-extern-static/const_promotion_extern_static.BAR.PromoteTemps.diff diff --git a/src/test/mir-opt/const-promotion-extern-static/rustc.FOO-promoted[0].ConstProp.after.mir b/src/test/mir-opt/const-promotion-extern-static/const_promotion_extern_static.FOO-promoted[0].ConstProp.after.mir similarity index 100% rename from src/test/mir-opt/const-promotion-extern-static/rustc.FOO-promoted[0].ConstProp.after.mir rename to src/test/mir-opt/const-promotion-extern-static/const_promotion_extern_static.FOO-promoted[0].ConstProp.after.mir diff --git a/src/test/mir-opt/const-promotion-extern-static/rustc.FOO.PromoteTemps.diff b/src/test/mir-opt/const-promotion-extern-static/const_promotion_extern_static.FOO.PromoteTemps.diff similarity index 100% rename from src/test/mir-opt/const-promotion-extern-static/rustc.FOO.PromoteTemps.diff rename to src/test/mir-opt/const-promotion-extern-static/const_promotion_extern_static.FOO.PromoteTemps.diff diff --git a/src/test/mir-opt/const_allocation.rs b/src/test/mir-opt/const_allocation.rs index aaf996ee8e1..bb1c48e8e3c 100644 --- a/src/test/mir-opt/const_allocation.rs +++ b/src/test/mir-opt/const_allocation.rs @@ -3,7 +3,7 @@ static FOO: &[(Option, &[&str])] = &[(None, &[]), (None, &["foo", "bar"]), (Some(42), &["meh", "mop", "möp"])]; -// EMIT_MIR rustc.main.ConstProp.after.mir +// EMIT_MIR const_allocation.main.ConstProp.after.mir fn main() { FOO; } diff --git a/src/test/mir-opt/const_allocation/64bit/rustc.main.ConstProp.after.mir b/src/test/mir-opt/const_allocation/64bit/const_allocation.main.ConstProp.after.mir similarity index 100% rename from src/test/mir-opt/const_allocation/64bit/rustc.main.ConstProp.after.mir rename to src/test/mir-opt/const_allocation/64bit/const_allocation.main.ConstProp.after.mir diff --git a/src/test/mir-opt/const_allocation2.rs b/src/test/mir-opt/const_allocation2.rs index ca61b84c0bc..56839255c0e 100644 --- a/src/test/mir-opt/const_allocation2.rs +++ b/src/test/mir-opt/const_allocation2.rs @@ -1,6 +1,6 @@ // EMIT_MIR_FOR_EACH_BIT_WIDTH -// EMIT_MIR rustc.main.ConstProp.after.mir +// EMIT_MIR const_allocation2.main.ConstProp.after.mir fn main() { FOO; } diff --git a/src/test/mir-opt/const_allocation2/64bit/rustc.main.ConstProp.after.mir b/src/test/mir-opt/const_allocation2/64bit/const_allocation2.main.ConstProp.after.mir similarity index 100% rename from src/test/mir-opt/const_allocation2/64bit/rustc.main.ConstProp.after.mir rename to src/test/mir-opt/const_allocation2/64bit/const_allocation2.main.ConstProp.after.mir diff --git a/src/test/mir-opt/const_allocation3.rs b/src/test/mir-opt/const_allocation3.rs index 73bb58e1a98..2ce289aea3f 100644 --- a/src/test/mir-opt/const_allocation3.rs +++ b/src/test/mir-opt/const_allocation3.rs @@ -1,6 +1,6 @@ // EMIT_MIR_FOR_EACH_BIT_WIDTH -// EMIT_MIR rustc.main.ConstProp.after.mir +// EMIT_MIR const_allocation3.main.ConstProp.after.mir fn main() { FOO; } diff --git a/src/test/mir-opt/const_allocation3/64bit/rustc.main.ConstProp.after.mir b/src/test/mir-opt/const_allocation3/64bit/const_allocation3.main.ConstProp.after.mir similarity index 100% rename from src/test/mir-opt/const_allocation3/64bit/rustc.main.ConstProp.after.mir rename to src/test/mir-opt/const_allocation3/64bit/const_allocation3.main.ConstProp.after.mir diff --git a/src/test/mir-opt/const_prop/aggregate.rs b/src/test/mir-opt/const_prop/aggregate.rs index 928ed8265d3..7a3b26a7317 100644 --- a/src/test/mir-opt/const_prop/aggregate.rs +++ b/src/test/mir-opt/const_prop/aggregate.rs @@ -1,6 +1,6 @@ // compile-flags: -O -// EMIT_MIR rustc.main.ConstProp.diff +// EMIT_MIR aggregate.main.ConstProp.diff fn main() { let x = (0, 1, 2).1 + 0; } diff --git a/src/test/mir-opt/const_prop/aggregate/rustc.main.ConstProp.diff b/src/test/mir-opt/const_prop/aggregate/aggregate.main.ConstProp.diff similarity index 100% rename from src/test/mir-opt/const_prop/aggregate/rustc.main.ConstProp.diff rename to src/test/mir-opt/const_prop/aggregate/aggregate.main.ConstProp.diff diff --git a/src/test/mir-opt/const_prop/array_index.rs b/src/test/mir-opt/const_prop/array_index.rs index 9301e6f5d03..2c5254b5deb 100644 --- a/src/test/mir-opt/const_prop/array_index.rs +++ b/src/test/mir-opt/const_prop/array_index.rs @@ -1,6 +1,6 @@ // EMIT_MIR_FOR_EACH_BIT_WIDTH -// EMIT_MIR rustc.main.ConstProp.diff +// EMIT_MIR array_index.main.ConstProp.diff fn main() { let x: u32 = [0, 1, 2, 3][2]; } diff --git a/src/test/mir-opt/const_prop/array_index/64bit/rustc.main.ConstProp.diff b/src/test/mir-opt/const_prop/array_index/64bit/array_index.main.ConstProp.diff similarity index 100% rename from src/test/mir-opt/const_prop/array_index/64bit/rustc.main.ConstProp.diff rename to src/test/mir-opt/const_prop/array_index/64bit/array_index.main.ConstProp.diff diff --git a/src/test/mir-opt/const_prop/bad_op_div_by_zero.rs b/src/test/mir-opt/const_prop/bad_op_div_by_zero.rs index 0cd1f37c9a7..6f39209b970 100644 --- a/src/test/mir-opt/const_prop/bad_op_div_by_zero.rs +++ b/src/test/mir-opt/const_prop/bad_op_div_by_zero.rs @@ -1,4 +1,4 @@ -// EMIT_MIR rustc.main.ConstProp.diff +// EMIT_MIR bad_op_div_by_zero.main.ConstProp.diff #[allow(unconditional_panic)] fn main() { let y = 0; diff --git a/src/test/mir-opt/const_prop/bad_op_div_by_zero/rustc.main.ConstProp.diff b/src/test/mir-opt/const_prop/bad_op_div_by_zero/bad_op_div_by_zero.main.ConstProp.diff similarity index 100% rename from src/test/mir-opt/const_prop/bad_op_div_by_zero/rustc.main.ConstProp.diff rename to src/test/mir-opt/const_prop/bad_op_div_by_zero/bad_op_div_by_zero.main.ConstProp.diff diff --git a/src/test/mir-opt/const_prop/bad_op_mod_by_zero.rs b/src/test/mir-opt/const_prop/bad_op_mod_by_zero.rs index 26bccbb90ec..cc16a4a5aa7 100644 --- a/src/test/mir-opt/const_prop/bad_op_mod_by_zero.rs +++ b/src/test/mir-opt/const_prop/bad_op_mod_by_zero.rs @@ -1,4 +1,4 @@ -// EMIT_MIR rustc.main.ConstProp.diff +// EMIT_MIR bad_op_mod_by_zero.main.ConstProp.diff #[allow(unconditional_panic)] fn main() { let y = 0; diff --git a/src/test/mir-opt/const_prop/bad_op_mod_by_zero/rustc.main.ConstProp.diff b/src/test/mir-opt/const_prop/bad_op_mod_by_zero/bad_op_mod_by_zero.main.ConstProp.diff similarity index 100% rename from src/test/mir-opt/const_prop/bad_op_mod_by_zero/rustc.main.ConstProp.diff rename to src/test/mir-opt/const_prop/bad_op_mod_by_zero/bad_op_mod_by_zero.main.ConstProp.diff diff --git a/src/test/mir-opt/const_prop/bad_op_unsafe_oob_for_slices.rs b/src/test/mir-opt/const_prop/bad_op_unsafe_oob_for_slices.rs index e517e467c37..cf22b06d5e5 100644 --- a/src/test/mir-opt/const_prop/bad_op_unsafe_oob_for_slices.rs +++ b/src/test/mir-opt/const_prop/bad_op_unsafe_oob_for_slices.rs @@ -1,5 +1,5 @@ // EMIT_MIR_FOR_EACH_BIT_WIDTH -// EMIT_MIR rustc.main.ConstProp.diff +// EMIT_MIR bad_op_unsafe_oob_for_slices.main.ConstProp.diff #[allow(unconditional_panic)] fn main() { let a: *const [_] = &[1, 2, 3]; diff --git a/src/test/mir-opt/const_prop/bad_op_unsafe_oob_for_slices/64bit/rustc.main.ConstProp.diff b/src/test/mir-opt/const_prop/bad_op_unsafe_oob_for_slices/64bit/bad_op_unsafe_oob_for_slices.main.ConstProp.diff similarity index 100% rename from src/test/mir-opt/const_prop/bad_op_unsafe_oob_for_slices/64bit/rustc.main.ConstProp.diff rename to src/test/mir-opt/const_prop/bad_op_unsafe_oob_for_slices/64bit/bad_op_unsafe_oob_for_slices.main.ConstProp.diff diff --git a/src/test/mir-opt/const_prop/boolean_identities.rs b/src/test/mir-opt/const_prop/boolean_identities.rs index 4e09acbaa53..6dae07dfbd1 100644 --- a/src/test/mir-opt/const_prop/boolean_identities.rs +++ b/src/test/mir-opt/const_prop/boolean_identities.rs @@ -1,6 +1,6 @@ // compile-flags: -O -Zmir-opt-level=3 -// EMIT_MIR rustc.test.ConstProp.diff +// EMIT_MIR boolean_identities.test.ConstProp.diff pub fn test(x: bool, y: bool) -> bool { (y | true) & (x & false) } diff --git a/src/test/mir-opt/const_prop/boolean_identities/rustc.test.ConstProp.diff b/src/test/mir-opt/const_prop/boolean_identities/boolean_identities.test.ConstProp.diff similarity index 100% rename from src/test/mir-opt/const_prop/boolean_identities/rustc.test.ConstProp.diff rename to src/test/mir-opt/const_prop/boolean_identities/boolean_identities.test.ConstProp.diff diff --git a/src/test/mir-opt/const_prop/boxes.rs b/src/test/mir-opt/const_prop/boxes.rs index d45804ebb6c..fea666a4455 100644 --- a/src/test/mir-opt/const_prop/boxes.rs +++ b/src/test/mir-opt/const_prop/boxes.rs @@ -7,7 +7,7 @@ // Note: this test verifies that we, in fact, do not const prop `box` -// EMIT_MIR rustc.main.ConstProp.diff +// EMIT_MIR boxes.main.ConstProp.diff fn main() { let x = *(box 42) + 0; } diff --git a/src/test/mir-opt/const_prop/boxes/rustc.main.ConstProp.diff b/src/test/mir-opt/const_prop/boxes/boxes.main.ConstProp.diff similarity index 100% rename from src/test/mir-opt/const_prop/boxes/rustc.main.ConstProp.diff rename to src/test/mir-opt/const_prop/boxes/boxes.main.ConstProp.diff diff --git a/src/test/mir-opt/const_prop/cast.rs b/src/test/mir-opt/const_prop/cast.rs index 2af5f32a668..680cab00740 100644 --- a/src/test/mir-opt/const_prop/cast.rs +++ b/src/test/mir-opt/const_prop/cast.rs @@ -1,4 +1,4 @@ -// EMIT_MIR rustc.main.ConstProp.diff +// EMIT_MIR cast.main.ConstProp.diff fn main() { let x = 42u8 as u32; diff --git a/src/test/mir-opt/const_prop/cast/rustc.main.ConstProp.diff b/src/test/mir-opt/const_prop/cast/cast.main.ConstProp.diff similarity index 100% rename from src/test/mir-opt/const_prop/cast/rustc.main.ConstProp.diff rename to src/test/mir-opt/const_prop/cast/cast.main.ConstProp.diff diff --git a/src/test/mir-opt/const_prop/checked_add.rs b/src/test/mir-opt/const_prop/checked_add.rs index 439bd2df91f..08d59b6fbc3 100644 --- a/src/test/mir-opt/const_prop/checked_add.rs +++ b/src/test/mir-opt/const_prop/checked_add.rs @@ -1,6 +1,6 @@ // compile-flags: -C overflow-checks=on -// EMIT_MIR rustc.main.ConstProp.diff +// EMIT_MIR checked_add.main.ConstProp.diff fn main() { let x: u32 = 1 + 1; } diff --git a/src/test/mir-opt/const_prop/checked_add/rustc.main.ConstProp.diff b/src/test/mir-opt/const_prop/checked_add/checked_add.main.ConstProp.diff similarity index 100% rename from src/test/mir-opt/const_prop/checked_add/rustc.main.ConstProp.diff rename to src/test/mir-opt/const_prop/checked_add/checked_add.main.ConstProp.diff diff --git a/src/test/mir-opt/const_prop/const_prop_fails_gracefully.rs b/src/test/mir-opt/const_prop/const_prop_fails_gracefully.rs index c6c006c0809..8bd68527f37 100644 --- a/src/test/mir-opt/const_prop/const_prop_fails_gracefully.rs +++ b/src/test/mir-opt/const_prop/const_prop_fails_gracefully.rs @@ -1,7 +1,7 @@ #[inline(never)] fn read(_: usize) { } -// EMIT_MIR rustc.main.ConstProp.diff +// EMIT_MIR const_prop_fails_gracefully.main.ConstProp.diff fn main() { const FOO: &i32 = &1; let x = FOO as *const i32 as usize; diff --git a/src/test/mir-opt/const_prop/const_prop_fails_gracefully/rustc.main.ConstProp.diff b/src/test/mir-opt/const_prop/const_prop_fails_gracefully/const_prop_fails_gracefully.main.ConstProp.diff similarity index 100% rename from src/test/mir-opt/const_prop/const_prop_fails_gracefully/rustc.main.ConstProp.diff rename to src/test/mir-opt/const_prop/const_prop_fails_gracefully/const_prop_fails_gracefully.main.ConstProp.diff diff --git a/src/test/mir-opt/const_prop/control-flow-simplification.rs b/src/test/mir-opt/const_prop/control-flow-simplification.rs index 1071590dd9e..aa4ce19f620 100644 --- a/src/test/mir-opt/const_prop/control-flow-simplification.rs +++ b/src/test/mir-opt/const_prop/control-flow-simplification.rs @@ -6,8 +6,8 @@ trait NeedsDrop:Sized{ impl NeedsDrop for This{} -// EMIT_MIR rustc.hello.ConstProp.diff -// EMIT_MIR rustc.hello.PreCodegen.before.mir +// EMIT_MIR control_flow_simplification.hello.ConstProp.diff +// EMIT_MIR control_flow_simplification.hello.PreCodegen.before.mir fn hello(){ if ::NEEDS { panic!() diff --git a/src/test/mir-opt/const_prop/control-flow-simplification/rustc.hello.ConstProp.diff b/src/test/mir-opt/const_prop/control-flow-simplification/control_flow_simplification.hello.ConstProp.diff similarity index 100% rename from src/test/mir-opt/const_prop/control-flow-simplification/rustc.hello.ConstProp.diff rename to src/test/mir-opt/const_prop/control-flow-simplification/control_flow_simplification.hello.ConstProp.diff diff --git a/src/test/mir-opt/const_prop/control-flow-simplification/rustc.hello.PreCodegen.before.mir b/src/test/mir-opt/const_prop/control-flow-simplification/control_flow_simplification.hello.PreCodegen.before.mir similarity index 100% rename from src/test/mir-opt/const_prop/control-flow-simplification/rustc.hello.PreCodegen.before.mir rename to src/test/mir-opt/const_prop/control-flow-simplification/control_flow_simplification.hello.PreCodegen.before.mir diff --git a/src/test/mir-opt/const_prop/discriminant.rs b/src/test/mir-opt/const_prop/discriminant.rs index 13e8eb3e44e..67538b3c7a5 100644 --- a/src/test/mir-opt/const_prop/discriminant.rs +++ b/src/test/mir-opt/const_prop/discriminant.rs @@ -6,7 +6,7 @@ // Fixing either of those will allow us to const-prop this away. // EMIT_MIR_FOR_EACH_BIT_WIDTH -// EMIT_MIR rustc.main.ConstProp.diff +// EMIT_MIR discriminant.main.ConstProp.diff fn main() { let x = (if let Some(true) = Some(true) { 42 } else { 10 }) + 0; } diff --git a/src/test/mir-opt/const_prop/discriminant/64bit/rustc.main.ConstProp.diff b/src/test/mir-opt/const_prop/discriminant/64bit/discriminant.main.ConstProp.diff similarity index 100% rename from src/test/mir-opt/const_prop/discriminant/64bit/rustc.main.ConstProp.diff rename to src/test/mir-opt/const_prop/discriminant/64bit/discriminant.main.ConstProp.diff diff --git a/src/test/mir-opt/const_prop/indirect.rs b/src/test/mir-opt/const_prop/indirect.rs index 961e4447d8b..37217ca8134 100644 --- a/src/test/mir-opt/const_prop/indirect.rs +++ b/src/test/mir-opt/const_prop/indirect.rs @@ -1,6 +1,6 @@ // compile-flags: -C overflow-checks=on -// EMIT_MIR rustc.main.ConstProp.diff +// EMIT_MIR indirect.main.ConstProp.diff fn main() { let x = (2u32 as u8) + 1; } diff --git a/src/test/mir-opt/const_prop/indirect/rustc.main.ConstProp.diff b/src/test/mir-opt/const_prop/indirect/indirect.main.ConstProp.diff similarity index 100% rename from src/test/mir-opt/const_prop/indirect/rustc.main.ConstProp.diff rename to src/test/mir-opt/const_prop/indirect/indirect.main.ConstProp.diff diff --git a/src/test/mir-opt/const_prop/issue-66971.rs b/src/test/mir-opt/const_prop/issue-66971.rs index 50a1405b77b..986177b5c0a 100644 --- a/src/test/mir-opt/const_prop/issue-66971.rs +++ b/src/test/mir-opt/const_prop/issue-66971.rs @@ -11,7 +11,7 @@ fn encode(this: ((), u8, u8)) { assert!(this.2 == 0); } -// EMIT_MIR rustc.main.ConstProp.diff +// EMIT_MIR issue_66971.main.ConstProp.diff fn main() { encode(((), 0, 0)); } diff --git a/src/test/mir-opt/const_prop/issue-66971/rustc.main.ConstProp.diff b/src/test/mir-opt/const_prop/issue-66971/issue_66971.main.ConstProp.diff similarity index 100% rename from src/test/mir-opt/const_prop/issue-66971/rustc.main.ConstProp.diff rename to src/test/mir-opt/const_prop/issue-66971/issue_66971.main.ConstProp.diff diff --git a/src/test/mir-opt/const_prop/issue-67019.rs b/src/test/mir-opt/const_prop/issue-67019.rs index 3c832eb1344..d277bd5869c 100644 --- a/src/test/mir-opt/const_prop/issue-67019.rs +++ b/src/test/mir-opt/const_prop/issue-67019.rs @@ -6,7 +6,7 @@ fn test(this: ((u8, u8),)) { assert!((this.0).0 == 1); } -// EMIT_MIR rustc.main.ConstProp.diff +// EMIT_MIR issue_67019.main.ConstProp.diff fn main() { test(((1, 2),)); } diff --git a/src/test/mir-opt/const_prop/issue-67019/rustc.main.ConstProp.diff b/src/test/mir-opt/const_prop/issue-67019/issue_67019.main.ConstProp.diff similarity index 100% rename from src/test/mir-opt/const_prop/issue-67019/rustc.main.ConstProp.diff rename to src/test/mir-opt/const_prop/issue-67019/issue_67019.main.ConstProp.diff diff --git a/src/test/mir-opt/const_prop/mult_by_zero.rs b/src/test/mir-opt/const_prop/mult_by_zero.rs index f40faee3110..1cb50155b5e 100644 --- a/src/test/mir-opt/const_prop/mult_by_zero.rs +++ b/src/test/mir-opt/const_prop/mult_by_zero.rs @@ -1,6 +1,6 @@ // compile-flags: -O -Zmir-opt-level=3 -// EMIT_MIR rustc.test.ConstProp.diff +// EMIT_MIR mult_by_zero.test.ConstProp.diff fn test(x : i32) -> i32 { x * 0 } diff --git a/src/test/mir-opt/const_prop/mult_by_zero/rustc.test.ConstProp.diff b/src/test/mir-opt/const_prop/mult_by_zero/mult_by_zero.test.ConstProp.diff similarity index 100% rename from src/test/mir-opt/const_prop/mult_by_zero/rustc.test.ConstProp.diff rename to src/test/mir-opt/const_prop/mult_by_zero/mult_by_zero.test.ConstProp.diff diff --git a/src/test/mir-opt/const_prop/mutable_variable.rs b/src/test/mir-opt/const_prop/mutable_variable.rs index b3a2d80fa95..801e7a9fcbb 100644 --- a/src/test/mir-opt/const_prop/mutable_variable.rs +++ b/src/test/mir-opt/const_prop/mutable_variable.rs @@ -1,6 +1,6 @@ // compile-flags: -O -// EMIT_MIR rustc.main.ConstProp.diff +// EMIT_MIR mutable_variable.main.ConstProp.diff fn main() { let mut x = 42; x = 99; diff --git a/src/test/mir-opt/const_prop/mutable_variable/rustc.main.ConstProp.diff b/src/test/mir-opt/const_prop/mutable_variable/mutable_variable.main.ConstProp.diff similarity index 100% rename from src/test/mir-opt/const_prop/mutable_variable/rustc.main.ConstProp.diff rename to src/test/mir-opt/const_prop/mutable_variable/mutable_variable.main.ConstProp.diff diff --git a/src/test/mir-opt/const_prop/mutable_variable_aggregate.rs b/src/test/mir-opt/const_prop/mutable_variable_aggregate.rs index 3c5fb4574b6..e0b4b77bac4 100644 --- a/src/test/mir-opt/const_prop/mutable_variable_aggregate.rs +++ b/src/test/mir-opt/const_prop/mutable_variable_aggregate.rs @@ -1,6 +1,6 @@ // compile-flags: -O -// EMIT_MIR rustc.main.ConstProp.diff +// EMIT_MIR mutable_variable_aggregate.main.ConstProp.diff fn main() { let mut x = (42, 43); x.1 = 99; diff --git a/src/test/mir-opt/const_prop/mutable_variable_aggregate/rustc.main.ConstProp.diff b/src/test/mir-opt/const_prop/mutable_variable_aggregate/mutable_variable_aggregate.main.ConstProp.diff similarity index 100% rename from src/test/mir-opt/const_prop/mutable_variable_aggregate/rustc.main.ConstProp.diff rename to src/test/mir-opt/const_prop/mutable_variable_aggregate/mutable_variable_aggregate.main.ConstProp.diff diff --git a/src/test/mir-opt/const_prop/mutable_variable_aggregate_mut_ref.rs b/src/test/mir-opt/const_prop/mutable_variable_aggregate_mut_ref.rs index fc13cbf2abd..79ac497c783 100644 --- a/src/test/mir-opt/const_prop/mutable_variable_aggregate_mut_ref.rs +++ b/src/test/mir-opt/const_prop/mutable_variable_aggregate_mut_ref.rs @@ -1,6 +1,6 @@ // compile-flags: -O -// EMIT_MIR rustc.main.ConstProp.diff +// EMIT_MIR mutable_variable_aggregate_mut_ref.main.ConstProp.diff fn main() { let mut x = (42, 43); let z = &mut x; diff --git a/src/test/mir-opt/const_prop/mutable_variable_aggregate_mut_ref/rustc.main.ConstProp.diff b/src/test/mir-opt/const_prop/mutable_variable_aggregate_mut_ref/mutable_variable_aggregate_mut_ref.main.ConstProp.diff similarity index 100% rename from src/test/mir-opt/const_prop/mutable_variable_aggregate_mut_ref/rustc.main.ConstProp.diff rename to src/test/mir-opt/const_prop/mutable_variable_aggregate_mut_ref/mutable_variable_aggregate_mut_ref.main.ConstProp.diff diff --git a/src/test/mir-opt/const_prop/mutable_variable_aggregate_partial_read.rs b/src/test/mir-opt/const_prop/mutable_variable_aggregate_partial_read.rs index 4f43ec8c947..9bb62b8973c 100644 --- a/src/test/mir-opt/const_prop/mutable_variable_aggregate_partial_read.rs +++ b/src/test/mir-opt/const_prop/mutable_variable_aggregate_partial_read.rs @@ -1,6 +1,6 @@ // compile-flags: -O -// EMIT_MIR rustc.main.ConstProp.diff +// EMIT_MIR mutable_variable_aggregate_partial_read.main.ConstProp.diff fn main() { let mut x: (i32, i32) = foo(); x.1 = 99; diff --git a/src/test/mir-opt/const_prop/mutable_variable_aggregate_partial_read/rustc.main.ConstProp.diff b/src/test/mir-opt/const_prop/mutable_variable_aggregate_partial_read/mutable_variable_aggregate_partial_read.main.ConstProp.diff similarity index 100% rename from src/test/mir-opt/const_prop/mutable_variable_aggregate_partial_read/rustc.main.ConstProp.diff rename to src/test/mir-opt/const_prop/mutable_variable_aggregate_partial_read/mutable_variable_aggregate_partial_read.main.ConstProp.diff diff --git a/src/test/mir-opt/const_prop/mutable_variable_no_prop.rs b/src/test/mir-opt/const_prop/mutable_variable_no_prop.rs index 8c9cd005096..4126fb3c68c 100644 --- a/src/test/mir-opt/const_prop/mutable_variable_no_prop.rs +++ b/src/test/mir-opt/const_prop/mutable_variable_no_prop.rs @@ -2,7 +2,7 @@ static mut STATIC: u32 = 42; -// EMIT_MIR rustc.main.ConstProp.diff +// EMIT_MIR mutable_variable_no_prop.main.ConstProp.diff fn main() { let mut x = 42; unsafe { diff --git a/src/test/mir-opt/const_prop/mutable_variable_no_prop/rustc.main.ConstProp.diff b/src/test/mir-opt/const_prop/mutable_variable_no_prop/mutable_variable_no_prop.main.ConstProp.diff similarity index 100% rename from src/test/mir-opt/const_prop/mutable_variable_no_prop/rustc.main.ConstProp.diff rename to src/test/mir-opt/const_prop/mutable_variable_no_prop/mutable_variable_no_prop.main.ConstProp.diff diff --git a/src/test/mir-opt/const_prop/mutable_variable_unprop_assign.rs b/src/test/mir-opt/const_prop/mutable_variable_unprop_assign.rs index 40f801b1b5e..13f1b3f47f2 100644 --- a/src/test/mir-opt/const_prop/mutable_variable_unprop_assign.rs +++ b/src/test/mir-opt/const_prop/mutable_variable_unprop_assign.rs @@ -1,6 +1,6 @@ // compile-flags: -O -// EMIT_MIR rustc.main.ConstProp.diff +// EMIT_MIR mutable_variable_unprop_assign.main.ConstProp.diff fn main() { let a = foo(); let mut x: (i32, i32) = (1, 2); diff --git a/src/test/mir-opt/const_prop/mutable_variable_unprop_assign/rustc.main.ConstProp.diff b/src/test/mir-opt/const_prop/mutable_variable_unprop_assign/mutable_variable_unprop_assign.main.ConstProp.diff similarity index 100% rename from src/test/mir-opt/const_prop/mutable_variable_unprop_assign/rustc.main.ConstProp.diff rename to src/test/mir-opt/const_prop/mutable_variable_unprop_assign/mutable_variable_unprop_assign.main.ConstProp.diff diff --git a/src/test/mir-opt/const_prop/optimizes_into_variable.rs b/src/test/mir-opt/const_prop/optimizes_into_variable.rs index 0ae172e777b..17265b7eb85 100644 --- a/src/test/mir-opt/const_prop/optimizes_into_variable.rs +++ b/src/test/mir-opt/const_prop/optimizes_into_variable.rs @@ -6,8 +6,8 @@ struct Point { } // EMIT_MIR_FOR_EACH_BIT_WIDTH -// EMIT_MIR rustc.main.ConstProp.diff -// EMIT_MIR rustc.main.SimplifyLocals.after.mir +// EMIT_MIR optimizes_into_variable.main.ConstProp.diff +// EMIT_MIR optimizes_into_variable.main.SimplifyLocals.after.mir fn main() { let x = 2 + 2; let y = [0, 1, 2, 3, 4, 5][3]; diff --git a/src/test/mir-opt/const_prop/optimizes_into_variable/64bit/rustc.main.ConstProp.diff b/src/test/mir-opt/const_prop/optimizes_into_variable/64bit/optimizes_into_variable.main.ConstProp.diff similarity index 100% rename from src/test/mir-opt/const_prop/optimizes_into_variable/64bit/rustc.main.ConstProp.diff rename to src/test/mir-opt/const_prop/optimizes_into_variable/64bit/optimizes_into_variable.main.ConstProp.diff diff --git a/src/test/mir-opt/const_prop/optimizes_into_variable/64bit/rustc.main.SimplifyLocals.after.mir b/src/test/mir-opt/const_prop/optimizes_into_variable/64bit/optimizes_into_variable.main.SimplifyLocals.after.mir similarity index 100% rename from src/test/mir-opt/const_prop/optimizes_into_variable/64bit/rustc.main.SimplifyLocals.after.mir rename to src/test/mir-opt/const_prop/optimizes_into_variable/64bit/optimizes_into_variable.main.SimplifyLocals.after.mir diff --git a/src/test/mir-opt/const_prop/read_immutable_static.rs b/src/test/mir-opt/const_prop/read_immutable_static.rs index 9635f7050a6..8a5f12c6f3d 100644 --- a/src/test/mir-opt/const_prop/read_immutable_static.rs +++ b/src/test/mir-opt/const_prop/read_immutable_static.rs @@ -2,7 +2,7 @@ static FOO: u8 = 2; -// EMIT_MIR rustc.main.ConstProp.diff +// EMIT_MIR read_immutable_static.main.ConstProp.diff fn main() { let x = FOO + FOO; } diff --git a/src/test/mir-opt/const_prop/read_immutable_static/rustc.main.ConstProp.diff b/src/test/mir-opt/const_prop/read_immutable_static/read_immutable_static.main.ConstProp.diff similarity index 100% rename from src/test/mir-opt/const_prop/read_immutable_static/rustc.main.ConstProp.diff rename to src/test/mir-opt/const_prop/read_immutable_static/read_immutable_static.main.ConstProp.diff diff --git a/src/test/mir-opt/const_prop/ref_deref.rs b/src/test/mir-opt/const_prop/ref_deref.rs index fc33e0e1f3b..30ec9766367 100644 --- a/src/test/mir-opt/const_prop/ref_deref.rs +++ b/src/test/mir-opt/const_prop/ref_deref.rs @@ -1,5 +1,5 @@ -// EMIT_MIR rustc.main.PromoteTemps.diff -// EMIT_MIR rustc.main.ConstProp.diff +// EMIT_MIR ref_deref.main.PromoteTemps.diff +// EMIT_MIR ref_deref.main.ConstProp.diff fn main() { *(&4); diff --git a/src/test/mir-opt/const_prop/ref_deref/rustc.main.ConstProp.diff b/src/test/mir-opt/const_prop/ref_deref/ref_deref.main.ConstProp.diff similarity index 100% rename from src/test/mir-opt/const_prop/ref_deref/rustc.main.ConstProp.diff rename to src/test/mir-opt/const_prop/ref_deref/ref_deref.main.ConstProp.diff diff --git a/src/test/mir-opt/const_prop/ref_deref/rustc.main.PromoteTemps.diff b/src/test/mir-opt/const_prop/ref_deref/ref_deref.main.PromoteTemps.diff similarity index 100% rename from src/test/mir-opt/const_prop/ref_deref/rustc.main.PromoteTemps.diff rename to src/test/mir-opt/const_prop/ref_deref/ref_deref.main.PromoteTemps.diff diff --git a/src/test/mir-opt/const_prop/ref_deref_project.rs b/src/test/mir-opt/const_prop/ref_deref_project.rs index 0322e300643..c7cc73651f6 100644 --- a/src/test/mir-opt/const_prop/ref_deref_project.rs +++ b/src/test/mir-opt/const_prop/ref_deref_project.rs @@ -1,5 +1,5 @@ -// EMIT_MIR rustc.main.PromoteTemps.diff -// EMIT_MIR rustc.main.ConstProp.diff +// EMIT_MIR ref_deref_project.main.PromoteTemps.diff +// EMIT_MIR ref_deref_project.main.ConstProp.diff fn main() { *(&(4, 5).1); // This does not currently propagate (#67862) diff --git a/src/test/mir-opt/const_prop/ref_deref_project/rustc.main.ConstProp.diff b/src/test/mir-opt/const_prop/ref_deref_project/ref_deref_project.main.ConstProp.diff similarity index 100% rename from src/test/mir-opt/const_prop/ref_deref_project/rustc.main.ConstProp.diff rename to src/test/mir-opt/const_prop/ref_deref_project/ref_deref_project.main.ConstProp.diff diff --git a/src/test/mir-opt/const_prop/ref_deref_project/rustc.main.PromoteTemps.diff b/src/test/mir-opt/const_prop/ref_deref_project/ref_deref_project.main.PromoteTemps.diff similarity index 100% rename from src/test/mir-opt/const_prop/ref_deref_project/rustc.main.PromoteTemps.diff rename to src/test/mir-opt/const_prop/ref_deref_project/ref_deref_project.main.PromoteTemps.diff diff --git a/src/test/mir-opt/const_prop/reify_fn_ptr.rs b/src/test/mir-opt/const_prop/reify_fn_ptr.rs index 834eb0cb1e9..bfe2563ad8a 100644 --- a/src/test/mir-opt/const_prop/reify_fn_ptr.rs +++ b/src/test/mir-opt/const_prop/reify_fn_ptr.rs @@ -1,4 +1,4 @@ -// EMIT_MIR rustc.main.ConstProp.diff +// EMIT_MIR reify_fn_ptr.main.ConstProp.diff fn main() { let _ = main as usize as *const fn(); diff --git a/src/test/mir-opt/const_prop/reify_fn_ptr/rustc.main.ConstProp.diff b/src/test/mir-opt/const_prop/reify_fn_ptr/reify_fn_ptr.main.ConstProp.diff similarity index 100% rename from src/test/mir-opt/const_prop/reify_fn_ptr/rustc.main.ConstProp.diff rename to src/test/mir-opt/const_prop/reify_fn_ptr/reify_fn_ptr.main.ConstProp.diff diff --git a/src/test/mir-opt/const_prop/repeat.rs b/src/test/mir-opt/const_prop/repeat.rs index cdbfc46d6ca..36d9b9fc62d 100644 --- a/src/test/mir-opt/const_prop/repeat.rs +++ b/src/test/mir-opt/const_prop/repeat.rs @@ -1,7 +1,7 @@ // compile-flags: -O // EMIT_MIR_FOR_EACH_BIT_WIDTH -// EMIT_MIR rustc.main.ConstProp.diff +// EMIT_MIR repeat.main.ConstProp.diff fn main() { let x: u32 = [42; 8][2] + 0; } diff --git a/src/test/mir-opt/const_prop/repeat/64bit/rustc.main.ConstProp.diff b/src/test/mir-opt/const_prop/repeat/64bit/repeat.main.ConstProp.diff similarity index 100% rename from src/test/mir-opt/const_prop/repeat/64bit/rustc.main.ConstProp.diff rename to src/test/mir-opt/const_prop/repeat/64bit/repeat.main.ConstProp.diff diff --git a/src/test/mir-opt/const_prop/return_place.rs b/src/test/mir-opt/const_prop/return_place.rs index 8d5b63b9afd..06a85369679 100644 --- a/src/test/mir-opt/const_prop/return_place.rs +++ b/src/test/mir-opt/const_prop/return_place.rs @@ -1,7 +1,7 @@ // compile-flags: -C overflow-checks=on -// EMIT_MIR rustc.add.ConstProp.diff -// EMIT_MIR rustc.add.PreCodegen.before.mir +// EMIT_MIR return_place.add.ConstProp.diff +// EMIT_MIR return_place.add.PreCodegen.before.mir fn add() -> u32 { 2 + 2 } diff --git a/src/test/mir-opt/const_prop/return_place/rustc.add.ConstProp.diff b/src/test/mir-opt/const_prop/return_place/return_place.add.ConstProp.diff similarity index 100% rename from src/test/mir-opt/const_prop/return_place/rustc.add.ConstProp.diff rename to src/test/mir-opt/const_prop/return_place/return_place.add.ConstProp.diff diff --git a/src/test/mir-opt/const_prop/return_place/rustc.add.PreCodegen.before.mir b/src/test/mir-opt/const_prop/return_place/return_place.add.PreCodegen.before.mir similarity index 100% rename from src/test/mir-opt/const_prop/return_place/rustc.add.PreCodegen.before.mir rename to src/test/mir-opt/const_prop/return_place/return_place.add.PreCodegen.before.mir diff --git a/src/test/mir-opt/const_prop/scalar_literal_propagation.rs b/src/test/mir-opt/const_prop/scalar_literal_propagation.rs index a740e69dca2..8724e4d5711 100644 --- a/src/test/mir-opt/const_prop/scalar_literal_propagation.rs +++ b/src/test/mir-opt/const_prop/scalar_literal_propagation.rs @@ -1,4 +1,4 @@ -// EMIT_MIR rustc.main.ConstProp.diff +// EMIT_MIR scalar_literal_propagation.main.ConstProp.diff fn main() { let x = 1; consume(x); diff --git a/src/test/mir-opt/const_prop/scalar_literal_propagation/rustc.main.ConstProp.diff b/src/test/mir-opt/const_prop/scalar_literal_propagation/scalar_literal_propagation.main.ConstProp.diff similarity index 100% rename from src/test/mir-opt/const_prop/scalar_literal_propagation/rustc.main.ConstProp.diff rename to src/test/mir-opt/const_prop/scalar_literal_propagation/scalar_literal_propagation.main.ConstProp.diff diff --git a/src/test/mir-opt/const_prop/slice_len.rs b/src/test/mir-opt/const_prop/slice_len.rs index 0312f5e8e3a..fa9eafa8b0b 100644 --- a/src/test/mir-opt/const_prop/slice_len.rs +++ b/src/test/mir-opt/const_prop/slice_len.rs @@ -1,6 +1,6 @@ // EMIT_MIR_FOR_EACH_BIT_WIDTH -// EMIT_MIR rustc.main.ConstProp.diff +// EMIT_MIR slice_len.main.ConstProp.diff fn main() { (&[1u32, 2, 3] as &[u32])[1]; } diff --git a/src/test/mir-opt/const_prop/slice_len/64bit/rustc.main.ConstProp.diff b/src/test/mir-opt/const_prop/slice_len/64bit/slice_len.main.ConstProp.diff similarity index 100% rename from src/test/mir-opt/const_prop/slice_len/64bit/rustc.main.ConstProp.diff rename to src/test/mir-opt/const_prop/slice_len/64bit/slice_len.main.ConstProp.diff diff --git a/src/test/mir-opt/const_prop/switch_int.rs b/src/test/mir-opt/const_prop/switch_int.rs index 46e6efb8180..9e7c7340448 100644 --- a/src/test/mir-opt/const_prop/switch_int.rs +++ b/src/test/mir-opt/const_prop/switch_int.rs @@ -1,8 +1,8 @@ #[inline(never)] fn foo(_: i32) { } -// EMIT_MIR rustc.main.ConstProp.diff -// EMIT_MIR rustc.main.SimplifyBranches-after-const-prop.diff +// EMIT_MIR switch_int.main.ConstProp.diff +// EMIT_MIR switch_int.main.SimplifyBranches-after-const-prop.diff fn main() { match 1 { 1 => foo(0), diff --git a/src/test/mir-opt/const_prop/switch_int/rustc.main.ConstProp.diff b/src/test/mir-opt/const_prop/switch_int/switch_int.main.ConstProp.diff similarity index 100% rename from src/test/mir-opt/const_prop/switch_int/rustc.main.ConstProp.diff rename to src/test/mir-opt/const_prop/switch_int/switch_int.main.ConstProp.diff diff --git a/src/test/mir-opt/const_prop/switch_int/rustc.main.SimplifyBranches-after-const-prop.diff b/src/test/mir-opt/const_prop/switch_int/switch_int.main.SimplifyBranches-after-const-prop.diff similarity index 100% rename from src/test/mir-opt/const_prop/switch_int/rustc.main.SimplifyBranches-after-const-prop.diff rename to src/test/mir-opt/const_prop/switch_int/switch_int.main.SimplifyBranches-after-const-prop.diff diff --git a/src/test/mir-opt/const_prop/tuple_literal_propagation.rs b/src/test/mir-opt/const_prop/tuple_literal_propagation.rs index 015607cbab1..e644baec4a8 100644 --- a/src/test/mir-opt/const_prop/tuple_literal_propagation.rs +++ b/src/test/mir-opt/const_prop/tuple_literal_propagation.rs @@ -1,4 +1,4 @@ -// EMIT_MIR rustc.main.ConstProp.diff +// EMIT_MIR tuple_literal_propagation.main.ConstProp.diff fn main() { let x = (1, 2); diff --git a/src/test/mir-opt/const_prop/tuple_literal_propagation/rustc.main.ConstProp.diff b/src/test/mir-opt/const_prop/tuple_literal_propagation/tuple_literal_propagation.main.ConstProp.diff similarity index 100% rename from src/test/mir-opt/const_prop/tuple_literal_propagation/rustc.main.ConstProp.diff rename to src/test/mir-opt/const_prop/tuple_literal_propagation/tuple_literal_propagation.main.ConstProp.diff diff --git a/src/test/mir-opt/const_prop_miscompile.rs b/src/test/mir-opt/const_prop_miscompile.rs index 043b22870f4..bc54556b349 100644 --- a/src/test/mir-opt/const_prop_miscompile.rs +++ b/src/test/mir-opt/const_prop_miscompile.rs @@ -1,13 +1,13 @@ #![feature(raw_ref_op)] -// EMIT_MIR rustc.foo.ConstProp.diff +// EMIT_MIR const_prop_miscompile.foo.ConstProp.diff fn foo() { let mut u = (1,); *&mut u.0 = 5; let y = { u.0 } == 5; } -// EMIT_MIR rustc.bar.ConstProp.diff +// EMIT_MIR const_prop_miscompile.bar.ConstProp.diff fn bar() { let mut v = (1,); unsafe { diff --git a/src/test/mir-opt/const_prop_miscompile/rustc.bar.ConstProp.diff b/src/test/mir-opt/const_prop_miscompile/const_prop_miscompile.bar.ConstProp.diff similarity index 100% rename from src/test/mir-opt/const_prop_miscompile/rustc.bar.ConstProp.diff rename to src/test/mir-opt/const_prop_miscompile/const_prop_miscompile.bar.ConstProp.diff diff --git a/src/test/mir-opt/const_prop_miscompile/rustc.foo.ConstProp.diff b/src/test/mir-opt/const_prop_miscompile/const_prop_miscompile.foo.ConstProp.diff similarity index 100% rename from src/test/mir-opt/const_prop_miscompile/rustc.foo.ConstProp.diff rename to src/test/mir-opt/const_prop_miscompile/const_prop_miscompile.foo.ConstProp.diff diff --git a/src/test/mir-opt/copy_propagation.rs b/src/test/mir-opt/copy_propagation.rs index b5db5497d48..ee460a488b6 100644 --- a/src/test/mir-opt/copy_propagation.rs +++ b/src/test/mir-opt/copy_propagation.rs @@ -1,4 +1,4 @@ -// EMIT_MIR rustc.test.CopyPropagation.diff +// EMIT_MIR copy_propagation.test.CopyPropagation.diff fn test(x: u32) -> u32 { let y = x; diff --git a/src/test/mir-opt/copy_propagation/rustc.test.CopyPropagation.diff b/src/test/mir-opt/copy_propagation/copy_propagation.test.CopyPropagation.diff similarity index 100% rename from src/test/mir-opt/copy_propagation/rustc.test.CopyPropagation.diff rename to src/test/mir-opt/copy_propagation/copy_propagation.test.CopyPropagation.diff diff --git a/src/test/mir-opt/copy_propagation_arg.rs b/src/test/mir-opt/copy_propagation_arg.rs index c4858be7f2b..3a00fc58a4e 100644 --- a/src/test/mir-opt/copy_propagation_arg.rs +++ b/src/test/mir-opt/copy_propagation_arg.rs @@ -5,25 +5,25 @@ fn dummy(x: u8) -> u8 { x } -// EMIT_MIR rustc.foo.CopyPropagation.diff +// EMIT_MIR copy_propagation_arg.foo.CopyPropagation.diff fn foo(mut x: u8) { // calling `dummy` to make an use of `x` that copyprop cannot eliminate x = dummy(x); // this will assign a local to `x` } -// EMIT_MIR rustc.bar.CopyPropagation.diff +// EMIT_MIR copy_propagation_arg.bar.CopyPropagation.diff fn bar(mut x: u8) { dummy(x); x = 5; } -// EMIT_MIR rustc.baz.CopyPropagation.diff +// EMIT_MIR copy_propagation_arg.baz.CopyPropagation.diff fn baz(mut x: i32) { // self-assignment to a function argument should be eliminated x = x; } -// EMIT_MIR rustc.arg_src.CopyPropagation.diff +// EMIT_MIR copy_propagation_arg.arg_src.CopyPropagation.diff fn arg_src(mut x: i32) -> i32 { let y = x; x = 123; // Don't propagate this assignment to `y` diff --git a/src/test/mir-opt/copy_propagation_arg/rustc.arg_src.CopyPropagation.diff b/src/test/mir-opt/copy_propagation_arg/copy_propagation_arg.arg_src.CopyPropagation.diff similarity index 100% rename from src/test/mir-opt/copy_propagation_arg/rustc.arg_src.CopyPropagation.diff rename to src/test/mir-opt/copy_propagation_arg/copy_propagation_arg.arg_src.CopyPropagation.diff diff --git a/src/test/mir-opt/copy_propagation_arg/rustc.bar.CopyPropagation.diff b/src/test/mir-opt/copy_propagation_arg/copy_propagation_arg.bar.CopyPropagation.diff similarity index 100% rename from src/test/mir-opt/copy_propagation_arg/rustc.bar.CopyPropagation.diff rename to src/test/mir-opt/copy_propagation_arg/copy_propagation_arg.bar.CopyPropagation.diff diff --git a/src/test/mir-opt/copy_propagation_arg/rustc.baz.CopyPropagation.diff b/src/test/mir-opt/copy_propagation_arg/copy_propagation_arg.baz.CopyPropagation.diff similarity index 100% rename from src/test/mir-opt/copy_propagation_arg/rustc.baz.CopyPropagation.diff rename to src/test/mir-opt/copy_propagation_arg/copy_propagation_arg.baz.CopyPropagation.diff diff --git a/src/test/mir-opt/copy_propagation_arg/rustc.foo.CopyPropagation.diff b/src/test/mir-opt/copy_propagation_arg/copy_propagation_arg.foo.CopyPropagation.diff similarity index 100% rename from src/test/mir-opt/copy_propagation_arg/rustc.foo.CopyPropagation.diff rename to src/test/mir-opt/copy_propagation_arg/copy_propagation_arg.foo.CopyPropagation.diff diff --git a/src/test/mir-opt/deaggregator_test.rs b/src/test/mir-opt/deaggregator_test.rs index 9004a631291..342e222431b 100644 --- a/src/test/mir-opt/deaggregator_test.rs +++ b/src/test/mir-opt/deaggregator_test.rs @@ -4,7 +4,7 @@ struct Baz { z: bool, } -// EMIT_MIR rustc.bar.Deaggregator.diff +// EMIT_MIR deaggregator_test.bar.Deaggregator.diff fn bar(a: usize) -> Baz { Baz { x: a, y: 0.0, z: false } } diff --git a/src/test/mir-opt/deaggregator_test/rustc.bar.Deaggregator.diff b/src/test/mir-opt/deaggregator_test/deaggregator_test.bar.Deaggregator.diff similarity index 100% rename from src/test/mir-opt/deaggregator_test/rustc.bar.Deaggregator.diff rename to src/test/mir-opt/deaggregator_test/deaggregator_test.bar.Deaggregator.diff diff --git a/src/test/mir-opt/deaggregator_test_enum.rs b/src/test/mir-opt/deaggregator_test_enum.rs index e74eafd011f..02b63a1f55d 100644 --- a/src/test/mir-opt/deaggregator_test_enum.rs +++ b/src/test/mir-opt/deaggregator_test_enum.rs @@ -3,7 +3,7 @@ enum Baz { Foo { x: usize }, } -// EMIT_MIR rustc.bar.Deaggregator.diff +// EMIT_MIR deaggregator_test_enum.bar.Deaggregator.diff fn bar(a: usize) -> Baz { Baz::Foo { x: a } } diff --git a/src/test/mir-opt/deaggregator_test_enum/rustc.bar.Deaggregator.diff b/src/test/mir-opt/deaggregator_test_enum/deaggregator_test_enum.bar.Deaggregator.diff similarity index 100% rename from src/test/mir-opt/deaggregator_test_enum/rustc.bar.Deaggregator.diff rename to src/test/mir-opt/deaggregator_test_enum/deaggregator_test_enum.bar.Deaggregator.diff diff --git a/src/test/mir-opt/deaggregator_test_enum_2.rs b/src/test/mir-opt/deaggregator_test_enum_2.rs index d5201ed72a8..489854ff0aa 100644 --- a/src/test/mir-opt/deaggregator_test_enum_2.rs +++ b/src/test/mir-opt/deaggregator_test_enum_2.rs @@ -5,7 +5,7 @@ enum Foo { B(i32), } -// EMIT_MIR rustc.test1.Deaggregator.diff +// EMIT_MIR deaggregator_test_enum_2.test1.Deaggregator.diff fn test1(x: bool, y: i32) -> Foo { if x { Foo::A(y) diff --git a/src/test/mir-opt/deaggregator_test_enum_2/rustc.test1.Deaggregator.diff b/src/test/mir-opt/deaggregator_test_enum_2/deaggregator_test_enum_2.test1.Deaggregator.diff similarity index 100% rename from src/test/mir-opt/deaggregator_test_enum_2/rustc.test1.Deaggregator.diff rename to src/test/mir-opt/deaggregator_test_enum_2/deaggregator_test_enum_2.test1.Deaggregator.diff diff --git a/src/test/mir-opt/deaggregator_test_multiple.rs b/src/test/mir-opt/deaggregator_test_multiple.rs index 824a970ce2f..9730b9aa8e5 100644 --- a/src/test/mir-opt/deaggregator_test_multiple.rs +++ b/src/test/mir-opt/deaggregator_test_multiple.rs @@ -5,7 +5,7 @@ enum Foo { B, } -// EMIT_MIR rustc.test.Deaggregator.diff +// EMIT_MIR deaggregator_test_multiple.test.Deaggregator.diff fn test(x: i32) -> [Foo; 2] { [Foo::A(x), Foo::A(x)] } diff --git a/src/test/mir-opt/deaggregator_test_multiple/rustc.test.Deaggregator.diff b/src/test/mir-opt/deaggregator_test_multiple/deaggregator_test_multiple.test.Deaggregator.diff similarity index 100% rename from src/test/mir-opt/deaggregator_test_multiple/rustc.test.Deaggregator.diff rename to src/test/mir-opt/deaggregator_test_multiple/deaggregator_test_multiple.test.Deaggregator.diff diff --git a/src/test/mir-opt/exponential-or.rs b/src/test/mir-opt/exponential-or.rs index 9fce7928f6a..1d6f7b81890 100644 --- a/src/test/mir-opt/exponential-or.rs +++ b/src/test/mir-opt/exponential-or.rs @@ -2,7 +2,7 @@ #![feature(or_patterns)] -// EMIT_MIR rustc.match_tuple.SimplifyCfg-initial.after.mir +// EMIT_MIR exponential_or.match_tuple.SimplifyCfg-initial.after.mir fn match_tuple(x: (u32, bool, Option, u32)) -> u32 { match x { (y @ (1 | 4), true | false, Some(1 | 8) | None, z @ (6..=9 | 13..=16)) => y ^ z, diff --git a/src/test/mir-opt/exponential-or/rustc.match_tuple.SimplifyCfg-initial.after.mir b/src/test/mir-opt/exponential-or/exponential_or.match_tuple.SimplifyCfg-initial.after.mir similarity index 100% rename from src/test/mir-opt/exponential-or/rustc.match_tuple.SimplifyCfg-initial.after.mir rename to src/test/mir-opt/exponential-or/exponential_or.match_tuple.SimplifyCfg-initial.after.mir diff --git a/src/test/mir-opt/fn-ptr-shim.rs b/src/test/mir-opt/fn-ptr-shim.rs index 08413c9f6fc..796bec0be1e 100644 --- a/src/test/mir-opt/fn-ptr-shim.rs +++ b/src/test/mir-opt/fn-ptr-shim.rs @@ -3,7 +3,7 @@ // Tests that the `` shim does not create a `Call` terminator with a `Self` callee // (as only `FnDef` and `FnPtr` callees are allowed in MIR). -// EMIT_MIR rustc.ops-function-Fn-call.AddMovesForPackedDrops.before.mir +// EMIT_MIR core.ops-function-Fn-call.AddMovesForPackedDrops.before.mir fn main() { call(noop as fn()); } diff --git a/src/test/mir-opt/fn-ptr-shim/rustc.ops-function-Fn-call.AddMovesForPackedDrops.before.mir b/src/test/mir-opt/fn-ptr-shim/core.ops-function-Fn-call.AddMovesForPackedDrops.before.mir similarity index 100% rename from src/test/mir-opt/fn-ptr-shim/rustc.ops-function-Fn-call.AddMovesForPackedDrops.before.mir rename to src/test/mir-opt/fn-ptr-shim/core.ops-function-Fn-call.AddMovesForPackedDrops.before.mir diff --git a/src/test/mir-opt/generator-drop-cleanup.rs b/src/test/mir-opt/generator-drop-cleanup.rs index 3e9707c6491..f4fc2aec706 100644 --- a/src/test/mir-opt/generator-drop-cleanup.rs +++ b/src/test/mir-opt/generator-drop-cleanup.rs @@ -5,7 +5,7 @@ // Regression test for #58892, generator drop shims should not have blocks // spuriously marked as cleanup -// EMIT_MIR rustc.main-{{closure}}.generator_drop.0.mir +// EMIT_MIR generator_drop_cleanup.main-{{closure}}.generator_drop.0.mir fn main() { let gen = || { let _s = String::new(); diff --git a/src/test/mir-opt/generator-drop-cleanup/rustc.main-{{closure}}.generator_drop.0.mir b/src/test/mir-opt/generator-drop-cleanup/generator_drop_cleanup.main-{{closure}}.generator_drop.0.mir similarity index 100% rename from src/test/mir-opt/generator-drop-cleanup/rustc.main-{{closure}}.generator_drop.0.mir rename to src/test/mir-opt/generator-drop-cleanup/generator_drop_cleanup.main-{{closure}}.generator_drop.0.mir diff --git a/src/test/mir-opt/generator-storage-dead-unwind.rs b/src/test/mir-opt/generator-storage-dead-unwind.rs index abfb39c77d6..ae9faaefdd5 100644 --- a/src/test/mir-opt/generator-storage-dead-unwind.rs +++ b/src/test/mir-opt/generator-storage-dead-unwind.rs @@ -17,7 +17,7 @@ fn drop(&mut self) {} fn take(_x: T) {} -// EMIT_MIR rustc.main-{{closure}}.StateTransform.before.mir +// EMIT_MIR generator_storage_dead_unwind.main-{{closure}}.StateTransform.before.mir fn main() { let _gen = || { let a = Foo(5); diff --git a/src/test/mir-opt/generator-storage-dead-unwind/rustc.main-{{closure}}.StateTransform.before.mir b/src/test/mir-opt/generator-storage-dead-unwind/generator_storage_dead_unwind.main-{{closure}}.StateTransform.before.mir similarity index 100% rename from src/test/mir-opt/generator-storage-dead-unwind/rustc.main-{{closure}}.StateTransform.before.mir rename to src/test/mir-opt/generator-storage-dead-unwind/generator_storage_dead_unwind.main-{{closure}}.StateTransform.before.mir diff --git a/src/test/mir-opt/generator-tiny.rs b/src/test/mir-opt/generator-tiny.rs index c86e2865ca8..0e79f16255b 100644 --- a/src/test/mir-opt/generator-tiny.rs +++ b/src/test/mir-opt/generator-tiny.rs @@ -14,7 +14,7 @@ fn drop(&mut self) {} fn callee() {} -// EMIT_MIR rustc.main-{{closure}}.generator_resume.0.mir +// EMIT_MIR generator_tiny.main-{{closure}}.generator_resume.0.mir fn main() { let _gen = |_x: u8| { let _d = HasDrop; diff --git a/src/test/mir-opt/generator-tiny/rustc.main-{{closure}}.generator_resume.0.mir b/src/test/mir-opt/generator-tiny/generator_tiny.main-{{closure}}.generator_resume.0.mir similarity index 100% rename from src/test/mir-opt/generator-tiny/rustc.main-{{closure}}.generator_resume.0.mir rename to src/test/mir-opt/generator-tiny/generator_tiny.main-{{closure}}.generator_resume.0.mir diff --git a/src/test/mir-opt/graphviz.rs b/src/test/mir-opt/graphviz.rs index b1c0f0dd3c8..074dba2c373 100644 --- a/src/test/mir-opt/graphviz.rs +++ b/src/test/mir-opt/graphviz.rs @@ -1,5 +1,5 @@ // Test graphviz output // compile-flags: -Z dump-mir-graphviz -// EMIT_MIR rustc.main.mir_map.0.dot +// EMIT_MIR graphviz.main.mir_map.0.dot fn main() {} diff --git a/src/test/mir-opt/graphviz/rustc.main.mir_map.0.dot b/src/test/mir-opt/graphviz/graphviz.main.mir_map.0.dot similarity index 100% rename from src/test/mir-opt/graphviz/rustc.main.mir_map.0.dot rename to src/test/mir-opt/graphviz/graphviz.main.mir_map.0.dot diff --git a/src/test/mir-opt/inline/inline-any-operand.rs b/src/test/mir-opt/inline/inline-any-operand.rs index 2edde12d72e..fb0de020f73 100644 --- a/src/test/mir-opt/inline/inline-any-operand.rs +++ b/src/test/mir-opt/inline/inline-any-operand.rs @@ -6,7 +6,7 @@ fn main() { println!("{}", bar()); } -// EMIT_MIR rustc.bar.Inline.after.mir +// EMIT_MIR inline_any_operand.bar.Inline.after.mir fn bar() -> bool { let f = foo; f(1, -1) diff --git a/src/test/mir-opt/inline/inline-any-operand/rustc.bar.Inline.after.mir b/src/test/mir-opt/inline/inline-any-operand/inline_any_operand.bar.Inline.after.mir similarity index 100% rename from src/test/mir-opt/inline/inline-any-operand/rustc.bar.Inline.after.mir rename to src/test/mir-opt/inline/inline-any-operand/inline_any_operand.bar.Inline.after.mir diff --git a/src/test/mir-opt/inline/inline-closure-borrows-arg.rs b/src/test/mir-opt/inline/inline-closure-borrows-arg.rs index a82a91945d8..218bc3553a1 100644 --- a/src/test/mir-opt/inline/inline-closure-borrows-arg.rs +++ b/src/test/mir-opt/inline/inline-closure-borrows-arg.rs @@ -7,7 +7,7 @@ fn main() { println!("{}", foo(0, &14)); } -// EMIT_MIR rustc.foo.Inline.after.mir +// EMIT_MIR inline_closure_borrows_arg.foo.Inline.after.mir fn foo(_t: T, q: &i32) -> i32 { let x = |r: &i32, _s: &i32| { let variable = &*r; diff --git a/src/test/mir-opt/inline/inline-closure-borrows-arg/rustc.foo.Inline.after.mir b/src/test/mir-opt/inline/inline-closure-borrows-arg/inline_closure_borrows_arg.foo.Inline.after.mir similarity index 100% rename from src/test/mir-opt/inline/inline-closure-borrows-arg/rustc.foo.Inline.after.mir rename to src/test/mir-opt/inline/inline-closure-borrows-arg/inline_closure_borrows_arg.foo.Inline.after.mir diff --git a/src/test/mir-opt/inline/inline-closure-captures.rs b/src/test/mir-opt/inline/inline-closure-captures.rs index 4a0aad9b0e6..52b6817e401 100644 --- a/src/test/mir-opt/inline/inline-closure-captures.rs +++ b/src/test/mir-opt/inline/inline-closure-captures.rs @@ -6,7 +6,7 @@ fn main() { println!("{:?}", foo(0, 14)); } -// EMIT_MIR rustc.foo.Inline.after.mir +// EMIT_MIR inline_closure_captures.foo.Inline.after.mir fn foo(t: T, q: i32) -> (i32, T) { let x = |_q| (q, t); x(q) diff --git a/src/test/mir-opt/inline/inline-closure-captures/rustc.foo.Inline.after.mir b/src/test/mir-opt/inline/inline-closure-captures/inline_closure_captures.foo.Inline.after.mir similarity index 100% rename from src/test/mir-opt/inline/inline-closure-captures/rustc.foo.Inline.after.mir rename to src/test/mir-opt/inline/inline-closure-captures/inline_closure_captures.foo.Inline.after.mir diff --git a/src/test/mir-opt/inline/inline-closure.rs b/src/test/mir-opt/inline/inline-closure.rs index 77e424a2bb3..715fd0138a7 100644 --- a/src/test/mir-opt/inline/inline-closure.rs +++ b/src/test/mir-opt/inline/inline-closure.rs @@ -6,7 +6,7 @@ fn main() { println!("{}", foo(0, 14)); } -// EMIT_MIR rustc.foo.Inline.after.mir +// EMIT_MIR inline_closure.foo.Inline.after.mir fn foo(_t: T, q: i32) -> i32 { let x = |_t, _q| _t; x(q, q) diff --git a/src/test/mir-opt/inline/inline-closure/rustc.foo.Inline.after.mir b/src/test/mir-opt/inline/inline-closure/inline_closure.foo.Inline.after.mir similarity index 100% rename from src/test/mir-opt/inline/inline-closure/rustc.foo.Inline.after.mir rename to src/test/mir-opt/inline/inline-closure/inline_closure.foo.Inline.after.mir diff --git a/src/test/mir-opt/inline/inline-into-box-place.rs b/src/test/mir-opt/inline/inline-into-box-place.rs index 77834e9661c..30c9a5d6b8f 100644 --- a/src/test/mir-opt/inline/inline-into-box-place.rs +++ b/src/test/mir-opt/inline/inline-into-box-place.rs @@ -3,7 +3,7 @@ // EMIT_MIR_FOR_EACH_BIT_WIDTH #![feature(box_syntax)] -// EMIT_MIR rustc.main.Inline.diff +// EMIT_MIR inline_into_box_place.main.Inline.diff fn main() { let _x: Box> = box Vec::new(); } diff --git a/src/test/mir-opt/inline/inline-into-box-place/64bit/rustc.main.Inline.diff b/src/test/mir-opt/inline/inline-into-box-place/64bit/inline_into_box_place.main.Inline.diff similarity index 100% rename from src/test/mir-opt/inline/inline-into-box-place/64bit/rustc.main.Inline.diff rename to src/test/mir-opt/inline/inline-into-box-place/64bit/inline_into_box_place.main.Inline.diff diff --git a/src/test/mir-opt/inline/inline-retag.rs b/src/test/mir-opt/inline/inline-retag.rs index d7e425ec658..c6950f26925 100644 --- a/src/test/mir-opt/inline/inline-retag.rs +++ b/src/test/mir-opt/inline/inline-retag.rs @@ -6,7 +6,7 @@ fn main() { println!("{}", bar()); } -// EMIT_MIR rustc.bar.Inline.after.mir +// EMIT_MIR inline_retag.bar.Inline.after.mir fn bar() -> bool { let f = foo; f(&1, &-1) diff --git a/src/test/mir-opt/inline/inline-retag/rustc.bar.Inline.after.mir b/src/test/mir-opt/inline/inline-retag/inline_retag.bar.Inline.after.mir similarity index 100% rename from src/test/mir-opt/inline/inline-retag/rustc.bar.Inline.after.mir rename to src/test/mir-opt/inline/inline-retag/inline_retag.bar.Inline.after.mir diff --git a/src/test/mir-opt/inline/inline-specialization.rs b/src/test/mir-opt/inline/inline-specialization.rs index fcdaca460a9..87275b4e514 100644 --- a/src/test/mir-opt/inline/inline-specialization.rs +++ b/src/test/mir-opt/inline/inline-specialization.rs @@ -1,6 +1,6 @@ #![feature(specialization)] -// EMIT_MIR rustc.main.Inline.diff +// EMIT_MIR inline_specialization.main.Inline.diff fn main() { let x = as Foo>::bar(); } diff --git a/src/test/mir-opt/inline/inline-specialization/rustc.main.Inline.diff b/src/test/mir-opt/inline/inline-specialization/inline_specialization.main.Inline.diff similarity index 100% rename from src/test/mir-opt/inline/inline-specialization/rustc.main.Inline.diff rename to src/test/mir-opt/inline/inline-specialization/inline_specialization.main.Inline.diff diff --git a/src/test/mir-opt/inline/inline-trait-method.rs b/src/test/mir-opt/inline/inline-trait-method.rs index cb3db9b5592..74be53f5512 100644 --- a/src/test/mir-opt/inline/inline-trait-method.rs +++ b/src/test/mir-opt/inline/inline-trait-method.rs @@ -4,7 +4,7 @@ fn main() { println!("{}", test(&())); } -// EMIT_MIR rustc.test.Inline.after.mir +// EMIT_MIR inline_trait_method.test.Inline.after.mir fn test(x: &dyn X) -> u32 { x.y() } diff --git a/src/test/mir-opt/inline/inline-trait-method/rustc.test.Inline.after.mir b/src/test/mir-opt/inline/inline-trait-method/inline_trait_method.test.Inline.after.mir similarity index 100% rename from src/test/mir-opt/inline/inline-trait-method/rustc.test.Inline.after.mir rename to src/test/mir-opt/inline/inline-trait-method/inline_trait_method.test.Inline.after.mir diff --git a/src/test/mir-opt/inline/inline-trait-method_2.rs b/src/test/mir-opt/inline/inline-trait-method_2.rs index e37f091c5cd..6e5de8315a1 100644 --- a/src/test/mir-opt/inline/inline-trait-method_2.rs +++ b/src/test/mir-opt/inline/inline-trait-method_2.rs @@ -1,6 +1,6 @@ // compile-flags: -Z span_free_formats -Z mir-opt-level=3 -// EMIT_MIR rustc.test2.Inline.after.mir +// EMIT_MIR inline_trait_method_2.test2.Inline.after.mir fn test2(x: &dyn X) -> bool { test(x) } diff --git a/src/test/mir-opt/inline/inline-trait-method_2/rustc.test2.Inline.after.mir b/src/test/mir-opt/inline/inline-trait-method_2/inline_trait_method_2.test2.Inline.after.mir similarity index 100% rename from src/test/mir-opt/inline/inline-trait-method_2/rustc.test2.Inline.after.mir rename to src/test/mir-opt/inline/inline-trait-method_2/inline_trait_method_2.test2.Inline.after.mir diff --git a/src/test/mir-opt/inline/issue-58867-inline-as-ref-as-mut.rs b/src/test/mir-opt/inline/issue-58867-inline-as-ref-as-mut.rs index 317705f7612..94f926d3964 100644 --- a/src/test/mir-opt/inline/issue-58867-inline-as-ref-as-mut.rs +++ b/src/test/mir-opt/inline/issue-58867-inline-as-ref-as-mut.rs @@ -1,19 +1,19 @@ -// EMIT_MIR rustc.a.Inline.after.mir +// EMIT_MIR issue_58867_inline_as_ref_as_mut.a.Inline.after.mir pub fn a(x: &mut [T]) -> &mut [T] { x.as_mut() } -// EMIT_MIR rustc.b.Inline.after.mir +// EMIT_MIR issue_58867_inline_as_ref_as_mut.b.Inline.after.mir pub fn b(x: &mut Box) -> &mut T { x.as_mut() } -// EMIT_MIR rustc.c.Inline.after.mir +// EMIT_MIR issue_58867_inline_as_ref_as_mut.c.Inline.after.mir pub fn c(x: &[T]) -> &[T] { x.as_ref() } -// EMIT_MIR rustc.d.Inline.after.mir +// EMIT_MIR issue_58867_inline_as_ref_as_mut.d.Inline.after.mir pub fn d(x: &Box) -> &T { x.as_ref() } diff --git a/src/test/mir-opt/inline/issue-58867-inline-as-ref-as-mut/rustc.a.Inline.after.mir b/src/test/mir-opt/inline/issue-58867-inline-as-ref-as-mut/issue_58867_inline_as_ref_as_mut.a.Inline.after.mir similarity index 100% rename from src/test/mir-opt/inline/issue-58867-inline-as-ref-as-mut/rustc.a.Inline.after.mir rename to src/test/mir-opt/inline/issue-58867-inline-as-ref-as-mut/issue_58867_inline_as_ref_as_mut.a.Inline.after.mir diff --git a/src/test/mir-opt/inline/issue-58867-inline-as-ref-as-mut/rustc.b.Inline.after.mir b/src/test/mir-opt/inline/issue-58867-inline-as-ref-as-mut/issue_58867_inline_as_ref_as_mut.b.Inline.after.mir similarity index 100% rename from src/test/mir-opt/inline/issue-58867-inline-as-ref-as-mut/rustc.b.Inline.after.mir rename to src/test/mir-opt/inline/issue-58867-inline-as-ref-as-mut/issue_58867_inline_as_ref_as_mut.b.Inline.after.mir diff --git a/src/test/mir-opt/inline/issue-58867-inline-as-ref-as-mut/rustc.c.Inline.after.mir b/src/test/mir-opt/inline/issue-58867-inline-as-ref-as-mut/issue_58867_inline_as_ref_as_mut.c.Inline.after.mir similarity index 100% rename from src/test/mir-opt/inline/issue-58867-inline-as-ref-as-mut/rustc.c.Inline.after.mir rename to src/test/mir-opt/inline/issue-58867-inline-as-ref-as-mut/issue_58867_inline_as_ref_as_mut.c.Inline.after.mir diff --git a/src/test/mir-opt/inline/issue-58867-inline-as-ref-as-mut/rustc.d.Inline.after.mir b/src/test/mir-opt/inline/issue-58867-inline-as-ref-as-mut/issue_58867_inline_as_ref_as_mut.d.Inline.after.mir similarity index 100% rename from src/test/mir-opt/inline/issue-58867-inline-as-ref-as-mut/rustc.d.Inline.after.mir rename to src/test/mir-opt/inline/issue-58867-inline-as-ref-as-mut/issue_58867_inline_as_ref_as_mut.d.Inline.after.mir diff --git a/src/test/mir-opt/instrument_coverage.rs b/src/test/mir-opt/instrument_coverage.rs index 3fe010ef68f..4770ec9b66e 100644 --- a/src/test/mir-opt/instrument_coverage.rs +++ b/src/test/mir-opt/instrument_coverage.rs @@ -4,8 +4,8 @@ // needs-profiler-support // compile-flags: -Zinstrument-coverage -// EMIT_MIR rustc.main.InstrumentCoverage.diff -// EMIT_MIR rustc.bar.InstrumentCoverage.diff +// EMIT_MIR instrument_coverage.main.InstrumentCoverage.diff +// EMIT_MIR instrument_coverage.bar.InstrumentCoverage.diff fn main() { loop { if bar() { diff --git a/src/test/mir-opt/issue-38669.rs b/src/test/mir-opt/issue-38669.rs index f6883ac8086..db3f89472c9 100644 --- a/src/test/mir-opt/issue-38669.rs +++ b/src/test/mir-opt/issue-38669.rs @@ -1,6 +1,6 @@ // check that we don't StorageDead booleans before they are used -// EMIT_MIR rustc.main.SimplifyCfg-initial.after.mir +// EMIT_MIR issue_38669.main.SimplifyCfg-initial.after.mir fn main() { let mut should_break = false; loop { diff --git a/src/test/mir-opt/issue-38669/rustc.main.SimplifyCfg-initial.after.mir b/src/test/mir-opt/issue-38669/issue_38669.main.SimplifyCfg-initial.after.mir similarity index 100% rename from src/test/mir-opt/issue-38669/rustc.main.SimplifyCfg-initial.after.mir rename to src/test/mir-opt/issue-38669/issue_38669.main.SimplifyCfg-initial.after.mir diff --git a/src/test/mir-opt/issue-41110.rs b/src/test/mir-opt/issue-41110.rs index cc35b8785a7..638dc601ec8 100644 --- a/src/test/mir-opt/issue-41110.rs +++ b/src/test/mir-opt/issue-41110.rs @@ -3,14 +3,14 @@ // check that we don't emit multiple drop flags when they are not needed. -// EMIT_MIR rustc.main.ElaborateDrops.after.mir +// EMIT_MIR issue_41110.main.ElaborateDrops.after.mir fn main() { let x = S.other(S.id()); } // no_mangle to make sure this gets instantiated even in an executable. #[no_mangle] -// EMIT_MIR rustc.test.ElaborateDrops.after.mir +// EMIT_MIR issue_41110.test.ElaborateDrops.after.mir pub fn test() { let u = S; let mut v = S; diff --git a/src/test/mir-opt/issue-41110/rustc.main.ElaborateDrops.after.mir b/src/test/mir-opt/issue-41110/issue_41110.main.ElaborateDrops.after.mir similarity index 100% rename from src/test/mir-opt/issue-41110/rustc.main.ElaborateDrops.after.mir rename to src/test/mir-opt/issue-41110/issue_41110.main.ElaborateDrops.after.mir diff --git a/src/test/mir-opt/issue-41110/rustc.test.ElaborateDrops.after.mir b/src/test/mir-opt/issue-41110/issue_41110.test.ElaborateDrops.after.mir similarity index 100% rename from src/test/mir-opt/issue-41110/rustc.test.ElaborateDrops.after.mir rename to src/test/mir-opt/issue-41110/issue_41110.test.ElaborateDrops.after.mir diff --git a/src/test/mir-opt/issue-41697.rs b/src/test/mir-opt/issue-41697.rs index 07b9d175677..c90cfc792a9 100644 --- a/src/test/mir-opt/issue-41697.rs +++ b/src/test/mir-opt/issue-41697.rs @@ -14,7 +14,7 @@ trait Foo { } // EMIT_MIR_FOR_EACH_BIT_WIDTH -// EMIT_MIR rustc.{{impl}}-{{constant}}.SimplifyCfg-qualify-consts.after.mir +// EMIT_MIR issue_41697.{{impl}}-{{constant}}.SimplifyCfg-qualify-consts.after.mir impl Foo for [u8; 1+1] { fn get(&self) -> [u8; 2] { *self diff --git a/src/test/mir-opt/issue-41697/64bit/rustc.{{impl}}-{{constant}}.SimplifyCfg-qualify-consts.after.mir b/src/test/mir-opt/issue-41697/64bit/issue_41697.{{impl}}-{{constant}}.SimplifyCfg-qualify-consts.after.mir similarity index 100% rename from src/test/mir-opt/issue-41697/64bit/rustc.{{impl}}-{{constant}}.SimplifyCfg-qualify-consts.after.mir rename to src/test/mir-opt/issue-41697/64bit/issue_41697.{{impl}}-{{constant}}.SimplifyCfg-qualify-consts.after.mir diff --git a/src/test/mir-opt/issue-41888.rs b/src/test/mir-opt/issue-41888.rs index 6caaa59d0af..c1046c14dbf 100644 --- a/src/test/mir-opt/issue-41888.rs +++ b/src/test/mir-opt/issue-41888.rs @@ -2,7 +2,7 @@ // check that we clear the "ADT master drop flag" even when there are // no fields to be dropped. -// EMIT_MIR rustc.main.ElaborateDrops.after.mir +// EMIT_MIR issue_41888.main.ElaborateDrops.after.mir fn main() { let e; if cond() { diff --git a/src/test/mir-opt/issue-41888/rustc.main.ElaborateDrops.after.mir b/src/test/mir-opt/issue-41888/issue_41888.main.ElaborateDrops.after.mir similarity index 100% rename from src/test/mir-opt/issue-41888/rustc.main.ElaborateDrops.after.mir rename to src/test/mir-opt/issue-41888/issue_41888.main.ElaborateDrops.after.mir diff --git a/src/test/mir-opt/issue-49232.rs b/src/test/mir-opt/issue-49232.rs index 7d308980b90..86494c76aec 100644 --- a/src/test/mir-opt/issue-49232.rs +++ b/src/test/mir-opt/issue-49232.rs @@ -1,7 +1,7 @@ // We must mark a variable whose initialization fails due to an // abort statement as StorageDead. -// EMIT_MIR rustc.main.mir_map.0.mir +// EMIT_MIR issue_49232.main.mir_map.0.mir fn main() { loop { let beacon = { diff --git a/src/test/mir-opt/issue-49232/rustc.main.mir_map.0.mir b/src/test/mir-opt/issue-49232/issue_49232.main.mir_map.0.mir similarity index 100% rename from src/test/mir-opt/issue-49232/rustc.main.mir_map.0.mir rename to src/test/mir-opt/issue-49232/issue_49232.main.mir_map.0.mir diff --git a/src/test/mir-opt/issue-62289.rs b/src/test/mir-opt/issue-62289.rs index f0d57c572b3..37e3390d5fc 100644 --- a/src/test/mir-opt/issue-62289.rs +++ b/src/test/mir-opt/issue-62289.rs @@ -4,7 +4,7 @@ #![feature(box_syntax)] -// EMIT_MIR rustc.test.ElaborateDrops.before.mir +// EMIT_MIR issue_62289.test.ElaborateDrops.before.mir fn test() -> Option> { Some(box (None?)) } diff --git a/src/test/mir-opt/issue-62289/rustc.test.ElaborateDrops.before.mir b/src/test/mir-opt/issue-62289/issue_62289.test.ElaborateDrops.before.mir similarity index 100% rename from src/test/mir-opt/issue-62289/rustc.test.ElaborateDrops.before.mir rename to src/test/mir-opt/issue-62289/issue_62289.test.ElaborateDrops.before.mir diff --git a/src/test/mir-opt/issue-72181-1.rs b/src/test/mir-opt/issue-72181-1.rs index 6d65f847a2c..91e98adbe80 100644 --- a/src/test/mir-opt/issue-72181-1.rs +++ b/src/test/mir-opt/issue-72181-1.rs @@ -6,12 +6,12 @@ enum Void {} -// EMIT_MIR rustc.f.mir_map.0.mir +// EMIT_MIR issue_72181_1.f.mir_map.0.mir fn f(v: Void) -> ! { match v {} } -// EMIT_MIR rustc.main.mir_map.0.mir +// EMIT_MIR issue_72181_1.main.mir_map.0.mir fn main() { let v: Void = unsafe { std::mem::transmute::<(), Void>(()) diff --git a/src/test/mir-opt/issue-72181-1/rustc.f.mir_map.0.mir b/src/test/mir-opt/issue-72181-1/issue_72181_1.f.mir_map.0.mir similarity index 100% rename from src/test/mir-opt/issue-72181-1/rustc.f.mir_map.0.mir rename to src/test/mir-opt/issue-72181-1/issue_72181_1.f.mir_map.0.mir diff --git a/src/test/mir-opt/issue-72181-1/rustc.main.mir_map.0.mir b/src/test/mir-opt/issue-72181-1/issue_72181_1.main.mir_map.0.mir similarity index 100% rename from src/test/mir-opt/issue-72181-1/rustc.main.mir_map.0.mir rename to src/test/mir-opt/issue-72181-1/issue_72181_1.main.mir_map.0.mir diff --git a/src/test/mir-opt/issue-72181.rs b/src/test/mir-opt/issue-72181.rs index 9373ce12032..844d53a4b2b 100644 --- a/src/test/mir-opt/issue-72181.rs +++ b/src/test/mir-opt/issue-72181.rs @@ -12,14 +12,14 @@ union Foo { } // EMIT_MIR_FOR_EACH_BIT_WIDTH -// EMIT_MIR rustc.foo.mir_map.0.mir +// EMIT_MIR issue_72181.foo.mir_map.0.mir fn foo(xs: [(Never, u32); 1]) -> u32 { xs[0].1 } -// EMIT_MIR rustc.bar.mir_map.0.mir +// EMIT_MIR issue_72181.bar.mir_map.0.mir fn bar([(_, x)]: [(Never, u32); 1]) -> u32 { x } // EMIT_MIR_FOR_EACH_BIT_WIDTH -// EMIT_MIR rustc.main.mir_map.0.mir +// EMIT_MIR issue_72181.main.mir_map.0.mir fn main() { let _ = mem::size_of::(); diff --git a/src/test/mir-opt/issue-72181/64bit/rustc.bar.mir_map.0.mir b/src/test/mir-opt/issue-72181/64bit/issue_72181.bar.mir_map.0.mir similarity index 100% rename from src/test/mir-opt/issue-72181/64bit/rustc.bar.mir_map.0.mir rename to src/test/mir-opt/issue-72181/64bit/issue_72181.bar.mir_map.0.mir diff --git a/src/test/mir-opt/issue-72181/64bit/rustc.foo.mir_map.0.mir b/src/test/mir-opt/issue-72181/64bit/issue_72181.foo.mir_map.0.mir similarity index 100% rename from src/test/mir-opt/issue-72181/64bit/rustc.foo.mir_map.0.mir rename to src/test/mir-opt/issue-72181/64bit/issue_72181.foo.mir_map.0.mir diff --git a/src/test/mir-opt/issue-72181/64bit/rustc.main.mir_map.0.mir b/src/test/mir-opt/issue-72181/64bit/issue_72181.main.mir_map.0.mir similarity index 100% rename from src/test/mir-opt/issue-72181/64bit/rustc.main.mir_map.0.mir rename to src/test/mir-opt/issue-72181/64bit/issue_72181.main.mir_map.0.mir diff --git a/src/test/mir-opt/issue-73223.rs b/src/test/mir-opt/issue-73223.rs index d93805e6cd1..703b8761231 100644 --- a/src/test/mir-opt/issue-73223.rs +++ b/src/test/mir-opt/issue-73223.rs @@ -9,5 +9,5 @@ fn main() { } // EMIT_MIR_FOR_EACH_BIT_WIDTH -// EMIT_MIR rustc.main.SimplifyArmIdentity.diff -// EMIT_MIR rustc.main.PreCodegen.diff +// EMIT_MIR issue_73223.main.SimplifyArmIdentity.diff +// EMIT_MIR issue_73223.main.PreCodegen.diff diff --git a/src/test/mir-opt/issue-73223/64bit/rustc.main.PreCodegen.diff b/src/test/mir-opt/issue-73223/64bit/issue_73223.main.PreCodegen.diff similarity index 100% rename from src/test/mir-opt/issue-73223/64bit/rustc.main.PreCodegen.diff rename to src/test/mir-opt/issue-73223/64bit/issue_73223.main.PreCodegen.diff diff --git a/src/test/mir-opt/issue-73223/64bit/rustc.main.SimplifyArmIdentity.diff b/src/test/mir-opt/issue-73223/64bit/issue_73223.main.SimplifyArmIdentity.diff similarity index 100% rename from src/test/mir-opt/issue-73223/64bit/rustc.main.SimplifyArmIdentity.diff rename to src/test/mir-opt/issue-73223/64bit/issue_73223.main.SimplifyArmIdentity.diff diff --git a/src/test/mir-opt/loop_test.rs b/src/test/mir-opt/loop_test.rs index cb23a4c671b..5d0c30d4410 100644 --- a/src/test/mir-opt/loop_test.rs +++ b/src/test/mir-opt/loop_test.rs @@ -2,7 +2,7 @@ // Tests to make sure we correctly generate falseUnwind edges in loops -// EMIT_MIR rustc.main.SimplifyCfg-qualify-consts.after.mir +// EMIT_MIR loop_test.main.SimplifyCfg-qualify-consts.after.mir fn main() { // Exit early at runtime. Since only care about the generated MIR // and not the runtime behavior (which is exercised by other tests) diff --git a/src/test/mir-opt/loop_test/rustc.main.SimplifyCfg-qualify-consts.after.mir b/src/test/mir-opt/loop_test/loop_test.main.SimplifyCfg-qualify-consts.after.mir similarity index 100% rename from src/test/mir-opt/loop_test/rustc.main.SimplifyCfg-qualify-consts.after.mir rename to src/test/mir-opt/loop_test/loop_test.main.SimplifyCfg-qualify-consts.after.mir diff --git a/src/test/mir-opt/match-arm-scopes.rs b/src/test/mir-opt/match-arm-scopes.rs index 2c5816c51e3..7b7de7788c2 100644 --- a/src/test/mir-opt/match-arm-scopes.rs +++ b/src/test/mir-opt/match-arm-scopes.rs @@ -9,7 +9,7 @@ // all of the bindings for that scope. // * No drop flags are used. -// EMIT_MIR rustc.complicated_match SimplifyCfg-initial.after ElaborateDrops.after +// EMIT_MIR match_arm_scopes.complicated_match SimplifyCfg-initial.after ElaborateDrops.after fn complicated_match(cond: bool, items: (bool, bool, String)) -> i32 { match items { (false, a, s) | (a, false, s) if if cond { return 3 } else { a } => 1, diff --git a/src/test/mir-opt/match-arm-scopes/rustc.complicated_match.SimplifyCfg-initial.after-ElaborateDrops.after.diff b/src/test/mir-opt/match-arm-scopes/match_arm_scopes.complicated_match.SimplifyCfg-initial.after-ElaborateDrops.after.diff similarity index 100% rename from src/test/mir-opt/match-arm-scopes/rustc.complicated_match.SimplifyCfg-initial.after-ElaborateDrops.after.diff rename to src/test/mir-opt/match-arm-scopes/match_arm_scopes.complicated_match.SimplifyCfg-initial.after-ElaborateDrops.after.diff diff --git a/src/test/mir-opt/match_false_edges.rs b/src/test/mir-opt/match_false_edges.rs index 91f4aad165e..42dea9c7082 100644 --- a/src/test/mir-opt/match_false_edges.rs +++ b/src/test/mir-opt/match_false_edges.rs @@ -10,7 +10,7 @@ fn guard2(_: i32) -> bool { // no_mangle to make sure this gets instantiated even in an executable. #[no_mangle] -// EMIT_MIR rustc.full_tested_match.PromoteTemps.after.mir +// EMIT_MIR match_false_edges.full_tested_match.PromoteTemps.after.mir pub fn full_tested_match() { let _ = match Some(42) { Some(x) if guard() => (1, x), @@ -21,7 +21,7 @@ pub fn full_tested_match() { // no_mangle to make sure this gets instantiated even in an executable. #[no_mangle] -// EMIT_MIR rustc.full_tested_match2.PromoteTemps.before.mir +// EMIT_MIR match_false_edges.full_tested_match2.PromoteTemps.before.mir pub fn full_tested_match2() { let _ = match Some(42) { Some(x) if guard() => (1, x), @@ -30,7 +30,7 @@ pub fn full_tested_match2() { }; } -// EMIT_MIR rustc.main.PromoteTemps.before.mir +// EMIT_MIR match_false_edges.main.PromoteTemps.before.mir fn main() { let _ = match Some(1) { Some(_w) if guard() => 1, diff --git a/src/test/mir-opt/match_false_edges/rustc.full_tested_match.PromoteTemps.after.mir b/src/test/mir-opt/match_false_edges/match_false_edges.full_tested_match.PromoteTemps.after.mir similarity index 100% rename from src/test/mir-opt/match_false_edges/rustc.full_tested_match.PromoteTemps.after.mir rename to src/test/mir-opt/match_false_edges/match_false_edges.full_tested_match.PromoteTemps.after.mir diff --git a/src/test/mir-opt/match_false_edges/rustc.full_tested_match2.PromoteTemps.before.mir b/src/test/mir-opt/match_false_edges/match_false_edges.full_tested_match2.PromoteTemps.before.mir similarity index 100% rename from src/test/mir-opt/match_false_edges/rustc.full_tested_match2.PromoteTemps.before.mir rename to src/test/mir-opt/match_false_edges/match_false_edges.full_tested_match2.PromoteTemps.before.mir diff --git a/src/test/mir-opt/match_false_edges/rustc.main.PromoteTemps.before.mir b/src/test/mir-opt/match_false_edges/match_false_edges.main.PromoteTemps.before.mir similarity index 100% rename from src/test/mir-opt/match_false_edges/rustc.main.PromoteTemps.before.mir rename to src/test/mir-opt/match_false_edges/match_false_edges.main.PromoteTemps.before.mir diff --git a/src/test/mir-opt/match_test.rs b/src/test/mir-opt/match_test.rs index c3b07d42f5e..3a21077905b 100644 --- a/src/test/mir-opt/match_test.rs +++ b/src/test/mir-opt/match_test.rs @@ -2,7 +2,7 @@ #![feature(exclusive_range_pattern)] -// EMIT_MIR rustc.main.SimplifyCfg-initial.after.mir +// EMIT_MIR match_test.main.SimplifyCfg-initial.after.mir fn main() { let x = 3; let b = true; diff --git a/src/test/mir-opt/match_test/rustc.main.SimplifyCfg-initial.after.mir b/src/test/mir-opt/match_test/match_test.main.SimplifyCfg-initial.after.mir similarity index 100% rename from src/test/mir-opt/match_test/rustc.main.SimplifyCfg-initial.after.mir rename to src/test/mir-opt/match_test/match_test.main.SimplifyCfg-initial.after.mir diff --git a/src/test/mir-opt/nll/named-lifetimes-basic.rs b/src/test/mir-opt/nll/named-lifetimes-basic.rs index 073ccf7e6c6..73bd6d64e86 100644 --- a/src/test/mir-opt/nll/named-lifetimes-basic.rs +++ b/src/test/mir-opt/nll/named-lifetimes-basic.rs @@ -8,7 +8,7 @@ #![allow(warnings)] -// EMIT_MIR rustc.use_x.nll.0.mir +// EMIT_MIR named_lifetimes_basic.use_x.nll.0.mir fn use_x<'a, 'b: 'a, 'c>(w: &'a mut i32, x: &'b u32, y: &'a u32, z: &'c u32) -> bool { true } fn main() { diff --git a/src/test/mir-opt/nll/named-lifetimes-basic/rustc.use_x.nll.0.mir b/src/test/mir-opt/nll/named-lifetimes-basic/named_lifetimes_basic.use_x.nll.0.mir similarity index 100% rename from src/test/mir-opt/nll/named-lifetimes-basic/rustc.use_x.nll.0.mir rename to src/test/mir-opt/nll/named-lifetimes-basic/named_lifetimes_basic.use_x.nll.0.mir diff --git a/src/test/mir-opt/nll/region-subtyping-basic.rs b/src/test/mir-opt/nll/region-subtyping-basic.rs index 66d7cda2b85..224a495c788 100644 --- a/src/test/mir-opt/nll/region-subtyping-basic.rs +++ b/src/test/mir-opt/nll/region-subtyping-basic.rs @@ -12,7 +12,7 @@ fn use_x(_: usize) -> bool { } // EMIT_MIR_FOR_EACH_BIT_WIDTH -// EMIT_MIR rustc.main.nll.0.mir +// EMIT_MIR region_subtyping_basic.main.nll.0.mir fn main() { let mut v = [1, 2, 3]; let p = &v[0]; diff --git a/src/test/mir-opt/nll/region-subtyping-basic/64bit/rustc.main.nll.0.mir b/src/test/mir-opt/nll/region-subtyping-basic/64bit/region_subtyping_basic.main.nll.0.mir similarity index 100% rename from src/test/mir-opt/nll/region-subtyping-basic/64bit/rustc.main.nll.0.mir rename to src/test/mir-opt/nll/region-subtyping-basic/64bit/region_subtyping_basic.main.nll.0.mir diff --git a/src/test/mir-opt/no-drop-for-inactive-variant.rs b/src/test/mir-opt/no-drop-for-inactive-variant.rs index cf6426b878a..34e2b1a134f 100644 --- a/src/test/mir-opt/no-drop-for-inactive-variant.rs +++ b/src/test/mir-opt/no-drop-for-inactive-variant.rs @@ -3,7 +3,7 @@ // Ensure that there are no drop terminators in `unwrap` (except the one along the cleanup // path). -// EMIT_MIR rustc.unwrap.SimplifyCfg-elaborate-drops.after.mir +// EMIT_MIR no_drop_for_inactive_variant.unwrap.SimplifyCfg-elaborate-drops.after.mir fn unwrap(opt: Option) -> T { match opt { Some(x) => x, diff --git a/src/test/mir-opt/no-drop-for-inactive-variant/rustc.unwrap.SimplifyCfg-elaborate-drops.after.mir b/src/test/mir-opt/no-drop-for-inactive-variant/no_drop_for_inactive_variant.unwrap.SimplifyCfg-elaborate-drops.after.mir similarity index 100% rename from src/test/mir-opt/no-drop-for-inactive-variant/rustc.unwrap.SimplifyCfg-elaborate-drops.after.mir rename to src/test/mir-opt/no-drop-for-inactive-variant/no_drop_for_inactive_variant.unwrap.SimplifyCfg-elaborate-drops.after.mir diff --git a/src/test/mir-opt/no-spurious-drop-after-call.rs b/src/test/mir-opt/no-spurious-drop-after-call.rs index ab58654e07c..bb5bb9aa4e5 100644 --- a/src/test/mir-opt/no-spurious-drop-after-call.rs +++ b/src/test/mir-opt/no-spurious-drop-after-call.rs @@ -4,7 +4,7 @@ // MIR drop of the argument. (We used to have a `DROP(_2)` in the code // below, as part of bb3.) -// EMIT_MIR rustc.main.ElaborateDrops.before.mir +// EMIT_MIR no_spurious_drop_after_call.main.ElaborateDrops.before.mir fn main() { std::mem::drop("".to_string()); } diff --git a/src/test/mir-opt/no-spurious-drop-after-call/rustc.main.ElaborateDrops.before.mir b/src/test/mir-opt/no-spurious-drop-after-call/no_spurious_drop_after_call.main.ElaborateDrops.before.mir similarity index 100% rename from src/test/mir-opt/no-spurious-drop-after-call/rustc.main.ElaborateDrops.before.mir rename to src/test/mir-opt/no-spurious-drop-after-call/no_spurious_drop_after_call.main.ElaborateDrops.before.mir diff --git a/src/test/mir-opt/nrvo-simple.rs b/src/test/mir-opt/nrvo-simple.rs index bf3a0efeada..f0eb711b3f0 100644 --- a/src/test/mir-opt/nrvo-simple.rs +++ b/src/test/mir-opt/nrvo-simple.rs @@ -1,4 +1,4 @@ -// EMIT_MIR rustc.nrvo.RenameReturnPlace.diff +// EMIT_MIR nrvo_simple.nrvo.RenameReturnPlace.diff fn nrvo(init: fn(&mut [u8; 1024])) -> [u8; 1024] { let mut buf = [0; 1024]; init(&mut buf); diff --git a/src/test/mir-opt/nrvo-simple/rustc.nrvo.RenameReturnPlace.diff b/src/test/mir-opt/nrvo-simple/nrvo_simple.nrvo.RenameReturnPlace.diff similarity index 100% rename from src/test/mir-opt/nrvo-simple/rustc.nrvo.RenameReturnPlace.diff rename to src/test/mir-opt/nrvo-simple/nrvo_simple.nrvo.RenameReturnPlace.diff diff --git a/src/test/mir-opt/packed-struct-drop-aligned.rs b/src/test/mir-opt/packed-struct-drop-aligned.rs index daf397c3d9c..6c2e265d514 100644 --- a/src/test/mir-opt/packed-struct-drop-aligned.rs +++ b/src/test/mir-opt/packed-struct-drop-aligned.rs @@ -1,7 +1,7 @@ // ignore-wasm32-bare compiled with panic=abort by default // EMIT_MIR_FOR_EACH_BIT_WIDTH -// EMIT_MIR rustc.main.SimplifyCfg-elaborate-drops.after.mir +// EMIT_MIR packed_struct_drop_aligned.main.SimplifyCfg-elaborate-drops.after.mir fn main() { let mut x = Packed(Aligned(Droppy(0))); x.0 = Aligned(Droppy(0)); diff --git a/src/test/mir-opt/packed-struct-drop-aligned/64bit/rustc.main.SimplifyCfg-elaborate-drops.after.mir b/src/test/mir-opt/packed-struct-drop-aligned/64bit/packed_struct_drop_aligned.main.SimplifyCfg-elaborate-drops.after.mir similarity index 100% rename from src/test/mir-opt/packed-struct-drop-aligned/64bit/rustc.main.SimplifyCfg-elaborate-drops.after.mir rename to src/test/mir-opt/packed-struct-drop-aligned/64bit/packed_struct_drop_aligned.main.SimplifyCfg-elaborate-drops.after.mir diff --git a/src/test/mir-opt/remove-never-const.rs b/src/test/mir-opt/remove-never-const.rs index b2d4f14aa4c..1673f14b45c 100644 --- a/src/test/mir-opt/remove-never-const.rs +++ b/src/test/mir-opt/remove-never-const.rs @@ -15,7 +15,7 @@ impl PrintName { const VOID: ! = panic!(); } -// EMIT_MIR rustc.no_codegen.PreCodegen.after.mir +// EMIT_MIR remove_never_const.no_codegen.PreCodegen.after.mir fn no_codegen() { let _ = PrintName::::VOID; } diff --git a/src/test/mir-opt/remove-never-const/rustc.no_codegen.PreCodegen.after.mir b/src/test/mir-opt/remove-never-const/remove_never_const.no_codegen.PreCodegen.after.mir similarity index 100% rename from src/test/mir-opt/remove-never-const/rustc.no_codegen.PreCodegen.after.mir rename to src/test/mir-opt/remove-never-const/remove_never_const.no_codegen.PreCodegen.after.mir diff --git a/src/test/mir-opt/remove_fake_borrows.rs b/src/test/mir-opt/remove_fake_borrows.rs index fd2f1d0dbff..a980f386b69 100644 --- a/src/test/mir-opt/remove_fake_borrows.rs +++ b/src/test/mir-opt/remove_fake_borrows.rs @@ -2,7 +2,7 @@ // ignore-wasm32-bare compiled with panic=abort by default -// EMIT_MIR rustc.match_guard.CleanupNonCodegenStatements.diff +// EMIT_MIR remove_fake_borrows.match_guard.CleanupNonCodegenStatements.diff fn match_guard(x: Option<&&i32>, c: bool) -> i32 { match x { Some(0) if c => 0, diff --git a/src/test/mir-opt/remove_fake_borrows/rustc.match_guard.CleanupNonCodegenStatements.diff b/src/test/mir-opt/remove_fake_borrows/remove_fake_borrows.match_guard.CleanupNonCodegenStatements.diff similarity index 100% rename from src/test/mir-opt/remove_fake_borrows/rustc.match_guard.CleanupNonCodegenStatements.diff rename to src/test/mir-opt/remove_fake_borrows/remove_fake_borrows.match_guard.CleanupNonCodegenStatements.diff diff --git a/src/test/mir-opt/retag.rs b/src/test/mir-opt/retag.rs index eba0f567c4a..12d7cb30d97 100644 --- a/src/test/mir-opt/retag.rs +++ b/src/test/mir-opt/retag.rs @@ -6,8 +6,8 @@ struct Test(i32); -// EMIT_MIR rustc.{{impl}}-foo.SimplifyCfg-elaborate-drops.after.mir -// EMIT_MIR rustc.{{impl}}-foo_shr.SimplifyCfg-elaborate-drops.after.mir +// EMIT_MIR retag.{{impl}}-foo.SimplifyCfg-elaborate-drops.after.mir +// EMIT_MIR retag.{{impl}}-foo_shr.SimplifyCfg-elaborate-drops.after.mir impl Test { // Make sure we run the pass on a method, not just on bare functions. fn foo<'x>(&self, x: &'x mut i32) -> &'x mut i32 { @@ -18,14 +18,14 @@ fn foo_shr<'x>(&self, x: &'x i32) -> &'x i32 { } } -// EMIT_MIR rustc.ptr-drop_in_place.Test.SimplifyCfg-make_shim.after.mir +// EMIT_MIR core.ptr-drop_in_place.Test.SimplifyCfg-make_shim.after.mir impl Drop for Test { fn drop(&mut self) {} } -// EMIT_MIR rustc.main.SimplifyCfg-elaborate-drops.after.mir -// EMIT_MIR rustc.main-{{closure}}.SimplifyCfg-elaborate-drops.after.mir +// EMIT_MIR retag.main.SimplifyCfg-elaborate-drops.after.mir +// EMIT_MIR retag.main-{{closure}}.SimplifyCfg-elaborate-drops.after.mir fn main() { let mut x = 0; { diff --git a/src/test/mir-opt/retag/rustc.ptr-drop_in_place.Test.SimplifyCfg-make_shim.after.mir b/src/test/mir-opt/retag/core.ptr-drop_in_place.Test.SimplifyCfg-make_shim.after.mir similarity index 100% rename from src/test/mir-opt/retag/rustc.ptr-drop_in_place.Test.SimplifyCfg-make_shim.after.mir rename to src/test/mir-opt/retag/core.ptr-drop_in_place.Test.SimplifyCfg-make_shim.after.mir diff --git a/src/test/mir-opt/retag/rustc.main-{{closure}}.SimplifyCfg-elaborate-drops.after.mir b/src/test/mir-opt/retag/retag.main-{{closure}}.SimplifyCfg-elaborate-drops.after.mir similarity index 100% rename from src/test/mir-opt/retag/rustc.main-{{closure}}.SimplifyCfg-elaborate-drops.after.mir rename to src/test/mir-opt/retag/retag.main-{{closure}}.SimplifyCfg-elaborate-drops.after.mir diff --git a/src/test/mir-opt/retag/rustc.main.SimplifyCfg-elaborate-drops.after.mir b/src/test/mir-opt/retag/retag.main.SimplifyCfg-elaborate-drops.after.mir similarity index 100% rename from src/test/mir-opt/retag/rustc.main.SimplifyCfg-elaborate-drops.after.mir rename to src/test/mir-opt/retag/retag.main.SimplifyCfg-elaborate-drops.after.mir diff --git a/src/test/mir-opt/retag/rustc.{{impl}}-foo.SimplifyCfg-elaborate-drops.after.mir b/src/test/mir-opt/retag/retag.{{impl}}-foo.SimplifyCfg-elaborate-drops.after.mir similarity index 100% rename from src/test/mir-opt/retag/rustc.{{impl}}-foo.SimplifyCfg-elaborate-drops.after.mir rename to src/test/mir-opt/retag/retag.{{impl}}-foo.SimplifyCfg-elaborate-drops.after.mir diff --git a/src/test/mir-opt/retag/rustc.{{impl}}-foo_shr.SimplifyCfg-elaborate-drops.after.mir b/src/test/mir-opt/retag/retag.{{impl}}-foo_shr.SimplifyCfg-elaborate-drops.after.mir similarity index 100% rename from src/test/mir-opt/retag/rustc.{{impl}}-foo_shr.SimplifyCfg-elaborate-drops.after.mir rename to src/test/mir-opt/retag/retag.{{impl}}-foo_shr.SimplifyCfg-elaborate-drops.after.mir diff --git a/src/test/mir-opt/simple-match.rs b/src/test/mir-opt/simple-match.rs index c8c7e9188c2..44adc55b6f7 100644 --- a/src/test/mir-opt/simple-match.rs +++ b/src/test/mir-opt/simple-match.rs @@ -1,7 +1,7 @@ // Test that we don't generate unnecessarily large MIR for very simple matches // EMIT_MIR_FOR_EACH_BIT_WIDTH -// EMIT_MIR rustc.match_bool.mir_map.0.mir +// EMIT_MIR simple_match.match_bool.mir_map.0.mir fn match_bool(x: bool) -> usize { match x { true => 10, diff --git a/src/test/mir-opt/simple-match/64bit/rustc.match_bool.mir_map.0.mir b/src/test/mir-opt/simple-match/64bit/simple_match.match_bool.mir_map.0.mir similarity index 100% rename from src/test/mir-opt/simple-match/64bit/rustc.match_bool.mir_map.0.mir rename to src/test/mir-opt/simple-match/64bit/simple_match.match_bool.mir_map.0.mir diff --git a/src/test/mir-opt/simplify-arm-identity.rs b/src/test/mir-opt/simplify-arm-identity.rs index 24e91b3ff61..0a59032e87b 100644 --- a/src/test/mir-opt/simplify-arm-identity.rs +++ b/src/test/mir-opt/simplify-arm-identity.rs @@ -13,7 +13,7 @@ enum Dst { Foo(u8), } -// EMIT_MIR rustc.main.SimplifyArmIdentity.diff +// EMIT_MIR simplify_arm_identity.main.SimplifyArmIdentity.diff fn main() { let e: Src = Src::Foo(0); let _: Dst = match e { diff --git a/src/test/mir-opt/simplify-arm-identity/64bit/rustc.main.SimplifyArmIdentity.diff b/src/test/mir-opt/simplify-arm-identity/64bit/simplify_arm_identity.main.SimplifyArmIdentity.diff similarity index 100% rename from src/test/mir-opt/simplify-arm-identity/64bit/rustc.main.SimplifyArmIdentity.diff rename to src/test/mir-opt/simplify-arm-identity/64bit/simplify_arm_identity.main.SimplifyArmIdentity.diff diff --git a/src/test/mir-opt/simplify-arm.rs b/src/test/mir-opt/simplify-arm.rs index 0e3f86501bb..20b4e67f53b 100644 --- a/src/test/mir-opt/simplify-arm.rs +++ b/src/test/mir-opt/simplify-arm.rs @@ -1,10 +1,10 @@ // compile-flags: -Z mir-opt-level=1 -// EMIT_MIR rustc.id.SimplifyArmIdentity.diff -// EMIT_MIR rustc.id.SimplifyBranchSame.diff -// EMIT_MIR rustc.id_result.SimplifyArmIdentity.diff -// EMIT_MIR rustc.id_result.SimplifyBranchSame.diff -// EMIT_MIR rustc.id_try.SimplifyArmIdentity.diff -// EMIT_MIR rustc.id_try.SimplifyBranchSame.diff +// EMIT_MIR simplify_arm.id.SimplifyArmIdentity.diff +// EMIT_MIR simplify_arm.id.SimplifyBranchSame.diff +// EMIT_MIR simplify_arm.id_result.SimplifyArmIdentity.diff +// EMIT_MIR simplify_arm.id_result.SimplifyBranchSame.diff +// EMIT_MIR simplify_arm.id_try.SimplifyArmIdentity.diff +// EMIT_MIR simplify_arm.id_try.SimplifyBranchSame.diff fn id(o: Option) -> Option { match o { diff --git a/src/test/mir-opt/simplify-arm/rustc.id.SimplifyArmIdentity.diff b/src/test/mir-opt/simplify-arm/simplify_arm.id.SimplifyArmIdentity.diff similarity index 100% rename from src/test/mir-opt/simplify-arm/rustc.id.SimplifyArmIdentity.diff rename to src/test/mir-opt/simplify-arm/simplify_arm.id.SimplifyArmIdentity.diff diff --git a/src/test/mir-opt/simplify-arm/rustc.id.SimplifyBranchSame.diff b/src/test/mir-opt/simplify-arm/simplify_arm.id.SimplifyBranchSame.diff similarity index 100% rename from src/test/mir-opt/simplify-arm/rustc.id.SimplifyBranchSame.diff rename to src/test/mir-opt/simplify-arm/simplify_arm.id.SimplifyBranchSame.diff diff --git a/src/test/mir-opt/simplify-arm/rustc.id_result.SimplifyArmIdentity.diff b/src/test/mir-opt/simplify-arm/simplify_arm.id_result.SimplifyArmIdentity.diff similarity index 100% rename from src/test/mir-opt/simplify-arm/rustc.id_result.SimplifyArmIdentity.diff rename to src/test/mir-opt/simplify-arm/simplify_arm.id_result.SimplifyArmIdentity.diff diff --git a/src/test/mir-opt/simplify-arm/rustc.id_result.SimplifyBranchSame.diff b/src/test/mir-opt/simplify-arm/simplify_arm.id_result.SimplifyBranchSame.diff similarity index 100% rename from src/test/mir-opt/simplify-arm/rustc.id_result.SimplifyBranchSame.diff rename to src/test/mir-opt/simplify-arm/simplify_arm.id_result.SimplifyBranchSame.diff diff --git a/src/test/mir-opt/simplify-arm/rustc.id_try.SimplifyArmIdentity.diff b/src/test/mir-opt/simplify-arm/simplify_arm.id_try.SimplifyArmIdentity.diff similarity index 100% rename from src/test/mir-opt/simplify-arm/rustc.id_try.SimplifyArmIdentity.diff rename to src/test/mir-opt/simplify-arm/simplify_arm.id_try.SimplifyArmIdentity.diff diff --git a/src/test/mir-opt/simplify-arm/rustc.id_try.SimplifyBranchSame.diff b/src/test/mir-opt/simplify-arm/simplify_arm.id_try.SimplifyBranchSame.diff similarity index 100% rename from src/test/mir-opt/simplify-arm/rustc.id_try.SimplifyBranchSame.diff rename to src/test/mir-opt/simplify-arm/simplify_arm.id_try.SimplifyBranchSame.diff diff --git a/src/test/mir-opt/simplify-locals-fixedpoint.rs b/src/test/mir-opt/simplify-locals-fixedpoint.rs index aa5bc345359..78b1f9f55e5 100644 --- a/src/test/mir-opt/simplify-locals-fixedpoint.rs +++ b/src/test/mir-opt/simplify-locals-fixedpoint.rs @@ -12,4 +12,4 @@ fn main() { foo::<()>(); } -// EMIT_MIR rustc.foo.SimplifyLocals.diff +// EMIT_MIR simplify_locals_fixedpoint.foo.SimplifyLocals.diff diff --git a/src/test/mir-opt/simplify-locals-fixedpoint/rustc.foo.SimplifyLocals.diff b/src/test/mir-opt/simplify-locals-fixedpoint/simplify_locals_fixedpoint.foo.SimplifyLocals.diff similarity index 100% rename from src/test/mir-opt/simplify-locals-fixedpoint/rustc.foo.SimplifyLocals.diff rename to src/test/mir-opt/simplify-locals-fixedpoint/simplify_locals_fixedpoint.foo.SimplifyLocals.diff diff --git a/src/test/mir-opt/simplify-locals-removes-unused-consts.rs b/src/test/mir-opt/simplify-locals-removes-unused-consts.rs index 48cee3c30d2..17999454472 100644 --- a/src/test/mir-opt/simplify-locals-removes-unused-consts.rs +++ b/src/test/mir-opt/simplify-locals-removes-unused-consts.rs @@ -8,7 +8,7 @@ struct Temp { fn use_u8(_: u8) {} -// EMIT_MIR rustc.main.SimplifyLocals.diff +// EMIT_MIR simplify_locals_removes_unused_consts.main.SimplifyLocals.diff fn main() { let ((), ()) = ((), ()); use_zst(((), ())); diff --git a/src/test/mir-opt/simplify-locals-removes-unused-consts/rustc.main.SimplifyLocals.diff b/src/test/mir-opt/simplify-locals-removes-unused-consts/simplify_locals_removes_unused_consts.main.SimplifyLocals.diff similarity index 100% rename from src/test/mir-opt/simplify-locals-removes-unused-consts/rustc.main.SimplifyLocals.diff rename to src/test/mir-opt/simplify-locals-removes-unused-consts/simplify_locals_removes_unused_consts.main.SimplifyLocals.diff diff --git a/src/test/mir-opt/simplify-locals-removes-unused-discriminant-reads.rs b/src/test/mir-opt/simplify-locals-removes-unused-discriminant-reads.rs index 7047b542aa6..cf8940ec330 100644 --- a/src/test/mir-opt/simplify-locals-removes-unused-discriminant-reads.rs +++ b/src/test/mir-opt/simplify-locals-removes-unused-discriminant-reads.rs @@ -10,4 +10,4 @@ fn main() { } // EMIT_MIR_FOR_EACH_BIT_WIDTH -// EMIT_MIR rustc.map.SimplifyLocals.diff +// EMIT_MIR simplify_locals_removes_unused_discriminant_reads.map.SimplifyLocals.diff diff --git a/src/test/mir-opt/simplify-locals-removes-unused-discriminant-reads/64bit/rustc.map.SimplifyLocals.diff b/src/test/mir-opt/simplify-locals-removes-unused-discriminant-reads/64bit/simplify_locals_removes_unused_discriminant_reads.map.SimplifyLocals.diff similarity index 100% rename from src/test/mir-opt/simplify-locals-removes-unused-discriminant-reads/64bit/rustc.map.SimplifyLocals.diff rename to src/test/mir-opt/simplify-locals-removes-unused-discriminant-reads/64bit/simplify_locals_removes_unused_discriminant_reads.map.SimplifyLocals.diff diff --git a/src/test/mir-opt/simplify_cfg.rs b/src/test/mir-opt/simplify_cfg.rs index 8d588a39d65..c464005c448 100644 --- a/src/test/mir-opt/simplify_cfg.rs +++ b/src/test/mir-opt/simplify_cfg.rs @@ -1,7 +1,7 @@ // Test that the goto chain starting from bb0 is collapsed. -// EMIT_MIR rustc.main.SimplifyCfg-initial.diff -// EMIT_MIR rustc.main.SimplifyCfg-early-opt.diff +// EMIT_MIR simplify_cfg.main.SimplifyCfg-initial.diff +// EMIT_MIR simplify_cfg.main.SimplifyCfg-early-opt.diff fn main() { loop { if bar() { diff --git a/src/test/mir-opt/simplify_cfg/rustc.main.SimplifyCfg-early-opt.diff b/src/test/mir-opt/simplify_cfg/simplify_cfg.main.SimplifyCfg-early-opt.diff similarity index 100% rename from src/test/mir-opt/simplify_cfg/rustc.main.SimplifyCfg-early-opt.diff rename to src/test/mir-opt/simplify_cfg/simplify_cfg.main.SimplifyCfg-early-opt.diff diff --git a/src/test/mir-opt/simplify_cfg/rustc.main.SimplifyCfg-initial.diff b/src/test/mir-opt/simplify_cfg/simplify_cfg.main.SimplifyCfg-initial.diff similarity index 100% rename from src/test/mir-opt/simplify_cfg/rustc.main.SimplifyCfg-initial.diff rename to src/test/mir-opt/simplify_cfg/simplify_cfg.main.SimplifyCfg-initial.diff diff --git a/src/test/mir-opt/simplify_if.rs b/src/test/mir-opt/simplify_if.rs index e2d3ebe69c4..67b2027b710 100644 --- a/src/test/mir-opt/simplify_if.rs +++ b/src/test/mir-opt/simplify_if.rs @@ -1,7 +1,7 @@ #[inline(never)] fn noop() {} -// EMIT_MIR rustc.main.SimplifyBranches-after-const-prop.diff +// EMIT_MIR simplify_if.main.SimplifyBranches-after-const-prop.diff fn main() { if false { noop(); diff --git a/src/test/mir-opt/simplify_if/rustc.main.SimplifyBranches-after-const-prop.diff b/src/test/mir-opt/simplify_if/simplify_if.main.SimplifyBranches-after-const-prop.diff similarity index 100% rename from src/test/mir-opt/simplify_if/rustc.main.SimplifyBranches-after-const-prop.diff rename to src/test/mir-opt/simplify_if/simplify_if.main.SimplifyBranches-after-const-prop.diff diff --git a/src/test/mir-opt/simplify_match.rs b/src/test/mir-opt/simplify_match.rs index b8e1ea6f981..216203f9ff0 100644 --- a/src/test/mir-opt/simplify_match.rs +++ b/src/test/mir-opt/simplify_match.rs @@ -1,7 +1,7 @@ #[inline(never)] fn noop() {} -// EMIT_MIR rustc.main.ConstProp.diff +// EMIT_MIR simplify_match.main.ConstProp.diff fn main() { match { let x = false; x } { true => noop(), diff --git a/src/test/mir-opt/simplify_match/rustc.main.ConstProp.diff b/src/test/mir-opt/simplify_match/simplify_match.main.ConstProp.diff similarity index 100% rename from src/test/mir-opt/simplify_match/rustc.main.ConstProp.diff rename to src/test/mir-opt/simplify_match/simplify_match.main.ConstProp.diff diff --git a/src/test/mir-opt/simplify_try.rs b/src/test/mir-opt/simplify_try.rs index 88a0451a76f..fa127de13df 100644 --- a/src/test/mir-opt/simplify_try.rs +++ b/src/test/mir-opt/simplify_try.rs @@ -1,6 +1,6 @@ -// EMIT_MIR rustc.try_identity.SimplifyArmIdentity.diff -// EMIT_MIR rustc.try_identity.SimplifyBranchSame.after.mir -// EMIT_MIR rustc.try_identity.SimplifyLocals.after.mir +// EMIT_MIR simplify_try.try_identity.SimplifyArmIdentity.diff +// EMIT_MIR simplify_try.try_identity.SimplifyBranchSame.after.mir +// EMIT_MIR simplify_try.try_identity.SimplifyLocals.after.mir fn try_identity(x: Result) -> Result { let y = x?; diff --git a/src/test/mir-opt/simplify_try/rustc.try_identity.SimplifyArmIdentity.diff b/src/test/mir-opt/simplify_try/simplify_try.try_identity.SimplifyArmIdentity.diff similarity index 100% rename from src/test/mir-opt/simplify_try/rustc.try_identity.SimplifyArmIdentity.diff rename to src/test/mir-opt/simplify_try/simplify_try.try_identity.SimplifyArmIdentity.diff diff --git a/src/test/mir-opt/simplify_try/rustc.try_identity.SimplifyBranchSame.after.mir b/src/test/mir-opt/simplify_try/simplify_try.try_identity.SimplifyBranchSame.after.mir similarity index 100% rename from src/test/mir-opt/simplify_try/rustc.try_identity.SimplifyBranchSame.after.mir rename to src/test/mir-opt/simplify_try/simplify_try.try_identity.SimplifyBranchSame.after.mir diff --git a/src/test/mir-opt/simplify_try/rustc.try_identity.SimplifyLocals.after.mir b/src/test/mir-opt/simplify_try/simplify_try.try_identity.SimplifyLocals.after.mir similarity index 100% rename from src/test/mir-opt/simplify_try/rustc.try_identity.SimplifyLocals.after.mir rename to src/test/mir-opt/simplify_try/simplify_try.try_identity.SimplifyLocals.after.mir diff --git a/src/test/mir-opt/simplify_try_if_let.rs b/src/test/mir-opt/simplify_try_if_let.rs index daa961c3c8c..b37db738421 100644 --- a/src/test/mir-opt/simplify_try_if_let.rs +++ b/src/test/mir-opt/simplify_try_if_let.rs @@ -1,5 +1,5 @@ // compile-flags: -Zmir-opt-level=1 -// EMIT_MIR rustc.{{impl}}-append.SimplifyArmIdentity.diff +// EMIT_MIR simplify_try_if_let.{{impl}}-append.SimplifyArmIdentity.diff use std::ptr::NonNull; diff --git a/src/test/mir-opt/simplify_try_if_let/rustc.{{impl}}-append.SimplifyArmIdentity.diff b/src/test/mir-opt/simplify_try_if_let/simplify_try_if_let.{{impl}}-append.SimplifyArmIdentity.diff similarity index 100% rename from src/test/mir-opt/simplify_try_if_let/rustc.{{impl}}-append.SimplifyArmIdentity.diff rename to src/test/mir-opt/simplify_try_if_let/simplify_try_if_let.{{impl}}-append.SimplifyArmIdentity.diff diff --git a/src/test/mir-opt/slice-drop-shim.rs b/src/test/mir-opt/slice-drop-shim.rs index 5d8d37e0bc5..3b98b8474e5 100644 --- a/src/test/mir-opt/slice-drop-shim.rs +++ b/src/test/mir-opt/slice-drop-shim.rs @@ -1,7 +1,7 @@ // compile-flags: -Zmir-opt-level=0 // EMIT_MIR_FOR_EACH_BIT_WIDTH -// EMIT_MIR rustc.ptr-drop_in_place.[std__string__String].AddMovesForPackedDrops.before.mir +// EMIT_MIR core.ptr-drop_in_place.[std__string__String].AddMovesForPackedDrops.before.mir fn main() { let _fn = std::ptr::drop_in_place::<[String]> as unsafe fn(_); } diff --git a/src/test/mir-opt/slice-drop-shim/64bit/rustc.ptr-drop_in_place.[std__string__String].AddMovesForPackedDrops.before.mir b/src/test/mir-opt/slice-drop-shim/64bit/core.ptr-drop_in_place.[std__string__String].AddMovesForPackedDrops.before.mir similarity index 100% rename from src/test/mir-opt/slice-drop-shim/64bit/rustc.ptr-drop_in_place.[std__string__String].AddMovesForPackedDrops.before.mir rename to src/test/mir-opt/slice-drop-shim/64bit/core.ptr-drop_in_place.[std__string__String].AddMovesForPackedDrops.before.mir diff --git a/src/test/mir-opt/storage_live_dead_in_statics.rs b/src/test/mir-opt/storage_live_dead_in_statics.rs index a269914f262..b03de8612fc 100644 --- a/src/test/mir-opt/storage_live_dead_in_statics.rs +++ b/src/test/mir-opt/storage_live_dead_in_statics.rs @@ -1,7 +1,7 @@ // Check that when we compile the static `XXX` into MIR, we do not // generate `StorageStart` or `StorageEnd` statements. -// EMIT_MIR rustc.XXX.mir_map.0.mir +// EMIT_MIR storage_live_dead_in_statics.XXX.mir_map.0.mir static XXX: &'static Foo = &Foo { tup: "hi", data: &[ diff --git a/src/test/mir-opt/storage_live_dead_in_statics/rustc.XXX.mir_map.0.mir b/src/test/mir-opt/storage_live_dead_in_statics/storage_live_dead_in_statics.XXX.mir_map.0.mir similarity index 100% rename from src/test/mir-opt/storage_live_dead_in_statics/rustc.XXX.mir_map.0.mir rename to src/test/mir-opt/storage_live_dead_in_statics/storage_live_dead_in_statics.XXX.mir_map.0.mir diff --git a/src/test/mir-opt/storage_ranges.rs b/src/test/mir-opt/storage_ranges.rs index 7b3c77aca27..996051a2941 100644 --- a/src/test/mir-opt/storage_ranges.rs +++ b/src/test/mir-opt/storage_ranges.rs @@ -1,4 +1,4 @@ -// EMIT_MIR rustc.main.nll.0.mir +// EMIT_MIR storage_ranges.main.nll.0.mir fn main() { let a = 0; diff --git a/src/test/mir-opt/storage_ranges/rustc.main.nll.0.mir b/src/test/mir-opt/storage_ranges/storage_ranges.main.nll.0.mir similarity index 100% rename from src/test/mir-opt/storage_ranges/rustc.main.nll.0.mir rename to src/test/mir-opt/storage_ranges/storage_ranges.main.nll.0.mir diff --git a/src/test/mir-opt/tls-access.rs b/src/test/mir-opt/tls-access.rs index 4f3f6b1b3ac..b585fd0c808 100644 --- a/src/test/mir-opt/tls-access.rs +++ b/src/test/mir-opt/tls-access.rs @@ -10,4 +10,4 @@ fn main() { } } -// EMIT_MIR rustc.main.SimplifyCfg-final.after.mir +// EMIT_MIR tls_access.main.SimplifyCfg-final.after.mir diff --git a/src/test/mir-opt/tls-access/rustc.main.SimplifyCfg-final.after.mir b/src/test/mir-opt/tls-access/tls_access.main.SimplifyCfg-final.after.mir similarity index 100% rename from src/test/mir-opt/tls-access/rustc.main.SimplifyCfg-final.after.mir rename to src/test/mir-opt/tls-access/tls_access.main.SimplifyCfg-final.after.mir diff --git a/src/test/mir-opt/uniform_array_move_out.rs b/src/test/mir-opt/uniform_array_move_out.rs index c1b7ebdbc3a..35e42552870 100644 --- a/src/test/mir-opt/uniform_array_move_out.rs +++ b/src/test/mir-opt/uniform_array_move_out.rs @@ -1,12 +1,12 @@ #![feature(box_syntax)] -// EMIT_MIR rustc.move_out_from_end.mir_map.0.mir +// EMIT_MIR uniform_array_move_out.move_out_from_end.mir_map.0.mir fn move_out_from_end() { let a = [box 1, box 2]; let [.., _y] = a; } -// EMIT_MIR rustc.move_out_by_subslice.mir_map.0.mir +// EMIT_MIR uniform_array_move_out.move_out_by_subslice.mir_map.0.mir fn move_out_by_subslice() { let a = [box 1, box 2]; let [_y @ ..] = a; diff --git a/src/test/mir-opt/uniform_array_move_out/rustc.move_out_by_subslice.mir_map.0.mir b/src/test/mir-opt/uniform_array_move_out/uniform_array_move_out.move_out_by_subslice.mir_map.0.mir similarity index 100% rename from src/test/mir-opt/uniform_array_move_out/rustc.move_out_by_subslice.mir_map.0.mir rename to src/test/mir-opt/uniform_array_move_out/uniform_array_move_out.move_out_by_subslice.mir_map.0.mir diff --git a/src/test/mir-opt/uniform_array_move_out/rustc.move_out_from_end.mir_map.0.mir b/src/test/mir-opt/uniform_array_move_out/uniform_array_move_out.move_out_from_end.mir_map.0.mir similarity index 100% rename from src/test/mir-opt/uniform_array_move_out/rustc.move_out_from_end.mir_map.0.mir rename to src/test/mir-opt/uniform_array_move_out/uniform_array_move_out.move_out_from_end.mir_map.0.mir diff --git a/src/test/mir-opt/uninhabited-enum.rs b/src/test/mir-opt/uninhabited-enum.rs index 6503e193608..97c6e8cd531 100644 --- a/src/test/mir-opt/uninhabited-enum.rs +++ b/src/test/mir-opt/uninhabited-enum.rs @@ -2,13 +2,13 @@ pub enum Void {} -// EMIT_MIR rustc.process_never.SimplifyLocals.after.mir +// EMIT_MIR uninhabited_enum.process_never.SimplifyLocals.after.mir #[no_mangle] pub fn process_never(input: *const !) { let _input = unsafe { &*input }; } -// EMIT_MIR rustc.process_void.SimplifyLocals.after.mir +// EMIT_MIR uninhabited_enum.process_void.SimplifyLocals.after.mir #[no_mangle] pub fn process_void(input: *const Void) { let _input = unsafe { &*input }; diff --git a/src/test/mir-opt/uninhabited-enum/rustc.process_never.SimplifyLocals.after.mir b/src/test/mir-opt/uninhabited-enum/uninhabited_enum.process_never.SimplifyLocals.after.mir similarity index 100% rename from src/test/mir-opt/uninhabited-enum/rustc.process_never.SimplifyLocals.after.mir rename to src/test/mir-opt/uninhabited-enum/uninhabited_enum.process_never.SimplifyLocals.after.mir diff --git a/src/test/mir-opt/uninhabited-enum/rustc.process_void.SimplifyLocals.after.mir b/src/test/mir-opt/uninhabited-enum/uninhabited_enum.process_void.SimplifyLocals.after.mir similarity index 100% rename from src/test/mir-opt/uninhabited-enum/rustc.process_void.SimplifyLocals.after.mir rename to src/test/mir-opt/uninhabited-enum/uninhabited_enum.process_void.SimplifyLocals.after.mir diff --git a/src/test/mir-opt/uninhabited_enum_branching.rs b/src/test/mir-opt/uninhabited_enum_branching.rs index daf1156d20e..0ef604c3088 100644 --- a/src/test/mir-opt/uninhabited_enum_branching.rs +++ b/src/test/mir-opt/uninhabited_enum_branching.rs @@ -14,8 +14,8 @@ enum Test2 { E = 5, } -// EMIT_MIR rustc.main.UninhabitedEnumBranching.diff -// EMIT_MIR rustc.main.SimplifyCfg-after-uninhabited-enum-branching.after.mir +// EMIT_MIR uninhabited_enum_branching.main.UninhabitedEnumBranching.diff +// EMIT_MIR uninhabited_enum_branching.main.SimplifyCfg-after-uninhabited-enum-branching.after.mir fn main() { match Test1::C { Test1::A(_) => "A(Empty)", diff --git a/src/test/mir-opt/uninhabited_enum_branching/rustc.main.SimplifyCfg-after-uninhabited-enum-branching.after.mir b/src/test/mir-opt/uninhabited_enum_branching/uninhabited_enum_branching.main.SimplifyCfg-after-uninhabited-enum-branching.after.mir similarity index 100% rename from src/test/mir-opt/uninhabited_enum_branching/rustc.main.SimplifyCfg-after-uninhabited-enum-branching.after.mir rename to src/test/mir-opt/uninhabited_enum_branching/uninhabited_enum_branching.main.SimplifyCfg-after-uninhabited-enum-branching.after.mir diff --git a/src/test/mir-opt/uninhabited_enum_branching/rustc.main.UninhabitedEnumBranching.diff b/src/test/mir-opt/uninhabited_enum_branching/uninhabited_enum_branching.main.UninhabitedEnumBranching.diff similarity index 100% rename from src/test/mir-opt/uninhabited_enum_branching/rustc.main.UninhabitedEnumBranching.diff rename to src/test/mir-opt/uninhabited_enum_branching/uninhabited_enum_branching.main.UninhabitedEnumBranching.diff diff --git a/src/test/mir-opt/unreachable.rs b/src/test/mir-opt/unreachable.rs index 6f0c4ca3cf5..6098b525b55 100644 --- a/src/test/mir-opt/unreachable.rs +++ b/src/test/mir-opt/unreachable.rs @@ -4,7 +4,7 @@ fn empty() -> Option { None } -// EMIT_MIR rustc.main.UnreachablePropagation.diff +// EMIT_MIR unreachable.main.UnreachablePropagation.diff fn main() { if let Some(_x) = empty() { let mut _y; diff --git a/src/test/mir-opt/unreachable/rustc.main.UnreachablePropagation.diff b/src/test/mir-opt/unreachable/unreachable.main.UnreachablePropagation.diff similarity index 100% rename from src/test/mir-opt/unreachable/rustc.main.UnreachablePropagation.diff rename to src/test/mir-opt/unreachable/unreachable.main.UnreachablePropagation.diff diff --git a/src/test/mir-opt/unreachable_asm.rs b/src/test/mir-opt/unreachable_asm.rs index 4bbf22b8227..cbef05a3c05 100644 --- a/src/test/mir-opt/unreachable_asm.rs +++ b/src/test/mir-opt/unreachable_asm.rs @@ -6,7 +6,7 @@ fn empty() -> Option { None } -// EMIT_MIR rustc.main.UnreachablePropagation.diff +// EMIT_MIR unreachable_asm.main.UnreachablePropagation.diff fn main() { if let Some(_x) = empty() { let mut _y; diff --git a/src/test/mir-opt/unreachable_asm/rustc.main.UnreachablePropagation.diff b/src/test/mir-opt/unreachable_asm/unreachable_asm.main.UnreachablePropagation.diff similarity index 100% rename from src/test/mir-opt/unreachable_asm/rustc.main.UnreachablePropagation.diff rename to src/test/mir-opt/unreachable_asm/unreachable_asm.main.UnreachablePropagation.diff diff --git a/src/test/mir-opt/unreachable_asm_2.rs b/src/test/mir-opt/unreachable_asm_2.rs index f1610db999e..e0d8e725147 100644 --- a/src/test/mir-opt/unreachable_asm_2.rs +++ b/src/test/mir-opt/unreachable_asm_2.rs @@ -6,7 +6,7 @@ fn empty() -> Option { None } -// EMIT_MIR rustc.main.UnreachablePropagation.diff +// EMIT_MIR unreachable_asm_2.main.UnreachablePropagation.diff fn main() { if let Some(_x) = empty() { let mut _y; diff --git a/src/test/mir-opt/unreachable_asm_2/rustc.main.UnreachablePropagation.diff b/src/test/mir-opt/unreachable_asm_2/unreachable_asm_2.main.UnreachablePropagation.diff similarity index 100% rename from src/test/mir-opt/unreachable_asm_2/rustc.main.UnreachablePropagation.diff rename to src/test/mir-opt/unreachable_asm_2/unreachable_asm_2.main.UnreachablePropagation.diff diff --git a/src/test/mir-opt/unreachable_diverging.rs b/src/test/mir-opt/unreachable_diverging.rs index 53c753f717b..bbf28efc7dd 100644 --- a/src/test/mir-opt/unreachable_diverging.rs +++ b/src/test/mir-opt/unreachable_diverging.rs @@ -8,7 +8,7 @@ fn loop_forever() { loop {} } -// EMIT_MIR rustc.main.UnreachablePropagation.diff +// EMIT_MIR unreachable_diverging.main.UnreachablePropagation.diff fn main() { let x = true; if let Some(bomb) = empty() { diff --git a/src/test/mir-opt/unreachable_diverging/rustc.main.UnreachablePropagation.diff b/src/test/mir-opt/unreachable_diverging/unreachable_diverging.main.UnreachablePropagation.diff similarity index 100% rename from src/test/mir-opt/unreachable_diverging/rustc.main.UnreachablePropagation.diff rename to src/test/mir-opt/unreachable_diverging/unreachable_diverging.main.UnreachablePropagation.diff diff --git a/src/test/mir-opt/unusual-item-types.rs b/src/test/mir-opt/unusual-item-types.rs index ffe8ca01dfb..249a851af25 100644 --- a/src/test/mir-opt/unusual-item-types.rs +++ b/src/test/mir-opt/unusual-item-types.rs @@ -5,25 +5,25 @@ struct A; -// EMIT_MIR rustc.{{impl}}-ASSOCIATED_CONSTANT.mir_map.0.mir +// EMIT_MIR unusual_item_types.{{impl}}-ASSOCIATED_CONSTANT.mir_map.0.mir impl A { const ASSOCIATED_CONSTANT: i32 = 2; } // See #59021 -// EMIT_MIR rustc.Test-X-{{constructor}}.mir_map.0.mir +// EMIT_MIR unusual_item_types.Test-X-{{constructor}}.mir_map.0.mir enum Test { X(usize), Y { a: usize }, } -// EMIT_MIR rustc.E-V-{{constant}}.mir_map.0.mir +// EMIT_MIR unusual_item_types.E-V-{{constant}}.mir_map.0.mir enum E { V = 5, } fn main() { let f = Test::X as fn(usize) -> Test; -// EMIT_MIR rustc.ptr-drop_in_place.std__vec__Vec_i32_.AddMovesForPackedDrops.before.mir +// EMIT_MIR core.ptr-drop_in_place.std__vec__Vec_i32_.AddMovesForPackedDrops.before.mir let v = Vec::::new(); } diff --git a/src/test/mir-opt/unusual-item-types/64bit/rustc.ptr-drop_in_place.std__vec__Vec_i32_.AddMovesForPackedDrops.before.mir b/src/test/mir-opt/unusual-item-types/64bit/core.ptr-drop_in_place.std__vec__Vec_i32_.AddMovesForPackedDrops.before.mir similarity index 100% rename from src/test/mir-opt/unusual-item-types/64bit/rustc.ptr-drop_in_place.std__vec__Vec_i32_.AddMovesForPackedDrops.before.mir rename to src/test/mir-opt/unusual-item-types/64bit/core.ptr-drop_in_place.std__vec__Vec_i32_.AddMovesForPackedDrops.before.mir diff --git a/src/test/mir-opt/unusual-item-types/64bit/rustc.E-V-{{constant}}.mir_map.0.mir b/src/test/mir-opt/unusual-item-types/64bit/unusual_item_types.E-V-{{constant}}.mir_map.0.mir similarity index 100% rename from src/test/mir-opt/unusual-item-types/64bit/rustc.E-V-{{constant}}.mir_map.0.mir rename to src/test/mir-opt/unusual-item-types/64bit/unusual_item_types.E-V-{{constant}}.mir_map.0.mir diff --git a/src/test/mir-opt/unusual-item-types/64bit/rustc.Test-X-{{constructor}}.mir_map.0.mir b/src/test/mir-opt/unusual-item-types/64bit/unusual_item_types.Test-X-{{constructor}}.mir_map.0.mir similarity index 100% rename from src/test/mir-opt/unusual-item-types/64bit/rustc.Test-X-{{constructor}}.mir_map.0.mir rename to src/test/mir-opt/unusual-item-types/64bit/unusual_item_types.Test-X-{{constructor}}.mir_map.0.mir diff --git a/src/test/mir-opt/unusual-item-types/64bit/rustc.{{impl}}-ASSOCIATED_CONSTANT.mir_map.0.mir b/src/test/mir-opt/unusual-item-types/64bit/unusual_item_types.{{impl}}-ASSOCIATED_CONSTANT.mir_map.0.mir similarity index 100% rename from src/test/mir-opt/unusual-item-types/64bit/rustc.{{impl}}-ASSOCIATED_CONSTANT.mir_map.0.mir rename to src/test/mir-opt/unusual-item-types/64bit/unusual_item_types.{{impl}}-ASSOCIATED_CONSTANT.mir_map.0.mir diff --git a/src/test/mir-opt/while-storage.rs b/src/test/mir-opt/while-storage.rs index 56f6c3380a7..afd083acb34 100644 --- a/src/test/mir-opt/while-storage.rs +++ b/src/test/mir-opt/while-storage.rs @@ -5,7 +5,7 @@ fn get_bool(c: bool) -> bool { c } -// EMIT_MIR rustc.while_loop.PreCodegen.after.mir +// EMIT_MIR while_storage.while_loop.PreCodegen.after.mir fn while_loop(c: bool) { while get_bool(c) { if get_bool(c) { diff --git a/src/test/mir-opt/while-storage/rustc.while_loop.PreCodegen.after.mir b/src/test/mir-opt/while-storage/while_storage.while_loop.PreCodegen.after.mir similarity index 100% rename from src/test/mir-opt/while-storage/rustc.while_loop.PreCodegen.after.mir rename to src/test/mir-opt/while-storage/while_storage.while_loop.PreCodegen.after.mir