Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
int
Rust
提交
86cf4617
R
Rust
项目概览
int
/
Rust
大约 1 年 前同步成功
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
Rust
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
86cf4617
编写于
8月 20, 2020
作者:
L
Lzu Tao
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Suppress MIR comments of Unit type
上级
f6bd2135
变更
116
展开全部
显示空白变更内容
内联
并排
Showing
116 changed file
with
43 addition
and
985 deletion
+43
-985
src/librustc_mir/util/pretty.rs
src/librustc_mir/util/pretty.rs
+4
-0
src/test/mir-opt/address_of.address_of_reborrow.SimplifyCfg-initial.after.mir
...ress_of.address_of_reborrow.SimplifyCfg-initial.after.mir
+0
-6
src/test/mir-opt/address_of.borrow_and_cast.SimplifyCfg-initial.after.mir
.../address_of.borrow_and_cast.SimplifyCfg-initial.after.mir
+0
-6
src/test/mir-opt/array_index_is_temporary.main.SimplifyCfg-elaborate-drops.after.mir.32bit
...emporary.main.SimplifyCfg-elaborate-drops.after.mir.32bit
+0
-6
src/test/mir-opt/array_index_is_temporary.main.SimplifyCfg-elaborate-drops.after.mir.64bit
...emporary.main.SimplifyCfg-elaborate-drops.after.mir.64bit
+0
-6
src/test/mir-opt/basic_assignment.main.SimplifyCfg-initial.after.mir
...r-opt/basic_assignment.main.SimplifyCfg-initial.after.mir
+0
-6
src/test/mir-opt/box_expr.main.ElaborateDrops.before.mir
src/test/mir-opt/box_expr.main.ElaborateDrops.before.mir
+0
-6
src/test/mir-opt/byte_slice.main.SimplifyCfg-elaborate-drops.after.mir
...opt/byte_slice.main.SimplifyCfg-elaborate-drops.after.mir
+0
-6
src/test/mir-opt/const_allocation.main.ConstProp.after.mir.32bit
...t/mir-opt/const_allocation.main.ConstProp.after.mir.32bit
+0
-6
src/test/mir-opt/const_allocation.main.ConstProp.after.mir.64bit
...t/mir-opt/const_allocation.main.ConstProp.after.mir.64bit
+0
-6
src/test/mir-opt/const_allocation2.main.ConstProp.after.mir.32bit
.../mir-opt/const_allocation2.main.ConstProp.after.mir.32bit
+0
-6
src/test/mir-opt/const_allocation2.main.ConstProp.after.mir.64bit
.../mir-opt/const_allocation2.main.ConstProp.after.mir.64bit
+0
-6
src/test/mir-opt/const_allocation3.main.ConstProp.after.mir.32bit
.../mir-opt/const_allocation3.main.ConstProp.after.mir.32bit
+0
-6
src/test/mir-opt/const_allocation3.main.ConstProp.after.mir.64bit
.../mir-opt/const_allocation3.main.ConstProp.after.mir.64bit
+0
-6
src/test/mir-opt/const_prop/aggregate.main.ConstProp.diff
src/test/mir-opt/const_prop/aggregate.main.ConstProp.diff
+0
-6
src/test/mir-opt/const_prop/array_index.main.ConstProp.diff.32bit
.../mir-opt/const_prop/array_index.main.ConstProp.diff.32bit
+0
-6
src/test/mir-opt/const_prop/array_index.main.ConstProp.diff.64bit
.../mir-opt/const_prop/array_index.main.ConstProp.diff.64bit
+0
-6
src/test/mir-opt/const_prop/bad_op_div_by_zero.main.ConstProp.diff
...mir-opt/const_prop/bad_op_div_by_zero.main.ConstProp.diff
+0
-6
src/test/mir-opt/const_prop/bad_op_mod_by_zero.main.ConstProp.diff
...mir-opt/const_prop/bad_op_mod_by_zero.main.ConstProp.diff
+0
-6
src/test/mir-opt/const_prop/bad_op_unsafe_oob_for_slices.main.ConstProp.diff.32bit
...op/bad_op_unsafe_oob_for_slices.main.ConstProp.diff.32bit
+0
-6
src/test/mir-opt/const_prop/bad_op_unsafe_oob_for_slices.main.ConstProp.diff.64bit
...op/bad_op_unsafe_oob_for_slices.main.ConstProp.diff.64bit
+0
-6
src/test/mir-opt/const_prop/boxes.main.ConstProp.diff
src/test/mir-opt/const_prop/boxes.main.ConstProp.diff
+0
-6
src/test/mir-opt/const_prop/cast.main.ConstProp.diff
src/test/mir-opt/const_prop/cast.main.ConstProp.diff
+0
-6
src/test/mir-opt/const_prop/checked_add.main.ConstProp.diff
src/test/mir-opt/const_prop/checked_add.main.ConstProp.diff
+0
-6
src/test/mir-opt/const_prop/const_prop_fails_gracefully.main.ConstProp.diff
...onst_prop/const_prop_fails_gracefully.main.ConstProp.diff
+0
-6
src/test/mir-opt/const_prop/control_flow_simplification.hello.ConstProp.diff
...nst_prop/control_flow_simplification.hello.ConstProp.diff
+0
-6
src/test/mir-opt/const_prop/control_flow_simplification.hello.PreCodegen.before.mir
...p/control_flow_simplification.hello.PreCodegen.before.mir
+0
-6
src/test/mir-opt/const_prop/discriminant.main.ConstProp.diff.32bit
...mir-opt/const_prop/discriminant.main.ConstProp.diff.32bit
+0
-6
src/test/mir-opt/const_prop/discriminant.main.ConstProp.diff.64bit
...mir-opt/const_prop/discriminant.main.ConstProp.diff.64bit
+0
-6
src/test/mir-opt/const_prop/indirect.main.ConstProp.diff
src/test/mir-opt/const_prop/indirect.main.ConstProp.diff
+0
-6
src/test/mir-opt/const_prop/issue_66971.main.ConstProp.diff
src/test/mir-opt/const_prop/issue_66971.main.ConstProp.diff
+0
-12
src/test/mir-opt/const_prop/issue_67019.main.ConstProp.diff
src/test/mir-opt/const_prop/issue_67019.main.ConstProp.diff
+0
-6
src/test/mir-opt/const_prop/large_array_index.main.ConstProp.diff.32bit
...pt/const_prop/large_array_index.main.ConstProp.diff.32bit
+0
-6
src/test/mir-opt/const_prop/large_array_index.main.ConstProp.diff.64bit
...pt/const_prop/large_array_index.main.ConstProp.diff.64bit
+0
-6
src/test/mir-opt/const_prop/mutable_variable.main.ConstProp.diff
...t/mir-opt/const_prop/mutable_variable.main.ConstProp.diff
+0
-6
src/test/mir-opt/const_prop/mutable_variable_aggregate.main.ConstProp.diff
...const_prop/mutable_variable_aggregate.main.ConstProp.diff
+0
-6
src/test/mir-opt/const_prop/mutable_variable_aggregate_mut_ref.main.ConstProp.diff
...op/mutable_variable_aggregate_mut_ref.main.ConstProp.diff
+0
-6
src/test/mir-opt/const_prop/mutable_variable_aggregate_partial_read.main.ConstProp.diff
...table_variable_aggregate_partial_read.main.ConstProp.diff
+0
-6
src/test/mir-opt/const_prop/mutable_variable_no_prop.main.ConstProp.diff
...t/const_prop/mutable_variable_no_prop.main.ConstProp.diff
+0
-12
src/test/mir-opt/const_prop/mutable_variable_unprop_assign.main.ConstProp.diff
...t_prop/mutable_variable_unprop_assign.main.ConstProp.diff
+0
-6
src/test/mir-opt/const_prop/optimizes_into_variable.main.ConstProp.diff.32bit
...st_prop/optimizes_into_variable.main.ConstProp.diff.32bit
+0
-6
src/test/mir-opt/const_prop/optimizes_into_variable.main.ConstProp.diff.64bit
...st_prop/optimizes_into_variable.main.ConstProp.diff.64bit
+0
-6
src/test/mir-opt/const_prop/optimizes_into_variable.main.SimplifyLocals.after.mir.32bit
...timizes_into_variable.main.SimplifyLocals.after.mir.32bit
+0
-6
src/test/mir-opt/const_prop/optimizes_into_variable.main.SimplifyLocals.after.mir.64bit
...timizes_into_variable.main.SimplifyLocals.after.mir.64bit
+0
-6
src/test/mir-opt/const_prop/read_immutable_static.main.ConstProp.diff
...-opt/const_prop/read_immutable_static.main.ConstProp.diff
+0
-6
src/test/mir-opt/const_prop/ref_deref.main.ConstProp.diff
src/test/mir-opt/const_prop/ref_deref.main.ConstProp.diff
+0
-6
src/test/mir-opt/const_prop/ref_deref.main.PromoteTemps.diff
src/test/mir-opt/const_prop/ref_deref.main.PromoteTemps.diff
+0
-6
src/test/mir-opt/const_prop/ref_deref_project.main.ConstProp.diff
.../mir-opt/const_prop/ref_deref_project.main.ConstProp.diff
+0
-6
src/test/mir-opt/const_prop/ref_deref_project.main.PromoteTemps.diff
...r-opt/const_prop/ref_deref_project.main.PromoteTemps.diff
+0
-6
src/test/mir-opt/const_prop/reify_fn_ptr.main.ConstProp.diff
src/test/mir-opt/const_prop/reify_fn_ptr.main.ConstProp.diff
+0
-6
src/test/mir-opt/const_prop/repeat.main.ConstProp.diff.32bit
src/test/mir-opt/const_prop/repeat.main.ConstProp.diff.32bit
+0
-6
src/test/mir-opt/const_prop/repeat.main.ConstProp.diff.64bit
src/test/mir-opt/const_prop/repeat.main.ConstProp.diff.64bit
+0
-6
src/test/mir-opt/const_prop/scalar_literal_propagation.main.ConstProp.diff
...const_prop/scalar_literal_propagation.main.ConstProp.diff
+0
-6
src/test/mir-opt/const_prop/slice_len.main.ConstProp.diff.32bit
...st/mir-opt/const_prop/slice_len.main.ConstProp.diff.32bit
+0
-6
src/test/mir-opt/const_prop/slice_len.main.ConstProp.diff.64bit
...st/mir-opt/const_prop/slice_len.main.ConstProp.diff.64bit
+0
-6
src/test/mir-opt/const_prop/tuple_literal_propagation.main.ConstProp.diff
.../const_prop/tuple_literal_propagation.main.ConstProp.diff
+0
-6
src/test/mir-opt/const_prop_miscompile.bar.ConstProp.diff
src/test/mir-opt/const_prop_miscompile.bar.ConstProp.diff
+0
-12
src/test/mir-opt/const_prop_miscompile.foo.ConstProp.diff
src/test/mir-opt/const_prop_miscompile.foo.ConstProp.diff
+0
-6
src/test/mir-opt/copy_propagation_arg.bar.CopyPropagation.diff
...est/mir-opt/copy_propagation_arg.bar.CopyPropagation.diff
+0
-6
src/test/mir-opt/copy_propagation_arg.baz.CopyPropagation.diff
...est/mir-opt/copy_propagation_arg.baz.CopyPropagation.diff
+0
-6
src/test/mir-opt/copy_propagation_arg.foo.CopyPropagation.diff
...est/mir-opt/copy_propagation_arg.foo.CopyPropagation.diff
+0
-6
src/test/mir-opt/generator_storage_dead_unwind.main-{{closure}}.StateTransform.before.mir
...ge_dead_unwind.main-{{closure}}.StateTransform.before.mir
+0
-6
src/test/mir-opt/generator_tiny.main-{{closure}}.generator_resume.0.mir
...pt/generator_tiny.main-{{closure}}.generator_resume.0.mir
+0
-6
src/test/mir-opt/inline/inline_into_box_place.main.Inline.diff.32bit
...r-opt/inline/inline_into_box_place.main.Inline.diff.32bit
+17
-25
src/test/mir-opt/inline/inline_into_box_place.main.Inline.diff.64bit
...r-opt/inline/inline_into_box_place.main.Inline.diff.64bit
+17
-25
src/test/mir-opt/inline/inline_specialization.main.Inline.diff
...est/mir-opt/inline/inline_specialization.main.Inline.diff
+0
-6
src/test/mir-opt/instrument_coverage.main.InstrumentCoverage.diff
.../mir-opt/instrument_coverage.main.InstrumentCoverage.diff
+0
-12
src/test/mir-opt/issue_38669.main.SimplifyCfg-initial.after.mir
...st/mir-opt/issue_38669.main.SimplifyCfg-initial.after.mir
+0
-18
src/test/mir-opt/issue_41110.main.ElaborateDrops.after.mir
src/test/mir-opt/issue_41110.main.ElaborateDrops.after.mir
+0
-6
src/test/mir-opt/issue_41110.test.ElaborateDrops.after.mir
src/test/mir-opt/issue_41110.test.ElaborateDrops.after.mir
+0
-6
src/test/mir-opt/issue_41888.main.ElaborateDrops.after.mir
src/test/mir-opt/issue_41888.main.ElaborateDrops.after.mir
+0
-18
src/test/mir-opt/issue_49232.main.mir_map.0.mir
src/test/mir-opt/issue_49232.main.mir_map.0.mir
+0
-12
src/test/mir-opt/issue_72181.main.mir_map.0.mir.32bit
src/test/mir-opt/issue_72181.main.mir_map.0.mir.32bit
+0
-6
src/test/mir-opt/issue_72181.main.mir_map.0.mir.64bit
src/test/mir-opt/issue_72181.main.mir_map.0.mir.64bit
+0
-6
src/test/mir-opt/issue_73223.main.PreCodegen.diff.32bit
src/test/mir-opt/issue_73223.main.PreCodegen.diff.32bit
+0
-6
src/test/mir-opt/issue_73223.main.PreCodegen.diff.64bit
src/test/mir-opt/issue_73223.main.PreCodegen.diff.64bit
+0
-6
src/test/mir-opt/issue_73223.main.SimplifyArmIdentity.diff.32bit
...t/mir-opt/issue_73223.main.SimplifyArmIdentity.diff.32bit
+0
-18
src/test/mir-opt/issue_73223.main.SimplifyArmIdentity.diff.64bit
...t/mir-opt/issue_73223.main.SimplifyArmIdentity.diff.64bit
+0
-18
src/test/mir-opt/loop_test.main.SimplifyCfg-promote-consts.after.mir
...r-opt/loop_test.main.SimplifyCfg-promote-consts.after.mir
+0
-12
src/test/mir-opt/match_false_edges.full_tested_match.PromoteTemps.after.mir
...atch_false_edges.full_tested_match.PromoteTemps.after.mir
+0
-6
src/test/mir-opt/match_false_edges.full_tested_match2.PromoteTemps.before.mir
...ch_false_edges.full_tested_match2.PromoteTemps.before.mir
+0
-6
src/test/mir-opt/match_false_edges.main.PromoteTemps.before.mir
...st/mir-opt/match_false_edges.main.PromoteTemps.before.mir
+0
-6
src/test/mir-opt/match_test.main.SimplifyCfg-initial.after.mir
...est/mir-opt/match_test.main.SimplifyCfg-initial.after.mir
+0
-6
src/test/mir-opt/matches_reduce_branches.foo.MatchBranchSimplification.diff.32bit
..._reduce_branches.foo.MatchBranchSimplification.diff.32bit
+0
-6
src/test/mir-opt/matches_reduce_branches.foo.MatchBranchSimplification.diff.64bit
..._reduce_branches.foo.MatchBranchSimplification.diff.64bit
+0
-6
src/test/mir-opt/nll/region_subtyping_basic.main.nll.0.mir.32bit
...t/mir-opt/nll/region_subtyping_basic.main.nll.0.mir.32bit
+0
-12
src/test/mir-opt/nll/region_subtyping_basic.main.nll.0.mir.64bit
...t/mir-opt/nll/region_subtyping_basic.main.nll.0.mir.64bit
+0
-12
src/test/mir-opt/no_spurious_drop_after_call.main.ElaborateDrops.before.mir
...o_spurious_drop_after_call.main.ElaborateDrops.before.mir
+0
-6
src/test/mir-opt/packed_struct_drop_aligned.main.SimplifyCfg-elaborate-drops.after.mir.32bit
..._aligned.main.SimplifyCfg-elaborate-drops.after.mir.32bit
+0
-6
src/test/mir-opt/packed_struct_drop_aligned.main.SimplifyCfg-elaborate-drops.after.mir.64bit
..._aligned.main.SimplifyCfg-elaborate-drops.after.mir.64bit
+0
-6
src/test/mir-opt/retag.main.SimplifyCfg-elaborate-drops.after.mir
.../mir-opt/retag.main.SimplifyCfg-elaborate-drops.after.mir
+0
-12
src/test/mir-opt/simplify_arm_identity.main.SimplifyArmIdentity.diff.32bit
...simplify_arm_identity.main.SimplifyArmIdentity.diff.32bit
+0
-6
src/test/mir-opt/simplify_arm_identity.main.SimplifyArmIdentity.diff.64bit
...simplify_arm_identity.main.SimplifyArmIdentity.diff.64bit
+0
-6
src/test/mir-opt/simplify_cfg.main.SimplifyCfg-early-opt.diff
...test/mir-opt/simplify_cfg.main.SimplifyCfg-early-opt.diff
+0
-12
src/test/mir-opt/simplify_cfg.main.SimplifyCfg-initial.diff
src/test/mir-opt/simplify_cfg.main.SimplifyCfg-initial.diff
+0
-12
src/test/mir-opt/simplify_if.main.SimplifyBranches-after-const-prop.diff
...t/simplify_if.main.SimplifyBranches-after-const-prop.diff
+0
-12
src/test/mir-opt/simplify_locals_fixedpoint.foo.SimplifyLocals.diff
...ir-opt/simplify_locals_fixedpoint.foo.SimplifyLocals.diff
+0
-18
src/test/mir-opt/simplify_locals_removes_unused_consts.main.SimplifyLocals.diff
...ify_locals_removes_unused_consts.main.SimplifyLocals.diff
+3
-33
src/test/mir-opt/simplify_match.main.ConstProp.diff
src/test/mir-opt/simplify_match.main.ConstProp.diff
+0
-6
src/test/mir-opt/simplify_try_if_let.{{impl}}-append.SimplifyArmIdentity.diff
...plify_try_if_let.{{impl}}-append.SimplifyArmIdentity.diff
+0
-18
src/test/mir-opt/storage_ranges.main.nll.0.mir
src/test/mir-opt/storage_ranges.main.nll.0.mir
+0
-12
src/test/mir-opt/tls_access.main.SimplifyCfg-final.after.mir
src/test/mir-opt/tls_access.main.SimplifyCfg-final.after.mir
+0
-6
src/test/mir-opt/uniform_array_move_out.move_out_by_subslice.mir_map.0.mir
...uniform_array_move_out.move_out_by_subslice.mir_map.0.mir
+0
-6
src/test/mir-opt/uniform_array_move_out.move_out_from_end.mir_map.0.mir
...pt/uniform_array_move_out.move_out_from_end.mir_map.0.mir
+0
-6
src/test/mir-opt/uninhabited_enum.process_void.SimplifyLocals.after.mir
...pt/uninhabited_enum.process_void.SimplifyLocals.after.mir
+0
-6
src/test/mir-opt/uninhabited_enum_branching.main.SimplifyCfg-after-uninhabited-enum-branching.after.mir
...in.SimplifyCfg-after-uninhabited-enum-branching.after.mir
+0
-6
src/test/mir-opt/uninhabited_enum_branching.main.UninhabitedEnumBranching.diff
...habited_enum_branching.main.UninhabitedEnumBranching.diff
+0
-6
src/test/mir-opt/unreachable.main.UnreachablePropagation.diff
...test/mir-opt/unreachable.main.UnreachablePropagation.diff
+0
-18
src/test/mir-opt/unreachable_asm.main.UnreachablePropagation.diff
.../mir-opt/unreachable_asm.main.UnreachablePropagation.diff
+0
-24
src/test/mir-opt/unreachable_asm_2.main.UnreachablePropagation.diff
...ir-opt/unreachable_asm_2.main.UnreachablePropagation.diff
+0
-30
src/test/mir-opt/unreachable_diverging.main.UnreachablePropagation.diff
...pt/unreachable_diverging.main.UnreachablePropagation.diff
+2
-14
src/test/mir-opt/while_let_loops.change_loop_body.ConstProp.diff.32bit
...opt/while_let_loops.change_loop_body.ConstProp.diff.32bit
+0
-12
src/test/mir-opt/while_let_loops.change_loop_body.ConstProp.diff.64bit
...opt/while_let_loops.change_loop_body.ConstProp.diff.64bit
+0
-12
src/test/mir-opt/while_let_loops.change_loop_body.PreCodegen.after.mir.32bit
...ile_let_loops.change_loop_body.PreCodegen.after.mir.32bit
+0
-6
src/test/mir-opt/while_let_loops.change_loop_body.PreCodegen.after.mir.64bit
...ile_let_loops.change_loop_body.PreCodegen.after.mir.64bit
+0
-6
src/test/mir-opt/while_storage.while_loop.PreCodegen.after.mir
...est/mir-opt/while_storage.while_loop.PreCodegen.after.mir
+0
-12
未找到文件。
src/librustc_mir/util/pretty.rs
浏览文件 @
86cf4617
...
...
@@ -389,6 +389,8 @@ fn visit_constant(&mut self, constant: &Constant<'tcx>, location: Location) {
let
Constant
{
span
,
user_ty
,
literal
}
=
constant
;
match
literal
.ty.kind
{
ty
::
Int
(
_
)
|
ty
::
Uint
(
_
)
|
ty
::
Bool
|
ty
::
Char
=>
{}
// Unit type
ty
::
Tuple
(
tys
)
if
tys
.is_empty
()
=>
{}
_
=>
{
self
.push
(
"mir::Constant"
);
self
.push
(
&
format!
(
"+ span: {}"
,
self
.tcx.sess
.source_map
()
.span_to_string
(
*
span
)));
...
...
@@ -405,6 +407,8 @@ fn visit_const(&mut self, constant: &&'tcx ty::Const<'tcx>, _: Location) {
let
ty
::
Const
{
ty
,
val
,
..
}
=
constant
;
match
ty
.kind
{
ty
::
Int
(
_
)
|
ty
::
Uint
(
_
)
|
ty
::
Bool
|
ty
::
Char
=>
{}
// Unit type
ty
::
Tuple
(
tys
)
if
tys
.is_empty
()
=>
{}
ty
::
FnDef
(
..
)
=>
{}
_
=>
{
self
.push
(
"ty::Const"
);
...
...
src/test/mir-opt/address_of.address_of_reborrow.SimplifyCfg-initial.after.mir
浏览文件 @
86cf4617
...
...
@@ -287,12 +287,6 @@ fn address_of_reborrow() -> () {
FakeRead(ForLet, _47); // scope 13 at $DIR/address-of.rs:36:9: 36:10
AscribeUserType(_47, o, UserTypeProjection { base: UserType(29), projs: [] }); // scope 13 at $DIR/address-of.rs:36:12: 36:22
_0 = const (); // scope 0 at $DIR/address-of.rs:3:26: 37:2
// ty::Const
// + ty: ()
// + val: Value(Scalar(<ZST>))
// mir::Constant
// + span: $DIR/address-of.rs:3:26: 37:2
// + literal: Const { ty: (), val: Value(Scalar(<ZST>)) }
StorageDead(_47); // scope 13 at $DIR/address-of.rs:37:1: 37:2
StorageDead(_45); // scope 12 at $DIR/address-of.rs:37:1: 37:2
StorageDead(_44); // scope 11 at $DIR/address-of.rs:37:1: 37:2
...
...
src/test/mir-opt/address_of.borrow_and_cast.SimplifyCfg-initial.after.mir
浏览文件 @
86cf4617
...
...
@@ -39,12 +39,6 @@ fn borrow_and_cast(_1: i32) -> () {
FakeRead(ForLet, _6); // scope 2 at $DIR/address-of.rs:44:9: 44:10
StorageDead(_7); // scope 2 at $DIR/address-of.rs:44:31: 44:32
_0 = const (); // scope 0 at $DIR/address-of.rs:41:32: 45:2
// ty::Const
// + ty: ()
// + val: Value(Scalar(<ZST>))
// mir::Constant
// + span: $DIR/address-of.rs:41:32: 45:2
// + literal: Const { ty: (), val: Value(Scalar(<ZST>)) }
StorageDead(_6); // scope 2 at $DIR/address-of.rs:45:1: 45:2
StorageDead(_4); // scope 1 at $DIR/address-of.rs:45:1: 45:2
StorageDead(_2); // scope 0 at $DIR/address-of.rs:45:1: 45:2
...
...
src/test/mir-opt/array_index_is_temporary.main.SimplifyCfg-elaborate-drops.after.mir.32bit
浏览文件 @
86cf4617
...
...
@@ -56,12 +56,6 @@ fn main() -> () {
StorageDead(_5); // scope 3 at $DIR/array-index-is-temporary.rs:16:28: 16:29
StorageDead(_7); // scope 3 at $DIR/array-index-is-temporary.rs:16:29: 16:30
_0 = const (); // scope 0 at $DIR/array-index-is-temporary.rs:12:11: 17:2
// ty::Const
// + ty: ()
// + val: Value(Scalar(<ZST>))
// mir::Constant
// + span: $DIR/array-index-is-temporary.rs:12:11: 17:2
// + literal: Const { ty: (), val: Value(Scalar(<ZST>)) }
StorageDead(_3); // scope 2 at $DIR/array-index-is-temporary.rs:17:1: 17:2
StorageDead(_2); // scope 1 at $DIR/array-index-is-temporary.rs:17:1: 17:2
StorageDead(_1); // scope 0 at $DIR/array-index-is-temporary.rs:17:1: 17:2
...
...
src/test/mir-opt/array_index_is_temporary.main.SimplifyCfg-elaborate-drops.after.mir.64bit
浏览文件 @
86cf4617
...
...
@@ -56,12 +56,6 @@ fn main() -> () {
StorageDead(_5); // scope 3 at $DIR/array-index-is-temporary.rs:16:28: 16:29
StorageDead(_7); // scope 3 at $DIR/array-index-is-temporary.rs:16:29: 16:30
_0 = const (); // scope 0 at $DIR/array-index-is-temporary.rs:12:11: 17:2
// ty::Const
// + ty: ()
// + val: Value(Scalar(<ZST>))
// mir::Constant
// + span: $DIR/array-index-is-temporary.rs:12:11: 17:2
// + literal: Const { ty: (), val: Value(Scalar(<ZST>)) }
StorageDead(_3); // scope 2 at $DIR/array-index-is-temporary.rs:17:1: 17:2
StorageDead(_2); // scope 1 at $DIR/array-index-is-temporary.rs:17:1: 17:2
StorageDead(_1); // scope 0 at $DIR/array-index-is-temporary.rs:17:1: 17:2
...
...
src/test/mir-opt/basic_assignment.main.SimplifyCfg-initial.after.mir
浏览文件 @
86cf4617
...
...
@@ -67,12 +67,6 @@ fn main() -> () {
bb6: {
StorageDead(_6); // scope 4 at $DIR/basic_assignment.rs:23:19: 23:20
_0 = const (); // scope 0 at $DIR/basic_assignment.rs:10:11: 24:2
// ty::Const
// + ty: ()
// + val: Value(Scalar(<ZST>))
// mir::Constant
// + span: $DIR/basic_assignment.rs:10:11: 24:2
// + literal: Const { ty: (), val: Value(Scalar(<ZST>)) }
drop(_5) -> [return: bb7, unwind: bb3]; // scope 3 at $DIR/basic_assignment.rs:24:1: 24:2
}
...
...
src/test/mir-opt/box_expr.main.ElaborateDrops.before.mir
浏览文件 @
86cf4617
...
...
@@ -48,12 +48,6 @@ fn main() -> () {
StorageDead(_4); // scope 1 at $DIR/box_expr.rs:8:11: 8:12
StorageDead(_3); // scope 1 at $DIR/box_expr.rs:8:12: 8:13
_0 = const (); // scope 0 at $DIR/box_expr.rs:6:11: 9:2
// ty::Const
// + ty: ()
// + val: Value(Scalar(<ZST>))
// mir::Constant
// + span: $DIR/box_expr.rs:6:11: 9:2
// + literal: Const { ty: (), val: Value(Scalar(<ZST>)) }
drop(_1) -> bb8; // scope 0 at $DIR/box_expr.rs:9:1: 9:2
}
...
...
src/test/mir-opt/byte_slice.main.SimplifyCfg-elaborate-drops.after.mir
浏览文件 @
86cf4617
...
...
@@ -23,12 +23,6 @@ fn main() -> () {
StorageLive(_2); // scope 1 at $DIR/byte_slice.rs:6:9: 6:10
_2 = [const 5_u8, const 120_u8]; // scope 1 at $DIR/byte_slice.rs:6:13: 6:24
_0 = const (); // scope 0 at $DIR/byte_slice.rs:4:11: 7:2
// ty::Const
// + ty: ()
// + val: Value(Scalar(<ZST>))
// mir::Constant
// + span: $DIR/byte_slice.rs:4:11: 7:2
// + literal: Const { ty: (), val: Value(Scalar(<ZST>)) }
StorageDead(_2); // scope 1 at $DIR/byte_slice.rs:7:1: 7:2
StorageDead(_1); // scope 0 at $DIR/byte_slice.rs:7:1: 7:2
return; // scope 0 at $DIR/byte_slice.rs:7:2: 7:2
...
...
src/test/mir-opt/const_allocation.main.ConstProp.after.mir.32bit
浏览文件 @
86cf4617
...
...
@@ -19,12 +19,6 @@ fn main() -> () {
StorageDead(_2); // scope 0 at $DIR/const_allocation.rs:8:8: 8:9
StorageDead(_1); // scope 0 at $DIR/const_allocation.rs:8:8: 8:9
_0 = const (); // scope 0 at $DIR/const_allocation.rs:7:11: 9:2
// ty::Const
// + ty: ()
// + val: Value(Scalar(<ZST>))
// mir::Constant
// + span: $DIR/const_allocation.rs:7:11: 9:2
// + literal: Const { ty: (), val: Value(Scalar(<ZST>)) }
return; // scope 0 at $DIR/const_allocation.rs:9:2: 9:2
}
}
...
...
src/test/mir-opt/const_allocation.main.ConstProp.after.mir.64bit
浏览文件 @
86cf4617
...
...
@@ -19,12 +19,6 @@ fn main() -> () {
StorageDead(_2); // scope 0 at $DIR/const_allocation.rs:8:8: 8:9
StorageDead(_1); // scope 0 at $DIR/const_allocation.rs:8:8: 8:9
_0 = const (); // scope 0 at $DIR/const_allocation.rs:7:11: 9:2
// ty::Const
// + ty: ()
// + val: Value(Scalar(<ZST>))
// mir::Constant
// + span: $DIR/const_allocation.rs:7:11: 9:2
// + literal: Const { ty: (), val: Value(Scalar(<ZST>)) }
return; // scope 0 at $DIR/const_allocation.rs:9:2: 9:2
}
}
...
...
src/test/mir-opt/const_allocation2.main.ConstProp.after.mir.32bit
浏览文件 @
86cf4617
...
...
@@ -19,12 +19,6 @@ fn main() -> () {
StorageDead(_2); // scope 0 at $DIR/const_allocation2.rs:5:8: 5:9
StorageDead(_1); // scope 0 at $DIR/const_allocation2.rs:5:8: 5:9
_0 = const (); // scope 0 at $DIR/const_allocation2.rs:4:11: 6:2
// ty::Const
// + ty: ()
// + val: Value(Scalar(<ZST>))
// mir::Constant
// + span: $DIR/const_allocation2.rs:4:11: 6:2
// + literal: Const { ty: (), val: Value(Scalar(<ZST>)) }
return; // scope 0 at $DIR/const_allocation2.rs:6:2: 6:2
}
}
...
...
src/test/mir-opt/const_allocation2.main.ConstProp.after.mir.64bit
浏览文件 @
86cf4617
...
...
@@ -19,12 +19,6 @@ fn main() -> () {
StorageDead(_2); // scope 0 at $DIR/const_allocation2.rs:5:8: 5:9
StorageDead(_1); // scope 0 at $DIR/const_allocation2.rs:5:8: 5:9
_0 = const (); // scope 0 at $DIR/const_allocation2.rs:4:11: 6:2
// ty::Const
// + ty: ()
// + val: Value(Scalar(<ZST>))
// mir::Constant
// + span: $DIR/const_allocation2.rs:4:11: 6:2
// + literal: Const { ty: (), val: Value(Scalar(<ZST>)) }
return; // scope 0 at $DIR/const_allocation2.rs:6:2: 6:2
}
}
...
...
src/test/mir-opt/const_allocation3.main.ConstProp.after.mir.32bit
浏览文件 @
86cf4617
...
...
@@ -19,12 +19,6 @@ fn main() -> () {
StorageDead(_2); // scope 0 at $DIR/const_allocation3.rs:5:8: 5:9
StorageDead(_1); // scope 0 at $DIR/const_allocation3.rs:5:8: 5:9
_0 = const (); // scope 0 at $DIR/const_allocation3.rs:4:11: 6:2
// ty::Const
// + ty: ()
// + val: Value(Scalar(<ZST>))
// mir::Constant
// + span: $DIR/const_allocation3.rs:4:11: 6:2
// + literal: Const { ty: (), val: Value(Scalar(<ZST>)) }
return; // scope 0 at $DIR/const_allocation3.rs:6:2: 6:2
}
}
...
...
src/test/mir-opt/const_allocation3.main.ConstProp.after.mir.64bit
浏览文件 @
86cf4617
...
...
@@ -19,12 +19,6 @@ fn main() -> () {
StorageDead(_2); // scope 0 at $DIR/const_allocation3.rs:5:8: 5:9
StorageDead(_1); // scope 0 at $DIR/const_allocation3.rs:5:8: 5:9
_0 = const (); // scope 0 at $DIR/const_allocation3.rs:4:11: 6:2
// ty::Const
// + ty: ()
// + val: Value(Scalar(<ZST>))
// mir::Constant
// + span: $DIR/const_allocation3.rs:4:11: 6:2
// + literal: Const { ty: (), val: Value(Scalar(<ZST>)) }
return; // scope 0 at $DIR/const_allocation3.rs:6:2: 6:2
}
}
...
...
src/test/mir-opt/const_prop/aggregate.main.ConstProp.diff
浏览文件 @
86cf4617
...
...
@@ -24,12 +24,6 @@
StorageDead(_2); // scope 0 at $DIR/aggregate.rs:5:27: 5:28
StorageDead(_3); // scope 0 at $DIR/aggregate.rs:5:28: 5:29
_0 = const (); // scope 0 at $DIR/aggregate.rs:4:11: 6:2
// ty::Const
// + ty: ()
// + val: Value(Scalar(<ZST>))
// mir::Constant
// + span: $DIR/aggregate.rs:4:11: 6:2
// + literal: Const { ty: (), val: Value(Scalar(<ZST>)) }
StorageDead(_1); // scope 0 at $DIR/aggregate.rs:6:1: 6:2
return; // scope 0 at $DIR/aggregate.rs:6:2: 6:2
}
...
...
src/test/mir-opt/const_prop/array_index.main.ConstProp.diff.32bit
浏览文件 @
86cf4617
...
...
@@ -31,12 +31,6 @@
StorageDead(_3); // scope 0 at $DIR/array_index.rs:5:33: 5:34
StorageDead(_2); // scope 0 at $DIR/array_index.rs:5:33: 5:34
_0 = const (); // scope 0 at $DIR/array_index.rs:4:11: 6:2
// ty::Const
// + ty: ()
// + val: Value(Scalar(<ZST>))
// mir::Constant
// + span: $DIR/array_index.rs:4:11: 6:2
// + literal: Const { ty: (), val: Value(Scalar(<ZST>)) }
StorageDead(_1); // scope 0 at $DIR/array_index.rs:6:1: 6:2
return; // scope 0 at $DIR/array_index.rs:6:2: 6:2
}
...
...
src/test/mir-opt/const_prop/array_index.main.ConstProp.diff.64bit
浏览文件 @
86cf4617
...
...
@@ -31,12 +31,6 @@
StorageDead(_3); // scope 0 at $DIR/array_index.rs:5:33: 5:34
StorageDead(_2); // scope 0 at $DIR/array_index.rs:5:33: 5:34
_0 = const (); // scope 0 at $DIR/array_index.rs:4:11: 6:2
// ty::Const
// + ty: ()
// + val: Value(Scalar(<ZST>))
// mir::Constant
// + span: $DIR/array_index.rs:4:11: 6:2
// + literal: Const { ty: (), val: Value(Scalar(<ZST>)) }
StorageDead(_1); // scope 0 at $DIR/array_index.rs:6:1: 6:2
return; // scope 0 at $DIR/array_index.rs:6:2: 6:2
}
...
...
src/test/mir-opt/const_prop/bad_op_div_by_zero.main.ConstProp.diff
浏览文件 @
86cf4617
...
...
@@ -46,12 +46,6 @@
+ _2 = Div(const 1_i32, const 0_i32); // scope 1 at $DIR/bad_op_div_by_zero.rs:5:14: 5:19
StorageDead(_3); // scope 1 at $DIR/bad_op_div_by_zero.rs:5:18: 5:19
_0 = const (); // scope 0 at $DIR/bad_op_div_by_zero.rs:3:11: 6:2
// ty::Const
// + ty: ()
// + val: Value(Scalar(<ZST>))
// mir::Constant
// + span: $DIR/bad_op_div_by_zero.rs:3:11: 6:2
// + literal: Const { ty: (), val: Value(Scalar(<ZST>)) }
StorageDead(_2); // scope 1 at $DIR/bad_op_div_by_zero.rs:6:1: 6:2
StorageDead(_1); // scope 0 at $DIR/bad_op_div_by_zero.rs:6:1: 6:2
return; // scope 0 at $DIR/bad_op_div_by_zero.rs:6:2: 6:2
...
...
src/test/mir-opt/const_prop/bad_op_mod_by_zero.main.ConstProp.diff
浏览文件 @
86cf4617
...
...
@@ -46,12 +46,6 @@
+ _2 = Rem(const 1_i32, const 0_i32); // scope 1 at $DIR/bad_op_mod_by_zero.rs:5:14: 5:19
StorageDead(_3); // scope 1 at $DIR/bad_op_mod_by_zero.rs:5:18: 5:19
_0 = const (); // scope 0 at $DIR/bad_op_mod_by_zero.rs:3:11: 6:2
// ty::Const
// + ty: ()
// + val: Value(Scalar(<ZST>))
// mir::Constant
// + span: $DIR/bad_op_mod_by_zero.rs:3:11: 6:2
// + literal: Const { ty: (), val: Value(Scalar(<ZST>)) }
StorageDead(_2); // scope 1 at $DIR/bad_op_mod_by_zero.rs:6:1: 6:2
StorageDead(_1); // scope 0 at $DIR/bad_op_mod_by_zero.rs:6:1: 6:2
return; // scope 0 at $DIR/bad_op_mod_by_zero.rs:6:2: 6:2
...
...
src/test/mir-opt/const_prop/bad_op_unsafe_oob_for_slices.main.ConstProp.diff.32bit
浏览文件 @
86cf4617
...
...
@@ -51,12 +51,6 @@
_5 = (*_1)[_6]; // scope 2 at $DIR/bad_op_unsafe_oob_for_slices.rs:7:18: 7:25
StorageDead(_6); // scope 2 at $DIR/bad_op_unsafe_oob_for_slices.rs:7:25: 7:26
_0 = const (); // scope 2 at $DIR/bad_op_unsafe_oob_for_slices.rs:6:5: 8:6
// ty::Const
// + ty: ()
// + val: Value(Scalar(<ZST>))
// mir::Constant
// + span: $DIR/bad_op_unsafe_oob_for_slices.rs:6:5: 8:6
// + literal: Const { ty: (), val: Value(Scalar(<ZST>)) }
StorageDead(_5); // scope 2 at $DIR/bad_op_unsafe_oob_for_slices.rs:8:5: 8:6
StorageDead(_1); // scope 0 at $DIR/bad_op_unsafe_oob_for_slices.rs:9:1: 9:2
return; // scope 0 at $DIR/bad_op_unsafe_oob_for_slices.rs:9:2: 9:2
...
...
src/test/mir-opt/const_prop/bad_op_unsafe_oob_for_slices.main.ConstProp.diff.64bit
浏览文件 @
86cf4617
...
...
@@ -51,12 +51,6 @@
_5 = (*_1)[_6]; // scope 2 at $DIR/bad_op_unsafe_oob_for_slices.rs:7:18: 7:25
StorageDead(_6); // scope 2 at $DIR/bad_op_unsafe_oob_for_slices.rs:7:25: 7:26
_0 = const (); // scope 2 at $DIR/bad_op_unsafe_oob_for_slices.rs:6:5: 8:6
// ty::Const
// + ty: ()
// + val: Value(Scalar(<ZST>))
// mir::Constant
// + span: $DIR/bad_op_unsafe_oob_for_slices.rs:6:5: 8:6
// + literal: Const { ty: (), val: Value(Scalar(<ZST>)) }
StorageDead(_5); // scope 2 at $DIR/bad_op_unsafe_oob_for_slices.rs:8:5: 8:6
StorageDead(_1); // scope 0 at $DIR/bad_op_unsafe_oob_for_slices.rs:9:1: 9:2
return; // scope 0 at $DIR/bad_op_unsafe_oob_for_slices.rs:9:2: 9:2
...
...
src/test/mir-opt/const_prop/boxes.main.ConstProp.diff
浏览文件 @
86cf4617
...
...
@@ -33,12 +33,6 @@
bb2: {
StorageDead(_3); // scope 0 at $DIR/boxes.rs:12:26: 12:27
_0 = const (); // scope 0 at $DIR/boxes.rs:11:11: 13:2
// ty::Const
// + ty: ()
// + val: Value(Scalar(<ZST>))
// mir::Constant
// + span: $DIR/boxes.rs:11:11: 13:2
// + literal: Const { ty: (), val: Value(Scalar(<ZST>)) }
StorageDead(_1); // scope 0 at $DIR/boxes.rs:13:1: 13:2
return; // scope 0 at $DIR/boxes.rs:13:2: 13:2
}
...
...
src/test/mir-opt/const_prop/cast.main.ConstProp.diff
浏览文件 @
86cf4617
...
...
@@ -20,12 +20,6 @@
- _2 = const 42_u32 as u8 (Misc); // scope 1 at $DIR/cast.rs:6:13: 6:24
+ _2 = const 42_u8; // scope 1 at $DIR/cast.rs:6:13: 6:24
_0 = const (); // scope 0 at $DIR/cast.rs:3:11: 7:2
// ty::Const
// + ty: ()
// + val: Value(Scalar(<ZST>))
// mir::Constant
// + span: $DIR/cast.rs:3:11: 7:2
// + literal: Const { ty: (), val: Value(Scalar(<ZST>)) }
StorageDead(_2); // scope 1 at $DIR/cast.rs:7:1: 7:2
StorageDead(_1); // scope 0 at $DIR/cast.rs:7:1: 7:2
return; // scope 0 at $DIR/cast.rs:7:2: 7:2
...
...
src/test/mir-opt/const_prop/checked_add.main.ConstProp.diff
浏览文件 @
86cf4617
...
...
@@ -21,12 +21,6 @@
- _1 = move (_2.0: u32); // scope 0 at $DIR/checked_add.rs:5:18: 5:23
+ _1 = const 2_u32; // scope 0 at $DIR/checked_add.rs:5:18: 5:23
_0 = const (); // scope 0 at $DIR/checked_add.rs:4:11: 6:2
// ty::Const
// + ty: ()
// + val: Value(Scalar(<ZST>))
// mir::Constant
// + span: $DIR/checked_add.rs:4:11: 6:2
// + literal: Const { ty: (), val: Value(Scalar(<ZST>)) }
StorageDead(_1); // scope 0 at $DIR/checked_add.rs:6:1: 6:2
return; // scope 0 at $DIR/checked_add.rs:6:2: 6:2
}
...
...
src/test/mir-opt/const_prop/const_prop_fails_gracefully.main.ConstProp.diff
浏览文件 @
86cf4617
...
...
@@ -40,12 +40,6 @@
StorageDead(_5); // scope 1 at $DIR/const_prop_fails_gracefully.rs:8:11: 8:12
StorageDead(_4); // scope 1 at $DIR/const_prop_fails_gracefully.rs:8:12: 8:13
_0 = const (); // scope 0 at $DIR/const_prop_fails_gracefully.rs:5:11: 9:2
// ty::Const
// + ty: ()
// + val: Value(Scalar(<ZST>))
// mir::Constant
// + span: $DIR/const_prop_fails_gracefully.rs:5:11: 9:2
// + literal: Const { ty: (), val: Value(Scalar(<ZST>)) }
StorageDead(_1); // scope 0 at $DIR/const_prop_fails_gracefully.rs:9:1: 9:2
return; // scope 0 at $DIR/const_prop_fails_gracefully.rs:9:2: 9:2
}
...
...
src/test/mir-opt/const_prop/control_flow_simplification.hello.ConstProp.diff
浏览文件 @
86cf4617
...
...
@@ -16,12 +16,6 @@
bb1: {
_0 = const (); // scope 0 at $DIR/control-flow-simplification.rs:12:5: 14:6
// ty::Const
// + ty: ()
// + val: Value(Scalar(<ZST>))
// mir::Constant
// + span: $DIR/control-flow-simplification.rs:12:5: 14:6
// + literal: Const { ty: (), val: Value(Scalar(<ZST>)) }
StorageDead(_1); // scope 0 at $DIR/control-flow-simplification.rs:15:1: 15:2
return; // scope 0 at $DIR/control-flow-simplification.rs:15:2: 15:2
}
...
...
src/test/mir-opt/const_prop/control_flow_simplification.hello.PreCodegen.before.mir
浏览文件 @
86cf4617
...
...
@@ -5,12 +5,6 @@ fn hello() -> () {
bb0: {
_0 = const (); // scope 0 at $DIR/control-flow-simplification.rs:12:5: 14:6
// ty::Const
// + ty: ()
// + val: Value(Scalar(<ZST>))
// mir::Constant
// + span: $DIR/control-flow-simplification.rs:12:5: 14:6
// + literal: Const { ty: (), val: Value(Scalar(<ZST>)) }
return; // scope 0 at $DIR/control-flow-simplification.rs:15:2: 15:2
}
}
src/test/mir-opt/const_prop/discriminant.main.ConstProp.diff.32bit
浏览文件 @
86cf4617
...
...
@@ -42,12 +42,6 @@
StorageDead(_2); // scope 0 at $DIR/discriminant.rs:11:67: 11:68
StorageDead(_3); // scope 0 at $DIR/discriminant.rs:11:68: 11:69
_0 = const (); // scope 0 at $DIR/discriminant.rs:10:11: 12:2
// ty::Const
// + ty: ()
// + val: Value(Scalar(<ZST>))
// mir::Constant
// + span: $DIR/discriminant.rs:10:11: 12:2
// + literal: Const { ty: (), val: Value(Scalar(<ZST>)) }
StorageDead(_1); // scope 0 at $DIR/discriminant.rs:12:1: 12:2
return; // scope 0 at $DIR/discriminant.rs:12:2: 12:2
}
...
...
src/test/mir-opt/const_prop/discriminant.main.ConstProp.diff.64bit
浏览文件 @
86cf4617
...
...
@@ -42,12 +42,6 @@
StorageDead(_2); // scope 0 at $DIR/discriminant.rs:11:67: 11:68
StorageDead(_3); // scope 0 at $DIR/discriminant.rs:11:68: 11:69
_0 = const (); // scope 0 at $DIR/discriminant.rs:10:11: 12:2
// ty::Const
// + ty: ()
// + val: Value(Scalar(<ZST>))
// mir::Constant
// + span: $DIR/discriminant.rs:10:11: 12:2
// + literal: Const { ty: (), val: Value(Scalar(<ZST>)) }
StorageDead(_1); // scope 0 at $DIR/discriminant.rs:12:1: 12:2
return; // scope 0 at $DIR/discriminant.rs:12:2: 12:2
}
...
...
src/test/mir-opt/const_prop/indirect.main.ConstProp.diff
浏览文件 @
86cf4617
...
...
@@ -26,12 +26,6 @@
+ _1 = const 3_u8; // scope 0 at $DIR/indirect.rs:5:13: 5:29
StorageDead(_2); // scope 0 at $DIR/indirect.rs:5:28: 5:29
_0 = const (); // scope 0 at $DIR/indirect.rs:4:11: 6:2
// ty::Const
// + ty: ()
// + val: Value(Scalar(<ZST>))
// mir::Constant
// + span: $DIR/indirect.rs:4:11: 6:2
// + literal: Const { ty: (), val: Value(Scalar(<ZST>)) }
StorageDead(_1); // scope 0 at $DIR/indirect.rs:6:1: 6:2
return; // scope 0 at $DIR/indirect.rs:6:2: 6:2
}
...
...
src/test/mir-opt/const_prop/issue_66971.main.ConstProp.diff
浏览文件 @
86cf4617
...
...
@@ -13,12 +13,6 @@
StorageLive(_3); // scope 0 at $DIR/issue-66971.rs:16:13: 16:15
- (_2.0: ()) = move _3; // scope 0 at $DIR/issue-66971.rs:16:12: 16:22
+ (_2.0: ()) = const (); // scope 0 at $DIR/issue-66971.rs:16:12: 16:22
+ // ty::Const
+ // + ty: ()
+ // + val: Value(Scalar(<ZST>))
+ // mir::Constant
+ // + span: $DIR/issue-66971.rs:16:12: 16:22
+ // + literal: Const { ty: (), val: Value(Scalar(<ZST>)) }
(_2.1: u8) = const 0_u8; // scope 0 at $DIR/issue-66971.rs:16:12: 16:22
(_2.2: u8) = const 0_u8; // scope 0 at $DIR/issue-66971.rs:16:12: 16:22
StorageDead(_3); // scope 0 at $DIR/issue-66971.rs:16:21: 16:22
...
...
@@ -32,12 +26,6 @@
StorageDead(_2); // scope 0 at $DIR/issue-66971.rs:16:22: 16:23
StorageDead(_1); // scope 0 at $DIR/issue-66971.rs:16:23: 16:24
_0 = const (); // scope 0 at $DIR/issue-66971.rs:15:11: 17:2
// ty::Const
// + ty: ()
// + val: Value(Scalar(<ZST>))
// mir::Constant
// + span: $DIR/issue-66971.rs:15:11: 17:2
// + literal: Const { ty: (), val: Value(Scalar(<ZST>)) }
return; // scope 0 at $DIR/issue-66971.rs:17:2: 17:2
}
}
...
...
src/test/mir-opt/const_prop/issue_67019.main.ConstProp.diff
浏览文件 @
86cf4617
...
...
@@ -26,12 +26,6 @@
StorageDead(_2); // scope 0 at $DIR/issue-67019.rs:11:19: 11:20
StorageDead(_1); // scope 0 at $DIR/issue-67019.rs:11:20: 11:21
_0 = const (); // scope 0 at $DIR/issue-67019.rs:10:11: 12:2
// ty::Const
// + ty: ()
// + val: Value(Scalar(<ZST>))
// mir::Constant
// + span: $DIR/issue-67019.rs:10:11: 12:2
// + literal: Const { ty: (), val: Value(Scalar(<ZST>)) }
return; // scope 0 at $DIR/issue-67019.rs:12:2: 12:2
}
}
...
...
src/test/mir-opt/const_prop/large_array_index.main.ConstProp.diff.32bit
浏览文件 @
86cf4617
...
...
@@ -30,12 +30,6 @@
StorageDead(_3); // scope 0 at $DIR/large_array_index.rs:6:32: 6:33
StorageDead(_2); // scope 0 at $DIR/large_array_index.rs:6:32: 6:33
_0 = const (); // scope 0 at $DIR/large_array_index.rs:4:11: 7:2
// ty::Const
// + ty: ()
// + val: Value(Scalar(<ZST>))
// mir::Constant
// + span: $DIR/large_array_index.rs:4:11: 7:2
// + literal: Const { ty: (), val: Value(Scalar(<ZST>)) }
StorageDead(_1); // scope 0 at $DIR/large_array_index.rs:7:1: 7:2
return; // scope 0 at $DIR/large_array_index.rs:7:2: 7:2
}
...
...
src/test/mir-opt/const_prop/large_array_index.main.ConstProp.diff.64bit
浏览文件 @
86cf4617
...
...
@@ -30,12 +30,6 @@
StorageDead(_3); // scope 0 at $DIR/large_array_index.rs:6:32: 6:33
StorageDead(_2); // scope 0 at $DIR/large_array_index.rs:6:32: 6:33
_0 = const (); // scope 0 at $DIR/large_array_index.rs:4:11: 7:2
// ty::Const
// + ty: ()
// + val: Value(Scalar(<ZST>))
// mir::Constant
// + span: $DIR/large_array_index.rs:4:11: 7:2
// + literal: Const { ty: (), val: Value(Scalar(<ZST>)) }
StorageDead(_1); // scope 0 at $DIR/large_array_index.rs:7:1: 7:2
return; // scope 0 at $DIR/large_array_index.rs:7:2: 7:2
}
...
...
src/test/mir-opt/const_prop/mutable_variable.main.ConstProp.diff
浏览文件 @
86cf4617
...
...
@@ -20,12 +20,6 @@
- _2 = _1; // scope 1 at $DIR/mutable_variable.rs:7:13: 7:14
+ _2 = const 99_i32; // scope 1 at $DIR/mutable_variable.rs:7:13: 7:14
_0 = const (); // scope 0 at $DIR/mutable_variable.rs:4:11: 8:2
// ty::Const
// + ty: ()
// + val: Value(Scalar(<ZST>))
// mir::Constant
// + span: $DIR/mutable_variable.rs:4:11: 8:2
// + literal: Const { ty: (), val: Value(Scalar(<ZST>)) }
StorageDead(_2); // scope 1 at $DIR/mutable_variable.rs:8:1: 8:2
StorageDead(_1); // scope 0 at $DIR/mutable_variable.rs:8:1: 8:2
return; // scope 0 at $DIR/mutable_variable.rs:8:2: 8:2
...
...
src/test/mir-opt/const_prop/mutable_variable_aggregate.main.ConstProp.diff
浏览文件 @
86cf4617
...
...
@@ -21,12 +21,6 @@
- _2 = _1; // scope 1 at $DIR/mutable_variable_aggregate.rs:7:13: 7:14
+ _2 = (const 42_i32, const 99_i32); // scope 1 at $DIR/mutable_variable_aggregate.rs:7:13: 7:14
_0 = const (); // scope 0 at $DIR/mutable_variable_aggregate.rs:4:11: 8:2
// ty::Const
// + ty: ()
// + val: Value(Scalar(<ZST>))
// mir::Constant
// + span: $DIR/mutable_variable_aggregate.rs:4:11: 8:2
// + literal: Const { ty: (), val: Value(Scalar(<ZST>)) }
StorageDead(_2); // scope 1 at $DIR/mutable_variable_aggregate.rs:8:1: 8:2
StorageDead(_1); // scope 0 at $DIR/mutable_variable_aggregate.rs:8:1: 8:2
return; // scope 0 at $DIR/mutable_variable_aggregate.rs:8:2: 8:2
...
...
src/test/mir-opt/const_prop/mutable_variable_aggregate_mut_ref.main.ConstProp.diff
浏览文件 @
86cf4617
...
...
@@ -26,12 +26,6 @@
StorageLive(_3); // scope 2 at $DIR/mutable_variable_aggregate_mut_ref.rs:8:9: 8:10
_3 = _1; // scope 2 at $DIR/mutable_variable_aggregate_mut_ref.rs:8:13: 8:14
_0 = const (); // scope 0 at $DIR/mutable_variable_aggregate_mut_ref.rs:4:11: 9:2
// ty::Const
// + ty: ()
// + val: Value(Scalar(<ZST>))
// mir::Constant
// + span: $DIR/mutable_variable_aggregate_mut_ref.rs:4:11: 9:2
// + literal: Const { ty: (), val: Value(Scalar(<ZST>)) }
StorageDead(_3); // scope 2 at $DIR/mutable_variable_aggregate_mut_ref.rs:9:1: 9:2
StorageDead(_2); // scope 1 at $DIR/mutable_variable_aggregate_mut_ref.rs:9:1: 9:2
StorageDead(_1); // scope 0 at $DIR/mutable_variable_aggregate_mut_ref.rs:9:1: 9:2
...
...
src/test/mir-opt/const_prop/mutable_variable_aggregate_partial_read.main.ConstProp.diff
浏览文件 @
86cf4617
...
...
@@ -27,12 +27,6 @@
- _2 = (_1.1: i32); // scope 1 at $DIR/mutable_variable_aggregate_partial_read.rs:8:13: 8:16
+ _2 = const 99_i32; // scope 1 at $DIR/mutable_variable_aggregate_partial_read.rs:8:13: 8:16
_0 = const (); // scope 0 at $DIR/mutable_variable_aggregate_partial_read.rs:4:11: 9:2
// ty::Const
// + ty: ()
// + val: Value(Scalar(<ZST>))
// mir::Constant
// + span: $DIR/mutable_variable_aggregate_partial_read.rs:4:11: 9:2
// + literal: Const { ty: (), val: Value(Scalar(<ZST>)) }
StorageDead(_2); // scope 1 at $DIR/mutable_variable_aggregate_partial_read.rs:9:1: 9:2
StorageDead(_1); // scope 0 at $DIR/mutable_variable_aggregate_partial_read.rs:9:1: 9:2
return; // scope 0 at $DIR/mutable_variable_aggregate_partial_read.rs:9:2: 9:2
...
...
src/test/mir-opt/const_prop/mutable_variable_no_prop.main.ConstProp.diff
浏览文件 @
86cf4617
...
...
@@ -35,22 +35,10 @@
StorageDead(_3); // scope 2 at $DIR/mutable_variable_no_prop.rs:9:18: 9:19
StorageDead(_4); // scope 2 at $DIR/mutable_variable_no_prop.rs:9:19: 9:20
_2 = const (); // scope 2 at $DIR/mutable_variable_no_prop.rs:8:5: 10:6
// ty::Const
// + ty: ()
// + val: Value(Scalar(<ZST>))
// mir::Constant
// + span: $DIR/mutable_variable_no_prop.rs:8:5: 10:6
// + literal: Const { ty: (), val: Value(Scalar(<ZST>)) }
StorageDead(_2); // scope 1 at $DIR/mutable_variable_no_prop.rs:10:5: 10:6
StorageLive(_5); // scope 1 at $DIR/mutable_variable_no_prop.rs:11:9: 11:10
_5 = _1; // scope 1 at $DIR/mutable_variable_no_prop.rs:11:13: 11:14
_0 = const (); // scope 0 at $DIR/mutable_variable_no_prop.rs:6:11: 12:2
// ty::Const
// + ty: ()
// + val: Value(Scalar(<ZST>))
// mir::Constant
// + span: $DIR/mutable_variable_no_prop.rs:6:11: 12:2
// + literal: Const { ty: (), val: Value(Scalar(<ZST>)) }
StorageDead(_5); // scope 1 at $DIR/mutable_variable_no_prop.rs:12:1: 12:2
StorageDead(_1); // scope 0 at $DIR/mutable_variable_no_prop.rs:12:1: 12:2
return; // scope 0 at $DIR/mutable_variable_no_prop.rs:12:2: 12:2
...
...
src/test/mir-opt/const_prop/mutable_variable_unprop_assign.main.ConstProp.diff
浏览文件 @
86cf4617
...
...
@@ -42,12 +42,6 @@
StorageLive(_5); // scope 3 at $DIR/mutable_variable_unprop_assign.rs:9:9: 9:10
_5 = (_2.0: i32); // scope 3 at $DIR/mutable_variable_unprop_assign.rs:9:13: 9:16
_0 = const (); // scope 0 at $DIR/mutable_variable_unprop_assign.rs:4:11: 10:2
// ty::Const
// + ty: ()
// + val: Value(Scalar(<ZST>))
// mir::Constant
// + span: $DIR/mutable_variable_unprop_assign.rs:4:11: 10:2
// + literal: Const { ty: (), val: Value(Scalar(<ZST>)) }
StorageDead(_5); // scope 3 at $DIR/mutable_variable_unprop_assign.rs:10:1: 10:2
StorageDead(_4); // scope 2 at $DIR/mutable_variable_unprop_assign.rs:10:1: 10:2
StorageDead(_2); // scope 1 at $DIR/mutable_variable_unprop_assign.rs:10:1: 10:2
...
...
src/test/mir-opt/const_prop/optimizes_into_variable.main.ConstProp.diff.32bit
浏览文件 @
86cf4617
...
...
@@ -58,12 +58,6 @@
+ _8 = const 42_u32; // scope 2 at $DIR/optimizes_into_variable.rs:14:13: 14:38
StorageDead(_9); // scope 2 at $DIR/optimizes_into_variable.rs:14:38: 14:39
_0 = const (); // scope 0 at $DIR/optimizes_into_variable.rs:11:11: 15:2
// ty::Const
// + ty: ()
// + val: Value(Scalar(<ZST>))
// mir::Constant
// + span: $DIR/optimizes_into_variable.rs:11:11: 15:2
// + literal: Const { ty: (), val: Value(Scalar(<ZST>)) }
StorageDead(_8); // scope 2 at $DIR/optimizes_into_variable.rs:15:1: 15:2
StorageDead(_3); // scope 1 at $DIR/optimizes_into_variable.rs:15:1: 15:2
StorageDead(_1); // scope 0 at $DIR/optimizes_into_variable.rs:15:1: 15:2
...
...
src/test/mir-opt/const_prop/optimizes_into_variable.main.ConstProp.diff.64bit
浏览文件 @
86cf4617
...
...
@@ -58,12 +58,6 @@
+ _8 = const 42_u32; // scope 2 at $DIR/optimizes_into_variable.rs:14:13: 14:38
StorageDead(_9); // scope 2 at $DIR/optimizes_into_variable.rs:14:38: 14:39
_0 = const (); // scope 0 at $DIR/optimizes_into_variable.rs:11:11: 15:2
// ty::Const
// + ty: ()
// + val: Value(Scalar(<ZST>))
// mir::Constant
// + span: $DIR/optimizes_into_variable.rs:11:11: 15:2
// + literal: Const { ty: (), val: Value(Scalar(<ZST>)) }
StorageDead(_8); // scope 2 at $DIR/optimizes_into_variable.rs:15:1: 15:2
StorageDead(_3); // scope 1 at $DIR/optimizes_into_variable.rs:15:1: 15:2
StorageDead(_1); // scope 0 at $DIR/optimizes_into_variable.rs:15:1: 15:2
...
...
src/test/mir-opt/const_prop/optimizes_into_variable.main.SimplifyLocals.after.mir.32bit
浏览文件 @
86cf4617
...
...
@@ -23,12 +23,6 @@ fn main() -> () {
StorageLive(_3); // scope 2 at $DIR/optimizes_into_variable.rs:14:9: 14:10
_3 = const 42_u32; // scope 2 at $DIR/optimizes_into_variable.rs:14:13: 14:38
_0 = const (); // scope 0 at $DIR/optimizes_into_variable.rs:11:11: 15:2
// ty::Const
// + ty: ()
// + val: Value(Scalar(<ZST>))
// mir::Constant
// + span: $DIR/optimizes_into_variable.rs:11:11: 15:2
// + literal: Const { ty: (), val: Value(Scalar(<ZST>)) }
StorageDead(_3); // scope 2 at $DIR/optimizes_into_variable.rs:15:1: 15:2
StorageDead(_2); // scope 1 at $DIR/optimizes_into_variable.rs:15:1: 15:2
StorageDead(_1); // scope 0 at $DIR/optimizes_into_variable.rs:15:1: 15:2
...
...
src/test/mir-opt/const_prop/optimizes_into_variable.main.SimplifyLocals.after.mir.64bit
浏览文件 @
86cf4617
...
...
@@ -23,12 +23,6 @@ fn main() -> () {
StorageLive(_3); // scope 2 at $DIR/optimizes_into_variable.rs:14:9: 14:10
_3 = const 42_u32; // scope 2 at $DIR/optimizes_into_variable.rs:14:13: 14:38
_0 = const (); // scope 0 at $DIR/optimizes_into_variable.rs:11:11: 15:2
// ty::Const
// + ty: ()
// + val: Value(Scalar(<ZST>))
// mir::Constant
// + span: $DIR/optimizes_into_variable.rs:11:11: 15:2
// + literal: Const { ty: (), val: Value(Scalar(<ZST>)) }
StorageDead(_3); // scope 2 at $DIR/optimizes_into_variable.rs:15:1: 15:2
StorageDead(_2); // scope 1 at $DIR/optimizes_into_variable.rs:15:1: 15:2
StorageDead(_1); // scope 0 at $DIR/optimizes_into_variable.rs:15:1: 15:2
...
...
src/test/mir-opt/const_prop/read_immutable_static.main.ConstProp.diff
浏览文件 @
86cf4617
...
...
@@ -43,12 +43,6 @@
StorageDead(_5); // scope 0 at $DIR/read_immutable_static.rs:7:22: 7:23
StorageDead(_3); // scope 0 at $DIR/read_immutable_static.rs:7:22: 7:23
_0 = const (); // scope 0 at $DIR/read_immutable_static.rs:6:11: 8:2
// ty::Const
// + ty: ()
// + val: Value(Scalar(<ZST>))
// mir::Constant
// + span: $DIR/read_immutable_static.rs:6:11: 8:2
// + literal: Const { ty: (), val: Value(Scalar(<ZST>)) }
StorageDead(_1); // scope 0 at $DIR/read_immutable_static.rs:8:1: 8:2
return; // scope 0 at $DIR/read_immutable_static.rs:8:2: 8:2
}
...
...
src/test/mir-opt/const_prop/ref_deref.main.ConstProp.diff
浏览文件 @
86cf4617
...
...
@@ -24,12 +24,6 @@
StorageDead(_2); // scope 0 at $DIR/ref_deref.rs:5:10: 5:11
StorageDead(_1); // scope 0 at $DIR/ref_deref.rs:5:10: 5:11
_0 = const (); // scope 0 at $DIR/ref_deref.rs:4:11: 6:2
// ty::Const
// + ty: ()
// + val: Value(Scalar(<ZST>))
// mir::Constant
// + span: $DIR/ref_deref.rs:4:11: 6:2
// + literal: Const { ty: (), val: Value(Scalar(<ZST>)) }
return; // scope 0 at $DIR/ref_deref.rs:6:2: 6:2
}
}
...
...
src/test/mir-opt/const_prop/ref_deref.main.PromoteTemps.diff
浏览文件 @
86cf4617
...
...
@@ -27,12 +27,6 @@
StorageDead(_2); // scope 0 at $DIR/ref_deref.rs:5:10: 5:11
StorageDead(_1); // scope 0 at $DIR/ref_deref.rs:5:10: 5:11
_0 = const (); // scope 0 at $DIR/ref_deref.rs:4:11: 6:2
// ty::Const
// + ty: ()
// + val: Value(Scalar(<ZST>))
// mir::Constant
// + span: $DIR/ref_deref.rs:4:11: 6:2
// + literal: Const { ty: (), val: Value(Scalar(<ZST>)) }
return; // scope 0 at $DIR/ref_deref.rs:6:2: 6:2
}
}
...
...
src/test/mir-opt/const_prop/ref_deref_project.main.ConstProp.diff
浏览文件 @
86cf4617
...
...
@@ -23,12 +23,6 @@
StorageDead(_2); // scope 0 at $DIR/ref_deref_project.rs:5:17: 5:18
StorageDead(_1); // scope 0 at $DIR/ref_deref_project.rs:5:17: 5:18
_0 = const (); // scope 0 at $DIR/ref_deref_project.rs:4:11: 6:2
// ty::Const
// + ty: ()
// + val: Value(Scalar(<ZST>))
// mir::Constant
// + span: $DIR/ref_deref_project.rs:4:11: 6:2
// + literal: Const { ty: (), val: Value(Scalar(<ZST>)) }
return; // scope 0 at $DIR/ref_deref_project.rs:6:2: 6:2
}
}
...
...
src/test/mir-opt/const_prop/ref_deref_project.main.PromoteTemps.diff
浏览文件 @
86cf4617
...
...
@@ -27,12 +27,6 @@
StorageDead(_2); // scope 0 at $DIR/ref_deref_project.rs:5:17: 5:18
StorageDead(_1); // scope 0 at $DIR/ref_deref_project.rs:5:17: 5:18
_0 = const (); // scope 0 at $DIR/ref_deref_project.rs:4:11: 6:2
// ty::Const
// + ty: ()
// + val: Value(Scalar(<ZST>))
// mir::Constant
// + span: $DIR/ref_deref_project.rs:4:11: 6:2
// + literal: Const { ty: (), val: Value(Scalar(<ZST>)) }
return; // scope 0 at $DIR/ref_deref_project.rs:6:2: 6:2
}
}
...
...
src/test/mir-opt/const_prop/reify_fn_ptr.main.ConstProp.diff
浏览文件 @
86cf4617
...
...
@@ -23,12 +23,6 @@
StorageDead(_2); // scope 0 at $DIR/reify_fn_ptr.rs:4:40: 4:41
StorageDead(_1); // scope 0 at $DIR/reify_fn_ptr.rs:4:41: 4:42
_0 = const (); // scope 0 at $DIR/reify_fn_ptr.rs:3:11: 5:2
// ty::Const
// + ty: ()
// + val: Value(Scalar(<ZST>))
// mir::Constant
// + span: $DIR/reify_fn_ptr.rs:3:11: 5:2
// + literal: Const { ty: (), val: Value(Scalar(<ZST>)) }
return; // scope 0 at $DIR/reify_fn_ptr.rs:5:2: 5:2
}
}
...
...
src/test/mir-opt/const_prop/repeat.main.ConstProp.diff.32bit
浏览文件 @
86cf4617
...
...
@@ -36,12 +36,6 @@
StorageDead(_4); // scope 0 at $DIR/repeat.rs:6:32: 6:33
StorageDead(_3); // scope 0 at $DIR/repeat.rs:6:32: 6:33
_0 = const (); // scope 0 at $DIR/repeat.rs:5:11: 7:2
// ty::Const
// + ty: ()
// + val: Value(Scalar(<ZST>))
// mir::Constant
// + span: $DIR/repeat.rs:5:11: 7:2
// + literal: Const { ty: (), val: Value(Scalar(<ZST>)) }
StorageDead(_1); // scope 0 at $DIR/repeat.rs:7:1: 7:2
return; // scope 0 at $DIR/repeat.rs:7:2: 7:2
}
...
...
src/test/mir-opt/const_prop/repeat.main.ConstProp.diff.64bit
浏览文件 @
86cf4617
...
...
@@ -36,12 +36,6 @@
StorageDead(_4); // scope 0 at $DIR/repeat.rs:6:32: 6:33
StorageDead(_3); // scope 0 at $DIR/repeat.rs:6:32: 6:33
_0 = const (); // scope 0 at $DIR/repeat.rs:5:11: 7:2
// ty::Const
// + ty: ()
// + val: Value(Scalar(<ZST>))
// mir::Constant
// + span: $DIR/repeat.rs:5:11: 7:2
// + literal: Const { ty: (), val: Value(Scalar(<ZST>)) }
StorageDead(_1); // scope 0 at $DIR/repeat.rs:7:1: 7:2
return; // scope 0 at $DIR/repeat.rs:7:2: 7:2
}
...
...
src/test/mir-opt/const_prop/scalar_literal_propagation.main.ConstProp.diff
浏览文件 @
86cf4617
...
...
@@ -28,12 +28,6 @@
StorageDead(_3); // scope 1 at $DIR/scalar_literal_propagation.rs:4:14: 4:15
StorageDead(_2); // scope 1 at $DIR/scalar_literal_propagation.rs:4:15: 4:16
_0 = const (); // scope 0 at $DIR/scalar_literal_propagation.rs:2:11: 5:2
// ty::Const
// + ty: ()
// + val: Value(Scalar(<ZST>))
// mir::Constant
// + span: $DIR/scalar_literal_propagation.rs:2:11: 5:2
// + literal: Const { ty: (), val: Value(Scalar(<ZST>)) }
StorageDead(_1); // scope 0 at $DIR/scalar_literal_propagation.rs:5:1: 5:2
return; // scope 0 at $DIR/scalar_literal_propagation.rs:5:2: 5:2
}
...
...
src/test/mir-opt/const_prop/slice_len.main.ConstProp.diff.32bit
浏览文件 @
86cf4617
...
...
@@ -47,12 +47,6 @@
StorageDead(_2); // scope 0 at $DIR/slice_len.rs:5:33: 5:34
StorageDead(_1); // scope 0 at $DIR/slice_len.rs:5:33: 5:34
_0 = const (); // scope 0 at $DIR/slice_len.rs:4:11: 6:2
// ty::Const
// + ty: ()
// + val: Value(Scalar(<ZST>))
// mir::Constant
// + span: $DIR/slice_len.rs:4:11: 6:2
// + literal: Const { ty: (), val: Value(Scalar(<ZST>)) }
return; // scope 0 at $DIR/slice_len.rs:6:2: 6:2
}
}
...
...
src/test/mir-opt/const_prop/slice_len.main.ConstProp.diff.64bit
浏览文件 @
86cf4617
...
...
@@ -47,12 +47,6 @@
StorageDead(_2); // scope 0 at $DIR/slice_len.rs:5:33: 5:34
StorageDead(_1); // scope 0 at $DIR/slice_len.rs:5:33: 5:34
_0 = const (); // scope 0 at $DIR/slice_len.rs:4:11: 6:2
// ty::Const
// + ty: ()
// + val: Value(Scalar(<ZST>))
// mir::Constant
// + span: $DIR/slice_len.rs:4:11: 6:2
// + literal: Const { ty: (), val: Value(Scalar(<ZST>)) }
return; // scope 0 at $DIR/slice_len.rs:6:2: 6:2
}
}
...
...
src/test/mir-opt/const_prop/tuple_literal_propagation.main.ConstProp.diff
浏览文件 @
86cf4617
...
...
@@ -28,12 +28,6 @@
StorageDead(_3); // scope 1 at $DIR/tuple_literal_propagation.rs:5:14: 5:15
StorageDead(_2); // scope 1 at $DIR/tuple_literal_propagation.rs:5:15: 5:16
_0 = const (); // scope 0 at $DIR/tuple_literal_propagation.rs:2:11: 6:2
// ty::Const
// + ty: ()
// + val: Value(Scalar(<ZST>))
// mir::Constant
// + span: $DIR/tuple_literal_propagation.rs:2:11: 6:2
// + literal: Const { ty: (), val: Value(Scalar(<ZST>)) }
StorageDead(_1); // scope 0 at $DIR/tuple_literal_propagation.rs:6:1: 6:2
return; // scope 0 at $DIR/tuple_literal_propagation.rs:6:2: 6:2
}
...
...
src/test/mir-opt/const_prop_miscompile.bar.ConstProp.diff
浏览文件 @
86cf4617
...
...
@@ -26,12 +26,6 @@
(*_3) = const 5_i32; // scope 2 at $DIR/const_prop_miscompile.rs:14:9: 14:26
StorageDead(_3); // scope 2 at $DIR/const_prop_miscompile.rs:14:26: 14:27
_2 = const (); // scope 2 at $DIR/const_prop_miscompile.rs:13:5: 15:6
// ty::Const
// + ty: ()
// + val: Value(Scalar(<ZST>))
// mir::Constant
// + span: $DIR/const_prop_miscompile.rs:13:5: 15:6
// + literal: Const { ty: (), val: Value(Scalar(<ZST>)) }
StorageDead(_2); // scope 1 at $DIR/const_prop_miscompile.rs:15:5: 15:6
StorageLive(_4); // scope 1 at $DIR/const_prop_miscompile.rs:16:9: 16:10
StorageLive(_5); // scope 1 at $DIR/const_prop_miscompile.rs:16:13: 16:20
...
...
@@ -39,12 +33,6 @@
_4 = Eq(move _5, const 5_i32); // scope 1 at $DIR/const_prop_miscompile.rs:16:13: 16:25
StorageDead(_5); // scope 1 at $DIR/const_prop_miscompile.rs:16:24: 16:25
_0 = const (); // scope 0 at $DIR/const_prop_miscompile.rs:11:10: 17:2
// ty::Const
// + ty: ()
// + val: Value(Scalar(<ZST>))
// mir::Constant
// + span: $DIR/const_prop_miscompile.rs:11:10: 17:2
// + literal: Const { ty: (), val: Value(Scalar(<ZST>)) }
StorageDead(_4); // scope 1 at $DIR/const_prop_miscompile.rs:17:1: 17:2
StorageDead(_1); // scope 0 at $DIR/const_prop_miscompile.rs:17:1: 17:2
return; // scope 0 at $DIR/const_prop_miscompile.rs:17:2: 17:2
...
...
src/test/mir-opt/const_prop_miscompile.foo.ConstProp.diff
浏览文件 @
86cf4617
...
...
@@ -27,12 +27,6 @@
_3 = Eq(move _4, const 5_i32); // scope 1 at $DIR/const_prop_miscompile.rs:7:13: 7:25
StorageDead(_4); // scope 1 at $DIR/const_prop_miscompile.rs:7:24: 7:25
_0 = const (); // scope 0 at $DIR/const_prop_miscompile.rs:4:10: 8:2
// ty::Const
// + ty: ()
// + val: Value(Scalar(<ZST>))
// mir::Constant
// + span: $DIR/const_prop_miscompile.rs:4:10: 8:2
// + literal: Const { ty: (), val: Value(Scalar(<ZST>)) }
StorageDead(_3); // scope 1 at $DIR/const_prop_miscompile.rs:8:1: 8:2
StorageDead(_1); // scope 0 at $DIR/const_prop_miscompile.rs:8:1: 8:2
return; // scope 0 at $DIR/const_prop_miscompile.rs:8:2: 8:2
...
...
src/test/mir-opt/copy_propagation_arg.bar.CopyPropagation.diff
浏览文件 @
86cf4617
...
...
@@ -22,12 +22,6 @@
StorageDead(_2); // scope 0 at $DIR/copy_propagation_arg.rs:16:13: 16:14
_1 = const 5_u8; // scope 0 at $DIR/copy_propagation_arg.rs:17:5: 17:10
_0 = const (); // scope 0 at $DIR/copy_propagation_arg.rs:15:19: 18:2
// ty::Const
// + ty: ()
// + val: Value(Scalar(<ZST>))
// mir::Constant
// + span: $DIR/copy_propagation_arg.rs:15:19: 18:2
// + literal: Const { ty: (), val: Value(Scalar(<ZST>)) }
return; // scope 0 at $DIR/copy_propagation_arg.rs:18:2: 18:2
}
}
...
...
src/test/mir-opt/copy_propagation_arg.baz.CopyPropagation.diff
浏览文件 @
86cf4617
...
...
@@ -12,12 +12,6 @@
_1 = move _2; // scope 0 at $DIR/copy_propagation_arg.rs:23:5: 23:10
StorageDead(_2); // scope 0 at $DIR/copy_propagation_arg.rs:23:9: 23:10
_0 = const (); // scope 0 at $DIR/copy_propagation_arg.rs:21:20: 24:2
// ty::Const
// + ty: ()
// + val: Value(Scalar(<ZST>))
// mir::Constant
// + span: $DIR/copy_propagation_arg.rs:21:20: 24:2
// + literal: Const { ty: (), val: Value(Scalar(<ZST>)) }
return; // scope 0 at $DIR/copy_propagation_arg.rs:24:2: 24:2
}
}
...
...
src/test/mir-opt/copy_propagation_arg.foo.CopyPropagation.diff
浏览文件 @
86cf4617
...
...
@@ -22,12 +22,6 @@
_1 = move _2; // scope 0 at $DIR/copy_propagation_arg.rs:11:5: 11:17
StorageDead(_2); // scope 0 at $DIR/copy_propagation_arg.rs:11:16: 11:17
_0 = const (); // scope 0 at $DIR/copy_propagation_arg.rs:9:19: 12:2
// ty::Const
// + ty: ()
// + val: Value(Scalar(<ZST>))
// mir::Constant
// + span: $DIR/copy_propagation_arg.rs:9:19: 12:2
// + literal: Const { ty: (), val: Value(Scalar(<ZST>)) }
return; // scope 0 at $DIR/copy_propagation_arg.rs:12:2: 12:2
}
}
...
...
src/test/mir-opt/generator_storage_dead_unwind.main-{{closure}}.StateTransform.before.mir
浏览文件 @
86cf4617
...
...
@@ -94,12 +94,6 @@ yields ()
StorageDead(_10); // scope 2 at $DIR/generator-storage-dead-unwind.rs:27:15: 27:16
StorageDead(_9); // scope 2 at $DIR/generator-storage-dead-unwind.rs:27:16: 27:17
_0 = const (); // scope 0 at $DIR/generator-storage-dead-unwind.rs:22:19: 28:6
// ty::Const
// + ty: ()
// + val: Value(Scalar(<ZST>))
// mir::Constant
// + span: $DIR/generator-storage-dead-unwind.rs:22:19: 28:6
// + literal: Const { ty: (), val: Value(Scalar(<ZST>)) }
StorageDead(_4); // scope 1 at $DIR/generator-storage-dead-unwind.rs:28:5: 28:6
StorageDead(_3); // scope 0 at $DIR/generator-storage-dead-unwind.rs:28:5: 28:6
drop(_1) -> [return: bb12, unwind: bb1]; // scope 0 at $DIR/generator-storage-dead-unwind.rs:28:5: 28:6
...
...
src/test/mir-opt/generator_tiny.main-{{closure}}.generator_resume.0.mir
浏览文件 @
86cf4617
...
...
@@ -59,12 +59,6 @@ fn main::{{closure}}#0(_1: std::pin::Pin<&mut [generator@$DIR/generator-tiny.rs:
bb4: {
StorageDead(_8); // scope 1 at $DIR/generator-tiny.rs:23:21: 23:22
_5 = const (); // scope 1 at $DIR/generator-tiny.rs:21:14: 24:10
// ty::Const
// + ty: ()
// + val: Value(Scalar(<ZST>))
// mir::Constant
// + span: $DIR/generator-tiny.rs:21:14: 24:10
// + literal: Const { ty: (), val: Value(Scalar(<ZST>)) }
goto -> bb2; // scope 1 at $DIR/generator-tiny.rs:21:9: 24:10
}
...
...
src/test/mir-opt/inline/inline_into_box_place.main.Inline.diff.32bit
浏览文件 @
86cf4617
...
...
@@ -27,45 +27,37 @@
- // + span: $DIR/inline-into-box-place.rs:8:33: 8:41
- // + user_ty: UserType(1)
- // + literal: Const { ty: fn() -> std::vec::Vec<u32> {std::vec::Vec::<u32>::new}, val: Value(Scalar(<ZST>)) }
- }
-
- bb1 (cleanup): {
- resume; // scope 0 at $DIR/inline-into-box-place.rs:7:1: 9:2
- }
-
- bb2: {
+ // + span: $SRC_DIR/alloc/src/vec.rs:LL:COL
+ // + user_ty: UserType(0)
+ // + literal: Const { ty: alloc::raw_vec::RawVec<u32>, val: Value(ByRef { alloc: Allocation { bytes: [4, 0, 0, 0, 0, 0, 0, 0], relocations: Relocations(SortedMap { data: [] }), init_mask: InitMask { blocks: [255], len: Size { raw: 8 } }, size: Size { raw: 8 }, align: Align { pow2: 2 }, mutability: Not, extra: () }, offset: Size { raw: 0 } }) }
+ ((*_4).1: usize) = const 0_usize; // scope 2 at $SRC_DIR/alloc/src/vec.rs:LL:COL
_1 = move _2; // scope 0 at $DIR/inline-into-box-place.rs:8:29: 8:43
StorageDead(_2); // scope 0 at $DIR/inline-into-box-place.rs:8:42: 8:43
_0 = const (); // scope 0 at $DIR/inline-into-box-place.rs:7:11: 9:2
// ty::Const
// + ty: ()
// + val: Value(Scalar(<ZST>))
// mir::Constant
// + span: $DIR/inline-into-box-place.rs:7:11: 9:2
// + literal: Const { ty: (), val: Value(Scalar(<ZST>)) }
- drop(_1) -> [return: bb3, unwind: bb1]; // scope 0 at $DIR/inline-into-box-place.rs:9:1: 9:2
+ _1 = move _2; // scope 0 at $DIR/inline-into-box-place.rs:8:29: 8:43
+ StorageDead(_2); // scope 0 at $DIR/inline-into-box-place.rs:8:42: 8:43
+ _0 = const (); // scope 0 at $DIR/inline-into-box-place.rs:7:11: 9:2
+ drop(_1) -> [return: bb2, unwind: bb1]; // scope 0 at $DIR/inline-into-box-place.rs:9:1: 9:2
}
- bb3: {
- StorageDead(_1); // scope 0 at $DIR/inline-into-box-place.rs:9:1: 9:2
- return; // scope 0 at $DIR/inline-into-box-place.rs:9:2: 9:2
+ bb1 (cleanup): {
+ resume; // scope 0 at $DIR/inline-into-box-place.rs:7:1: 9:2
bb1 (cleanup): {
resume; // scope 0 at $DIR/inline-into-box-place.rs:7:1: 9:2
}
bb2: {
- _1 = move _2; // scope 0 at $DIR/inline-into-box-place.rs:8:29: 8:43
- StorageDead(_2); // scope 0 at $DIR/inline-into-box-place.rs:8:42: 8:43
- _0 = const (); // scope 0 at $DIR/inline-into-box-place.rs:7:11: 9:2
- drop(_1) -> [return: bb3, unwind: bb1]; // scope 0 at $DIR/inline-into-box-place.rs:9:1: 9:2
- }
-
- bb3: {
StorageDead(_1); // scope 0 at $DIR/inline-into-box-place.rs:9:1: 9:2
return; // scope 0 at $DIR/inline-into-box-place.rs:9:2: 9:2
- }
-
- bb4 (cleanup): {
- _3 = const alloc::alloc::box_free::<std::vec::Vec<u32>>(move (_2.0: std::ptr::Unique<std::vec::Vec<u32>>)) -> bb1; // scope 0 at $DIR/inline-into-box-place.rs:8:42: 8:43
- // mir::Constant
- // + span: $DIR/inline-into-box-place.rs:8:42: 8:43
- // + literal: Const { ty: unsafe fn(std::ptr::Unique<std::vec::Vec<u32>>) {alloc::alloc::box_free::<std::vec::Vec<u32>>}, val: Value(Scalar(<ZST>)) }
+ bb2: {
+ StorageDead(_1); // scope 0 at $DIR/inline-into-box-place.rs:9:1: 9:2
+ return; // scope 0 at $DIR/inline-into-box-place.rs:9:2: 9:2
}
}
src/test/mir-opt/inline/inline_into_box_place.main.Inline.diff.64bit
浏览文件 @
86cf4617
...
...
@@ -27,45 +27,37 @@
- // + span: $DIR/inline-into-box-place.rs:8:33: 8:41
- // + user_ty: UserType(1)
- // + literal: Const { ty: fn() -> std::vec::Vec<u32> {std::vec::Vec::<u32>::new}, val: Value(Scalar(<ZST>)) }
- }
-
- bb1 (cleanup): {
- resume; // scope 0 at $DIR/inline-into-box-place.rs:7:1: 9:2
- }
-
- bb2: {
+ // + span: $SRC_DIR/alloc/src/vec.rs:LL:COL
+ // + user_ty: UserType(0)
+ // + literal: Const { ty: alloc::raw_vec::RawVec<u32>, val: Value(ByRef { alloc: Allocation { bytes: [4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], relocations: Relocations(SortedMap { data: [] }), init_mask: InitMask { blocks: [65535], len: Size { raw: 16 } }, size: Size { raw: 16 }, align: Align { pow2: 3 }, mutability: Not, extra: () }, offset: Size { raw: 0 } }) }
+ ((*_4).1: usize) = const 0_usize; // scope 2 at $SRC_DIR/alloc/src/vec.rs:LL:COL
_1 = move _2; // scope 0 at $DIR/inline-into-box-place.rs:8:29: 8:43
StorageDead(_2); // scope 0 at $DIR/inline-into-box-place.rs:8:42: 8:43
_0 = const (); // scope 0 at $DIR/inline-into-box-place.rs:7:11: 9:2
// ty::Const
// + ty: ()
// + val: Value(Scalar(<ZST>))
// mir::Constant
// + span: $DIR/inline-into-box-place.rs:7:11: 9:2
// + literal: Const { ty: (), val: Value(Scalar(<ZST>)) }
- drop(_1) -> [return: bb3, unwind: bb1]; // scope 0 at $DIR/inline-into-box-place.rs:9:1: 9:2
+ _1 = move _2; // scope 0 at $DIR/inline-into-box-place.rs:8:29: 8:43
+ StorageDead(_2); // scope 0 at $DIR/inline-into-box-place.rs:8:42: 8:43
+ _0 = const (); // scope 0 at $DIR/inline-into-box-place.rs:7:11: 9:2
+ drop(_1) -> [return: bb2, unwind: bb1]; // scope 0 at $DIR/inline-into-box-place.rs:9:1: 9:2
}
- bb3: {
- StorageDead(_1); // scope 0 at $DIR/inline-into-box-place.rs:9:1: 9:2
- return; // scope 0 at $DIR/inline-into-box-place.rs:9:2: 9:2
+ bb1 (cleanup): {
+ resume; // scope 0 at $DIR/inline-into-box-place.rs:7:1: 9:2
bb1 (cleanup): {
resume; // scope 0 at $DIR/inline-into-box-place.rs:7:1: 9:2
}
bb2: {
- _1 = move _2; // scope 0 at $DIR/inline-into-box-place.rs:8:29: 8:43
- StorageDead(_2); // scope 0 at $DIR/inline-into-box-place.rs:8:42: 8:43
- _0 = const (); // scope 0 at $DIR/inline-into-box-place.rs:7:11: 9:2
- drop(_1) -> [return: bb3, unwind: bb1]; // scope 0 at $DIR/inline-into-box-place.rs:9:1: 9:2
- }
-
- bb3: {
StorageDead(_1); // scope 0 at $DIR/inline-into-box-place.rs:9:1: 9:2
return; // scope 0 at $DIR/inline-into-box-place.rs:9:2: 9:2
- }
-
- bb4 (cleanup): {
- _3 = const alloc::alloc::box_free::<std::vec::Vec<u32>>(move (_2.0: std::ptr::Unique<std::vec::Vec<u32>>)) -> bb1; // scope 0 at $DIR/inline-into-box-place.rs:8:42: 8:43
- // mir::Constant
- // + span: $DIR/inline-into-box-place.rs:8:42: 8:43
- // + literal: Const { ty: unsafe fn(std::ptr::Unique<std::vec::Vec<u32>>) {alloc::alloc::box_free::<std::vec::Vec<u32>>}, val: Value(Scalar(<ZST>)) }
+ bb2: {
+ StorageDead(_1); // scope 0 at $DIR/inline-into-box-place.rs:9:1: 9:2
+ return; // scope 0 at $DIR/inline-into-box-place.rs:9:2: 9:2
}
}
src/test/mir-opt/inline/inline_specialization.main.Inline.diff
浏览文件 @
86cf4617
...
...
@@ -21,12 +21,6 @@
- bb1: {
+ _1 = const 123_u32; // scope 2 at $DIR/inline-specialization.rs:14:31: 14:34
_0 = const (); // scope 0 at $DIR/inline-specialization.rs:4:11: 6:2
// ty::Const
// + ty: ()
// + val: Value(Scalar(<ZST>))
// mir::Constant
// + span: $DIR/inline-specialization.rs:4:11: 6:2
// + literal: Const { ty: (), val: Value(Scalar(<ZST>)) }
StorageDead(_1); // scope 0 at $DIR/inline-specialization.rs:6:1: 6:2
return; // scope 0 at $DIR/inline-specialization.rs:6:2: 6:2
}
...
...
src/test/mir-opt/instrument_coverage.main.InstrumentCoverage.diff
浏览文件 @
86cf4617
...
...
@@ -35,24 +35,12 @@
bb5: {
_1 = const (); // scope 0 at /the/src/instrument_coverage.rs:12:9: 14:10
// ty::Const
// + ty: ()
// + val: Value(Scalar(<ZST>))
// mir::Constant
// + span: /the/src/instrument_coverage.rs:12:9: 14:10
// + literal: Const { ty: (), val: Value(Scalar(<ZST>)) }
StorageDead(_2); // scope 0 at /the/src/instrument_coverage.rs:15:5: 15:6
goto -> bb0; // scope 0 at /the/src/instrument_coverage.rs:11:5: 15:6
}
bb6: {
_0 = const (); // scope 0 at /the/src/instrument_coverage.rs:13:13: 13:18
// ty::Const
// + ty: ()
// + val: Value(Scalar(<ZST>))
// mir::Constant
// + span: /the/src/instrument_coverage.rs:13:13: 13:18
// + literal: Const { ty: (), val: Value(Scalar(<ZST>)) }
StorageDead(_2); // scope 0 at /the/src/instrument_coverage.rs:15:5: 15:6
return; // scope 0 at /the/src/instrument_coverage.rs:16:2: 16:2
}
...
...
src/test/mir-opt/issue_38669.main.SimplifyCfg-initial.after.mir
浏览文件 @
86cf4617
...
...
@@ -40,33 +40,15 @@ fn main() -> () {
bb5: {
_3 = const (); // scope 1 at $DIR/issue-38669.rs:7:9: 9:10
// ty::Const
// + ty: ()
// + val: Value(Scalar(<ZST>))
// mir::Constant
// + span: $DIR/issue-38669.rs:7:9: 9:10
// + literal: Const { ty: (), val: Value(Scalar(<ZST>)) }
StorageDead(_4); // scope 1 at $DIR/issue-38669.rs:9:9: 9:10
StorageDead(_3); // scope 1 at $DIR/issue-38669.rs:9:9: 9:10
_1 = const true; // scope 1 at $DIR/issue-38669.rs:10:9: 10:28
_2 = const (); // scope 1 at $DIR/issue-38669.rs:6:10: 11:6
// ty::Const
// + ty: ()
// + val: Value(Scalar(<ZST>))
// mir::Constant
// + span: $DIR/issue-38669.rs:6:10: 11:6
// + literal: Const { ty: (), val: Value(Scalar(<ZST>)) }
goto -> bb2; // scope 1 at $DIR/issue-38669.rs:6:5: 11:6
}
bb6: {
_0 = const (); // scope 1 at $DIR/issue-38669.rs:8:13: 8:18
// ty::Const
// + ty: ()
// + val: Value(Scalar(<ZST>))
// mir::Constant
// + span: $DIR/issue-38669.rs:8:13: 8:18
// + literal: Const { ty: (), val: Value(Scalar(<ZST>)) }
StorageDead(_4); // scope 1 at $DIR/issue-38669.rs:9:9: 9:10
StorageDead(_3); // scope 1 at $DIR/issue-38669.rs:9:9: 9:10
StorageDead(_1); // scope 0 at $DIR/issue-38669.rs:12:1: 12:2
...
...
src/test/mir-opt/issue_41110.main.ElaborateDrops.after.mir
浏览文件 @
86cf4617
...
...
@@ -56,12 +56,6 @@ fn main() -> () {
_5 = const false; // scope 0 at $DIR/issue-41110.rs:8:27: 8:28
StorageDead(_2); // scope 0 at $DIR/issue-41110.rs:8:27: 8:28
_0 = const (); // scope 0 at $DIR/issue-41110.rs:7:11: 9:2
// ty::Const
// + ty: ()
// + val: Value(Scalar(<ZST>))
// mir::Constant
// + span: $DIR/issue-41110.rs:7:11: 9:2
// + literal: Const { ty: (), val: Value(Scalar(<ZST>)) }
StorageDead(_1); // scope 0 at $DIR/issue-41110.rs:9:1: 9:2
return; // scope 0 at $DIR/issue-41110.rs:9:2: 9:2
}
...
...
src/test/mir-opt/issue_41110.test.ElaborateDrops.after.mir
浏览文件 @
86cf4617
...
...
@@ -67,12 +67,6 @@ fn test() -> () {
bb8: {
StorageDead(_5); // scope 2 at $DIR/issue-41110.rs:18:9: 18:10
_0 = const (); // scope 0 at $DIR/issue-41110.rs:14:15: 19:2
// ty::Const
// + ty: ()
// + val: Value(Scalar(<ZST>))
// mir::Constant
// + span: $DIR/issue-41110.rs:14:15: 19:2
// + literal: Const { ty: (), val: Value(Scalar(<ZST>)) }
drop(_2) -> [return: bb9, unwind: bb3]; // scope 1 at $DIR/issue-41110.rs:19:1: 19:2
}
...
...
src/test/mir-opt/issue_41888.main.ElaborateDrops.after.mir
浏览文件 @
86cf4617
...
...
@@ -46,12 +46,6 @@ fn main() -> () {
bb4: {
_0 = const (); // scope 1 at $DIR/issue-41888.rs:8:5: 14:6
// ty::Const
// + ty: ()
// + val: Value(Scalar(<ZST>))
// mir::Constant
// + span: $DIR/issue-41888.rs:8:5: 14:6
// + literal: Const { ty: (), val: Value(Scalar(<ZST>)) }
goto -> bb11; // scope 1 at $DIR/issue-41888.rs:8:5: 14:6
}
...
...
@@ -80,12 +74,6 @@ fn main() -> () {
bb9: {
_0 = const (); // scope 1 at $DIR/issue-41888.rs:10:9: 13:10
// ty::Const
// + ty: ()
// + val: Value(Scalar(<ZST>))
// mir::Constant
// + span: $DIR/issue-41888.rs:10:9: 13:10
// + literal: Const { ty: (), val: Value(Scalar(<ZST>)) }
goto -> bb11; // scope 1 at $DIR/issue-41888.rs:10:9: 13:10
}
...
...
@@ -94,12 +82,6 @@ fn main() -> () {
_9 = const false; // scope 1 at $DIR/issue-41888.rs:10:21: 10:23
_6 = move ((_1 as F).0: K); // scope 1 at $DIR/issue-41888.rs:10:21: 10:23
_0 = const (); // scope 2 at $DIR/issue-41888.rs:10:29: 13:10
// ty::Const
// + ty: ()
// + val: Value(Scalar(<ZST>))
// mir::Constant
// + span: $DIR/issue-41888.rs:10:29: 13:10
// + literal: Const { ty: (), val: Value(Scalar(<ZST>)) }
StorageDead(_6); // scope 1 at $DIR/issue-41888.rs:13:9: 13:10
goto -> bb11; // scope 1 at $DIR/issue-41888.rs:10:9: 13:10
}
...
...
src/test/mir-opt/issue_49232.main.mir_map.0.mir
浏览文件 @
86cf4617
...
...
@@ -42,12 +42,6 @@ fn main() -> () {
bb6: {
_0 = const (); // scope 0 at $DIR/issue-49232.rs:10:25: 10:30
// ty::Const
// + ty: ()
// + val: Value(Scalar(<ZST>))
// mir::Constant
// + span: $DIR/issue-49232.rs:10:25: 10:30
// + literal: Const { ty: (), val: Value(Scalar(<ZST>)) }
goto -> bb8; // scope 0 at $DIR/issue-49232.rs:10:25: 10:30
}
...
...
@@ -90,12 +84,6 @@ fn main() -> () {
StorageDead(_6); // scope 1 at $DIR/issue-49232.rs:13:21: 13:22
StorageDead(_5); // scope 1 at $DIR/issue-49232.rs:13:22: 13:23
_1 = const (); // scope 0 at $DIR/issue-49232.rs:6:10: 14:6
// ty::Const
// + ty: ()
// + val: Value(Scalar(<ZST>))
// mir::Constant
// + span: $DIR/issue-49232.rs:6:10: 14:6
// + literal: Const { ty: (), val: Value(Scalar(<ZST>)) }
StorageDead(_2); // scope 0 at $DIR/issue-49232.rs:14:5: 14:6
goto -> bb1; // scope 0 at $DIR/issue-49232.rs:6:5: 14:6
}
...
...
src/test/mir-opt/issue_72181.main.mir_map.0.mir.32bit
浏览文件 @
86cf4617
...
...
@@ -56,12 +56,6 @@ fn main() -> () {
StorageDead(_6); // scope 2 at $DIR/issue-72181.rs:27:30: 27:31
StorageDead(_5); // scope 2 at $DIR/issue-72181.rs:27:30: 27:31
_0 = const (); // scope 0 at $DIR/issue-72181.rs:23:11: 28:2
// ty::Const
// + ty: ()
// + val: Value(Scalar(<ZST>))
// mir::Constant
// + span: $DIR/issue-72181.rs:23:11: 28:2
// + literal: Const { ty: (), val: Value(Scalar(<ZST>)) }
StorageDead(_2); // scope 1 at $DIR/issue-72181.rs:28:1: 28:2
goto -> bb4; // scope 0 at $DIR/issue-72181.rs:28:2: 28:2
}
...
...
src/test/mir-opt/issue_72181.main.mir_map.0.mir.64bit
浏览文件 @
86cf4617
...
...
@@ -56,12 +56,6 @@ fn main() -> () {
StorageDead(_6); // scope 2 at $DIR/issue-72181.rs:27:30: 27:31
StorageDead(_5); // scope 2 at $DIR/issue-72181.rs:27:30: 27:31
_0 = const (); // scope 0 at $DIR/issue-72181.rs:23:11: 28:2
// ty::Const
// + ty: ()
// + val: Value(Scalar(<ZST>))
// mir::Constant
// + span: $DIR/issue-72181.rs:23:11: 28:2
// + literal: Const { ty: (), val: Value(Scalar(<ZST>)) }
StorageDead(_2); // scope 1 at $DIR/issue-72181.rs:28:1: 28:2
goto -> bb4; // scope 0 at $DIR/issue-72181.rs:28:2: 28:2
}
...
...
src/test/mir-opt/issue_73223.main.PreCodegen.diff.32bit
浏览文件 @
86cf4617
...
...
@@ -112,12 +112,6 @@
StorageDead(_7); // scope 3 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
StorageDead(_5); // scope 3 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
_0 = const (); // scope 0 at $DIR/issue-73223.rs:1:11: 9:2
// ty::Const
// + ty: ()
// + val: Value(Scalar(<ZST>))
// mir::Constant
// + span: $DIR/issue-73223.rs:1:11: 9:2
// + literal: Const { ty: (), val: Value(Scalar(<ZST>)) }
StorageDead(_3); // scope 1 at $DIR/issue-73223.rs:9:1: 9:2
return; // scope 0 at $DIR/issue-73223.rs:9:2: 9:2
}
...
...
src/test/mir-opt/issue_73223.main.PreCodegen.diff.64bit
浏览文件 @
86cf4617
...
...
@@ -112,12 +112,6 @@
StorageDead(_7); // scope 3 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
StorageDead(_5); // scope 3 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
_0 = const (); // scope 0 at $DIR/issue-73223.rs:1:11: 9:2
// ty::Const
// + ty: ()
// + val: Value(Scalar(<ZST>))
// mir::Constant
// + span: $DIR/issue-73223.rs:1:11: 9:2
// + literal: Const { ty: (), val: Value(Scalar(<ZST>)) }
StorageDead(_3); // scope 1 at $DIR/issue-73223.rs:9:1: 9:2
return; // scope 0 at $DIR/issue-73223.rs:9:2: 9:2
}
...
...
src/test/mir-opt/issue_73223.main.SimplifyArmIdentity.diff.32bit
浏览文件 @
86cf4617
...
...
@@ -104,12 +104,6 @@
bb1: {
_0 = const (); // scope 0 at $DIR/issue-73223.rs:4:17: 4:23
// ty::Const
// + ty: ()
// + val: Value(Scalar(<ZST>))
// mir::Constant
// + span: $DIR/issue-73223.rs:4:17: 4:23
// + literal: Const { ty: (), val: Value(Scalar(<ZST>)) }
StorageDead(_2); // scope 0 at $DIR/issue-73223.rs:5:6: 5:7
StorageDead(_1); // scope 0 at $DIR/issue-73223.rs:9:1: 9:2
goto -> bb3; // scope 0 at $DIR/issue-73223.rs:4:17: 4:23
...
...
@@ -168,24 +162,12 @@
bb4: {
_8 = const (); // scope 4 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
// ty::Const
// + ty: ()
// + val: Value(Scalar(<ZST>))
// mir::Constant
// + span: $SRC_DIR/core/src/macros/mod.rs:LL:COL
// + literal: Const { ty: (), val: Value(Scalar(<ZST>)) }
StorageDead(_15); // scope 4 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
StorageDead(_14); // scope 3 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
StorageDead(_13); // scope 3 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
StorageDead(_9); // scope 3 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
StorageDead(_8); // scope 3 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
_0 = const (); // scope 0 at $DIR/issue-73223.rs:1:11: 9:2
// ty::Const
// + ty: ()
// + val: Value(Scalar(<ZST>))
// mir::Constant
// + span: $DIR/issue-73223.rs:1:11: 9:2
// + literal: Const { ty: (), val: Value(Scalar(<ZST>)) }
StorageDead(_6); // scope 1 at $DIR/issue-73223.rs:9:1: 9:2
StorageDead(_1); // scope 0 at $DIR/issue-73223.rs:9:1: 9:2
goto -> bb3; // scope 0 at $DIR/issue-73223.rs:9:2: 9:2
...
...
src/test/mir-opt/issue_73223.main.SimplifyArmIdentity.diff.64bit
浏览文件 @
86cf4617
...
...
@@ -104,12 +104,6 @@
bb1: {
_0 = const (); // scope 0 at $DIR/issue-73223.rs:4:17: 4:23
// ty::Const
// + ty: ()
// + val: Value(Scalar(<ZST>))
// mir::Constant
// + span: $DIR/issue-73223.rs:4:17: 4:23
// + literal: Const { ty: (), val: Value(Scalar(<ZST>)) }
StorageDead(_2); // scope 0 at $DIR/issue-73223.rs:5:6: 5:7
StorageDead(_1); // scope 0 at $DIR/issue-73223.rs:9:1: 9:2
goto -> bb3; // scope 0 at $DIR/issue-73223.rs:4:17: 4:23
...
...
@@ -168,24 +162,12 @@
bb4: {
_8 = const (); // scope 4 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
// ty::Const
// + ty: ()
// + val: Value(Scalar(<ZST>))
// mir::Constant
// + span: $SRC_DIR/core/src/macros/mod.rs:LL:COL
// + literal: Const { ty: (), val: Value(Scalar(<ZST>)) }
StorageDead(_15); // scope 4 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
StorageDead(_14); // scope 3 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
StorageDead(_13); // scope 3 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
StorageDead(_9); // scope 3 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
StorageDead(_8); // scope 3 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
_0 = const (); // scope 0 at $DIR/issue-73223.rs:1:11: 9:2
// ty::Const
// + ty: ()
// + val: Value(Scalar(<ZST>))
// mir::Constant
// + span: $DIR/issue-73223.rs:1:11: 9:2
// + literal: Const { ty: (), val: Value(Scalar(<ZST>)) }
StorageDead(_6); // scope 1 at $DIR/issue-73223.rs:9:1: 9:2
StorageDead(_1); // scope 0 at $DIR/issue-73223.rs:9:1: 9:2
goto -> bb3; // scope 0 at $DIR/issue-73223.rs:9:2: 9:2
...
...
src/test/mir-opt/loop_test.main.SimplifyCfg-promote-consts.after.mir
浏览文件 @
86cf4617
...
...
@@ -30,12 +30,6 @@ fn main() -> () {
bb3: {
_1 = const (); // scope 0 at $DIR/loop_test.rs:10:5: 12:6
// ty::Const
// + ty: ()
// + val: Value(Scalar(<ZST>))
// mir::Constant
// + span: $DIR/loop_test.rs:10:5: 12:6
// + literal: Const { ty: (), val: Value(Scalar(<ZST>)) }
StorageDead(_2); // scope 0 at $DIR/loop_test.rs:12:5: 12:6
StorageDead(_1); // scope 0 at $DIR/loop_test.rs:12:5: 12:6
StorageLive(_4); // scope 0 at $DIR/loop_test.rs:13:5: 16:6
...
...
@@ -44,12 +38,6 @@ fn main() -> () {
bb4: {
_0 = const (); // scope 0 at $DIR/loop_test.rs:11:9: 11:15
// ty::Const
// + ty: ()
// + val: Value(Scalar(<ZST>))
// mir::Constant
// + span: $DIR/loop_test.rs:11:9: 11:15
// + literal: Const { ty: (), val: Value(Scalar(<ZST>)) }
StorageDead(_2); // scope 0 at $DIR/loop_test.rs:12:5: 12:6
StorageDead(_1); // scope 0 at $DIR/loop_test.rs:12:5: 12:6
return; // scope 0 at $DIR/loop_test.rs:17:2: 17:2
...
...
src/test/mir-opt/match_false_edges.full_tested_match.PromoteTemps.after.mir
浏览文件 @
86cf4617
...
...
@@ -111,12 +111,6 @@ fn full_tested_match() -> () {
StorageDead(_2); // scope 0 at $DIR/match_false_edges.rs:19:6: 19:7
StorageDead(_1); // scope 0 at $DIR/match_false_edges.rs:19:6: 19:7
_0 = const (); // scope 0 at $DIR/match_false_edges.rs:14:28: 20:2
// ty::Const
// + ty: ()
// + val: Value(Scalar(<ZST>))
// mir::Constant
// + span: $DIR/match_false_edges.rs:14:28: 20:2
// + literal: Const { ty: (), val: Value(Scalar(<ZST>)) }
return; // scope 0 at $DIR/match_false_edges.rs:20:2: 20:2
}
}
src/test/mir-opt/match_false_edges.full_tested_match2.PromoteTemps.before.mir
浏览文件 @
86cf4617
...
...
@@ -103,12 +103,6 @@ fn full_tested_match2() -> () {
StorageDead(_2); // scope 0 at $DIR/match_false_edges.rs:30:6: 30:7
StorageDead(_1); // scope 0 at $DIR/match_false_edges.rs:30:6: 30:7
_0 = const (); // scope 0 at $DIR/match_false_edges.rs:25:29: 31:2
// ty::Const
// + ty: ()
// + val: Value(Scalar(<ZST>))
// mir::Constant
// + span: $DIR/match_false_edges.rs:25:29: 31:2
// + literal: Const { ty: (), val: Value(Scalar(<ZST>)) }
return; // scope 0 at $DIR/match_false_edges.rs:31:2: 31:2
}
}
src/test/mir-opt/match_false_edges.main.PromoteTemps.before.mir
浏览文件 @
86cf4617
...
...
@@ -147,12 +147,6 @@ fn main() -> () {
StorageDead(_2); // scope 0 at $DIR/match_false_edges.rs:40:6: 40:7
StorageDead(_1); // scope 0 at $DIR/match_false_edges.rs:40:6: 40:7
_0 = const (); // scope 0 at $DIR/match_false_edges.rs:34:11: 41:2
// ty::Const
// + ty: ()
// + val: Value(Scalar(<ZST>))
// mir::Constant
// + span: $DIR/match_false_edges.rs:34:11: 41:2
// + literal: Const { ty: (), val: Value(Scalar(<ZST>)) }
return; // scope 0 at $DIR/match_false_edges.rs:41:2: 41:2
}
}
src/test/mir-opt/match_test.main.SimplifyCfg-initial.after.mir
浏览文件 @
86cf4617
...
...
@@ -99,12 +99,6 @@ fn main() -> () {
bb14: {
StorageDead(_3); // scope 2 at $DIR/match_test.rs:17:6: 17:7
_0 = const (); // scope 0 at $DIR/match_test.rs:6:11: 18:2
// ty::Const
// + ty: ()
// + val: Value(Scalar(<ZST>))
// mir::Constant
// + span: $DIR/match_test.rs:6:11: 18:2
// + literal: Const { ty: (), val: Value(Scalar(<ZST>)) }
StorageDead(_2); // scope 1 at $DIR/match_test.rs:18:1: 18:2
StorageDead(_1); // scope 0 at $DIR/match_test.rs:18:1: 18:2
return; // scope 0 at $DIR/match_test.rs:18:2: 18:2
...
...
src/test/mir-opt/matches_reduce_branches.foo.MatchBranchSimplification.diff.32bit
浏览文件 @
86cf4617
...
...
@@ -31,12 +31,6 @@
bb4: {
_0 = const (); // scope 0 at $DIR/matches_reduce_branches.rs:6:5: 8:6
// ty::Const
// + ty: ()
// + val: Value(Scalar(<ZST>))
// mir::Constant
// + span: $DIR/matches_reduce_branches.rs:6:5: 8:6
// + literal: Const { ty: (), val: Value(Scalar(<ZST>)) }
goto -> bb5; // scope 0 at $DIR/matches_reduce_branches.rs:6:5: 8:6
}
...
...
src/test/mir-opt/matches_reduce_branches.foo.MatchBranchSimplification.diff.64bit
浏览文件 @
86cf4617
...
...
@@ -31,12 +31,6 @@
bb4: {
_0 = const (); // scope 0 at $DIR/matches_reduce_branches.rs:6:5: 8:6
// ty::Const
// + ty: ()
// + val: Value(Scalar(<ZST>))
// mir::Constant
// + span: $DIR/matches_reduce_branches.rs:6:5: 8:6
// + literal: Const { ty: (), val: Value(Scalar(<ZST>)) }
goto -> bb5; // scope 0 at $DIR/matches_reduce_branches.rs:6:5: 8:6
}
...
...
src/test/mir-opt/nll/region_subtyping_basic.main.nll.0.mir.32bit
浏览文件 @
86cf4617
...
...
@@ -97,24 +97,12 @@ fn main() -> () {
StorageDead(_9); // bb6[0]: scope 3 at $DIR/region-subtyping-basic.rs:21:17: 21:18
StorageDead(_8); // bb6[1]: scope 3 at $DIR/region-subtyping-basic.rs:21:18: 21:19
_0 = const Const(Value(Scalar(<ZST>)): ()); // bb6[2]: scope 3 at $DIR/region-subtyping-basic.rs:20:13: 22:6
// ty::Const
// + ty: ()
// + val: Value(Scalar(<ZST>))
// mir::Constant
// + span: $DIR/region-subtyping-basic.rs:20:13: 22:6
// + literal: Const { ty: (), val: Value(Scalar(<ZST>)) }
goto -> bb8; // bb6[3]: scope 3 at $DIR/region-subtyping-basic.rs:20:5: 24:6
}
bb7: {
StorageDead(_10); // bb7[0]: scope 3 at $DIR/region-subtyping-basic.rs:23:18: 23:19
_0 = const Const(Value(Scalar(<ZST>)): ()); // bb7[1]: scope 3 at $DIR/region-subtyping-basic.rs:22:12: 24:6
// ty::Const
// + ty: ()
// + val: Value(Scalar(<ZST>))
// mir::Constant
// + span: $DIR/region-subtyping-basic.rs:22:12: 24:6
// + literal: Const { ty: (), val: Value(Scalar(<ZST>)) }
goto -> bb8; // bb7[2]: scope 3 at $DIR/region-subtyping-basic.rs:20:5: 24:6
}
...
...
src/test/mir-opt/nll/region_subtyping_basic.main.nll.0.mir.64bit
浏览文件 @
86cf4617
...
...
@@ -97,24 +97,12 @@ fn main() -> () {
StorageDead(_9); // bb6[0]: scope 3 at $DIR/region-subtyping-basic.rs:21:17: 21:18
StorageDead(_8); // bb6[1]: scope 3 at $DIR/region-subtyping-basic.rs:21:18: 21:19
_0 = const Const(Value(Scalar(<ZST>)): ()); // bb6[2]: scope 3 at $DIR/region-subtyping-basic.rs:20:13: 22:6
// ty::Const
// + ty: ()
// + val: Value(Scalar(<ZST>))
// mir::Constant
// + span: $DIR/region-subtyping-basic.rs:20:13: 22:6
// + literal: Const { ty: (), val: Value(Scalar(<ZST>)) }
goto -> bb8; // bb6[3]: scope 3 at $DIR/region-subtyping-basic.rs:20:5: 24:6
}
bb7: {
StorageDead(_10); // bb7[0]: scope 3 at $DIR/region-subtyping-basic.rs:23:18: 23:19
_0 = const Const(Value(Scalar(<ZST>)): ()); // bb7[1]: scope 3 at $DIR/region-subtyping-basic.rs:22:12: 24:6
// ty::Const
// + ty: ()
// + val: Value(Scalar(<ZST>))
// mir::Constant
// + span: $DIR/region-subtyping-basic.rs:22:12: 24:6
// + literal: Const { ty: (), val: Value(Scalar(<ZST>)) }
goto -> bb8; // bb7[2]: scope 3 at $DIR/region-subtyping-basic.rs:20:5: 24:6
}
...
...
src/test/mir-opt/no_spurious_drop_after_call.main.ElaborateDrops.before.mir
浏览文件 @
86cf4617
...
...
@@ -43,12 +43,6 @@ fn main() -> () {
StorageDead(_4); // scope 0 at $DIR/no-spurious-drop-after-call.rs:9:35: 9:36
StorageDead(_1); // scope 0 at $DIR/no-spurious-drop-after-call.rs:9:35: 9:36
_0 = const (); // scope 0 at $DIR/no-spurious-drop-after-call.rs:8:11: 10:2
// ty::Const
// + ty: ()
// + val: Value(Scalar(<ZST>))
// mir::Constant
// + span: $DIR/no-spurious-drop-after-call.rs:8:11: 10:2
// + literal: Const { ty: (), val: Value(Scalar(<ZST>)) }
return; // scope 0 at $DIR/no-spurious-drop-after-call.rs:10:2: 10:2
}
...
...
src/test/mir-opt/packed_struct_drop_aligned.main.SimplifyCfg-elaborate-drops.after.mir.32bit
浏览文件 @
86cf4617
...
...
@@ -50,12 +50,6 @@ fn main() -> () {
(_1.0: Aligned) = move _4; // scope 1 at $DIR/packed-struct-drop-aligned.rs:7:5: 7:8
StorageDead(_4); // scope 1 at $DIR/packed-struct-drop-aligned.rs:7:28: 7:29
_0 = const (); // scope 0 at $DIR/packed-struct-drop-aligned.rs:5:11: 8:2
// ty::Const
// + ty: ()
// + val: Value(Scalar(<ZST>))
// mir::Constant
// + span: $DIR/packed-struct-drop-aligned.rs:5:11: 8:2
// + literal: Const { ty: (), val: Value(Scalar(<ZST>)) }
drop(_1) -> [return: bb2, unwind: bb1]; // scope 0 at $DIR/packed-struct-drop-aligned.rs:8:1: 8:2
}
}
src/test/mir-opt/packed_struct_drop_aligned.main.SimplifyCfg-elaborate-drops.after.mir.64bit
浏览文件 @
86cf4617
...
...
@@ -50,12 +50,6 @@ fn main() -> () {
(_1.0: Aligned) = move _4; // scope 1 at $DIR/packed-struct-drop-aligned.rs:7:5: 7:8
StorageDead(_4); // scope 1 at $DIR/packed-struct-drop-aligned.rs:7:28: 7:29
_0 = const (); // scope 0 at $DIR/packed-struct-drop-aligned.rs:5:11: 8:2
// ty::Const
// + ty: ()
// + val: Value(Scalar(<ZST>))
// mir::Constant
// + span: $DIR/packed-struct-drop-aligned.rs:5:11: 8:2
// + literal: Const { ty: (), val: Value(Scalar(<ZST>)) }
drop(_1) -> [return: bb2, unwind: bb1]; // scope 0 at $DIR/packed-struct-drop-aligned.rs:8:1: 8:2
}
}
src/test/mir-opt/retag.main.SimplifyCfg-elaborate-drops.after.mir
浏览文件 @
86cf4617
...
...
@@ -111,12 +111,6 @@ fn main() -> () {
_11 = _12; // scope 4 at $DIR/retag.rs:36:18: 36:29
StorageDead(_12); // scope 4 at $DIR/retag.rs:36:29: 36:30
_2 = const (); // scope 1 at $DIR/retag.rs:31:5: 37:6
// ty::Const
// + ty: ()
// + val: Value(Scalar(<ZST>))
// mir::Constant
// + span: $DIR/retag.rs:31:5: 37:6
// + literal: Const { ty: (), val: Value(Scalar(<ZST>)) }
StorageDead(_11); // scope 4 at $DIR/retag.rs:37:5: 37:6
StorageDead(_10); // scope 3 at $DIR/retag.rs:37:5: 37:6
StorageDead(_8); // scope 2 at $DIR/retag.rs:37:5: 37:6
...
...
@@ -200,12 +194,6 @@ fn main() -> () {
_25 = _26; // scope 7 at $DIR/retag.rs:50:14: 50:28
StorageDead(_26); // scope 7 at $DIR/retag.rs:50:28: 50:29
_0 = const (); // scope 0 at $DIR/retag.rs:29:11: 51:2
// ty::Const
// + ty: ()
// + val: Value(Scalar(<ZST>))
// mir::Constant
// + span: $DIR/retag.rs:29:11: 51:2
// + literal: Const { ty: (), val: Value(Scalar(<ZST>)) }
StorageDead(_25); // scope 7 at $DIR/retag.rs:51:1: 51:2
StorageDead(_15); // scope 6 at $DIR/retag.rs:51:1: 51:2
StorageDead(_13); // scope 1 at $DIR/retag.rs:51:1: 51:2
...
...
src/test/mir-opt/simplify_arm_identity.main.SimplifyArmIdentity.diff.32bit
浏览文件 @
86cf4617
...
...
@@ -51,12 +51,6 @@
bb4: {
StorageDead(_2); // scope 1 at $DIR/simplify-arm-identity.rs:22:6: 22:7
_0 = const (); // scope 0 at $DIR/simplify-arm-identity.rs:17:11: 23:2
// ty::Const
// + ty: ()
// + val: Value(Scalar(<ZST>))
// mir::Constant
// + span: $DIR/simplify-arm-identity.rs:17:11: 23:2
// + literal: Const { ty: (), val: Value(Scalar(<ZST>)) }
StorageDead(_1); // scope 0 at $DIR/simplify-arm-identity.rs:23:1: 23:2
return; // scope 0 at $DIR/simplify-arm-identity.rs:23:2: 23:2
}
...
...
src/test/mir-opt/simplify_arm_identity.main.SimplifyArmIdentity.diff.64bit
浏览文件 @
86cf4617
...
...
@@ -51,12 +51,6 @@
bb4: {
StorageDead(_2); // scope 1 at $DIR/simplify-arm-identity.rs:22:6: 22:7
_0 = const (); // scope 0 at $DIR/simplify-arm-identity.rs:17:11: 23:2
// ty::Const
// + ty: ()
// + val: Value(Scalar(<ZST>))
// mir::Constant
// + span: $DIR/simplify-arm-identity.rs:17:11: 23:2
// + literal: Const { ty: (), val: Value(Scalar(<ZST>)) }
StorageDead(_1); // scope 0 at $DIR/simplify-arm-identity.rs:23:1: 23:2
return; // scope 0 at $DIR/simplify-arm-identity.rs:23:2: 23:2
}
...
...
src/test/mir-opt/simplify_cfg.main.SimplifyCfg-early-opt.diff
浏览文件 @
86cf4617
...
...
@@ -38,12 +38,6 @@
- bb5: {
+ bb2: {
_1 = const (); // scope 0 at $DIR/simplify_cfg.rs:7:9: 9:10
// ty::Const
// + ty: ()
// + val: Value(Scalar(<ZST>))
// mir::Constant
// + span: $DIR/simplify_cfg.rs:7:9: 9:10
// + literal: Const { ty: (), val: Value(Scalar(<ZST>)) }
StorageDead(_2); // scope 0 at $DIR/simplify_cfg.rs:10:5: 10:6
goto -> bb0; // scope 0 at $DIR/simplify_cfg.rs:6:5: 10:6
}
...
...
@@ -51,12 +45,6 @@
- bb6: {
+ bb3: {
_0 = const (); // scope 0 at $DIR/simplify_cfg.rs:8:13: 8:18
// ty::Const
// + ty: ()
// + val: Value(Scalar(<ZST>))
// mir::Constant
// + span: $DIR/simplify_cfg.rs:8:13: 8:18
// + literal: Const { ty: (), val: Value(Scalar(<ZST>)) }
StorageDead(_2); // scope 0 at $DIR/simplify_cfg.rs:10:5: 10:6
return; // scope 0 at $DIR/simplify_cfg.rs:11:2: 11:2
}
...
...
src/test/mir-opt/simplify_cfg.main.SimplifyCfg-initial.diff
浏览文件 @
86cf4617
...
...
@@ -50,12 +50,6 @@
- bb7: {
+ bb5: {
_1 = const (); // scope 0 at $DIR/simplify_cfg.rs:7:9: 9:10
// ty::Const
// + ty: ()
// + val: Value(Scalar(<ZST>))
// mir::Constant
// + span: $DIR/simplify_cfg.rs:7:9: 9:10
// + literal: Const { ty: (), val: Value(Scalar(<ZST>)) }
- goto -> bb12; // scope 0 at $DIR/simplify_cfg.rs:7:9: 9:10
+ StorageDead(_2); // scope 0 at $DIR/simplify_cfg.rs:10:5: 10:6
+ goto -> bb0; // scope 0 at $DIR/simplify_cfg.rs:6:5: 10:6
...
...
@@ -64,12 +58,6 @@
- bb8: {
+ bb6: {
_0 = const (); // scope 0 at $DIR/simplify_cfg.rs:8:13: 8:18
// ty::Const
// + ty: ()
// + val: Value(Scalar(<ZST>))
// mir::Constant
// + span: $DIR/simplify_cfg.rs:8:13: 8:18
// + literal: Const { ty: (), val: Value(Scalar(<ZST>)) }
- goto -> bb9; // scope 0 at $DIR/simplify_cfg.rs:8:13: 8:18
- }
-
...
...
src/test/mir-opt/simplify_if.main.SimplifyBranches-after-const-prop.diff
浏览文件 @
86cf4617
...
...
@@ -15,12 +15,6 @@
bb1: {
_0 = const (); // scope 0 at $DIR/simplify_if.rs:6:5: 8:6
// ty::Const
// + ty: ()
// + val: Value(Scalar(<ZST>))
// mir::Constant
// + span: $DIR/simplify_if.rs:6:5: 8:6
// + literal: Const { ty: (), val: Value(Scalar(<ZST>)) }
goto -> bb4; // scope 0 at $DIR/simplify_if.rs:6:5: 8:6
}
...
...
@@ -35,12 +29,6 @@
bb3: {
StorageDead(_2); // scope 0 at $DIR/simplify_if.rs:7:15: 7:16
_0 = const (); // scope 0 at $DIR/simplify_if.rs:6:14: 8:6
// ty::Const
// + ty: ()
// + val: Value(Scalar(<ZST>))
// mir::Constant
// + span: $DIR/simplify_if.rs:6:14: 8:6
// + literal: Const { ty: (), val: Value(Scalar(<ZST>)) }
goto -> bb4; // scope 0 at $DIR/simplify_if.rs:6:5: 8:6
}
...
...
src/test/mir-opt/simplify_locals_fixedpoint.foo.SimplifyLocals.diff
浏览文件 @
86cf4617
...
...
@@ -31,12 +31,6 @@
bb1: {
_0 = const (); // scope 0 at $DIR/simplify-locals-fixedpoint.rs:4:5: 8:6
// ty::Const
// + ty: ()
// + val: Value(Scalar(<ZST>))
// mir::Constant
// + span: $DIR/simplify-locals-fixedpoint.rs:4:5: 8:6
// + literal: Const { ty: (), val: Value(Scalar(<ZST>)) }
goto -> bb7; // scope 0 at $DIR/simplify-locals-fixedpoint.rs:4:5: 8:6
}
...
...
@@ -58,23 +52,11 @@
bb4: {
_0 = const (); // scope 1 at $DIR/simplify-locals-fixedpoint.rs:5:9: 7:10
// ty::Const
// + ty: ()
// + val: Value(Scalar(<ZST>))
// mir::Constant
// + span: $DIR/simplify-locals-fixedpoint.rs:5:9: 7:10
// + literal: Const { ty: (), val: Value(Scalar(<ZST>)) }
goto -> bb6; // scope 1 at $DIR/simplify-locals-fixedpoint.rs:5:9: 7:10
}
bb5: {
_0 = const (); // scope 1 at $DIR/simplify-locals-fixedpoint.rs:5:21: 7:10
// ty::Const
// + ty: ()
// + val: Value(Scalar(<ZST>))
// mir::Constant
// + span: $DIR/simplify-locals-fixedpoint.rs:5:21: 7:10
// + literal: Const { ty: (), val: Value(Scalar(<ZST>)) }
goto -> bb6; // scope 1 at $DIR/simplify-locals-fixedpoint.rs:5:9: 7:10
}
...
...
src/test/mir-opt/simplify_locals_removes_unused_consts.main.SimplifyLocals.diff
浏览文件 @
86cf4617
...
...
@@ -24,21 +24,7 @@
- StorageLive(_2); // scope 0 at $DIR/simplify-locals-removes-unused-consts.rs:13:21: 13:23
- StorageLive(_3); // scope 0 at $DIR/simplify-locals-removes-unused-consts.rs:13:25: 13:27
- (_1.0: ()) = const (); // scope 0 at $DIR/simplify-locals-removes-unused-consts.rs:13:20: 13:28
- // ty::Const
- // + ty: ()
- // + val: Value(Scalar(<ZST>))
+ StorageLive(_1); // scope 1 at $DIR/simplify-locals-removes-unused-consts.rs:14:5: 14:22
+ _1 = const use_zst(const ((), ())) -> bb1; // scope 1 at $DIR/simplify-locals-removes-unused-consts.rs:14:5: 14:22
// mir::Constant
- // + span: $DIR/simplify-locals-removes-unused-consts.rs:13:20: 13:28
- // + literal: Const { ty: (), val: Value(Scalar(<ZST>)) }
- (_1.1: ()) = const (); // scope 0 at $DIR/simplify-locals-removes-unused-consts.rs:13:20: 13:28
- // ty::Const
- // + ty: ()
- // + val: Value(Scalar(<ZST>))
- // mir::Constant
- // + span: $DIR/simplify-locals-removes-unused-consts.rs:13:20: 13:28
- // + literal: Const { ty: (), val: Value(Scalar(<ZST>)) }
- StorageDead(_3); // scope 0 at $DIR/simplify-locals-removes-unused-consts.rs:13:27: 13:28
- StorageDead(_2); // scope 0 at $DIR/simplify-locals-removes-unused-consts.rs:13:27: 13:28
- StorageDead(_1); // scope 0 at $DIR/simplify-locals-removes-unused-consts.rs:13:28: 13:29
...
...
@@ -47,23 +33,13 @@
- StorageLive(_6); // scope 1 at $DIR/simplify-locals-removes-unused-consts.rs:14:14: 14:16
- StorageLive(_7); // scope 1 at $DIR/simplify-locals-removes-unused-consts.rs:14:18: 14:20
- (_5.0: ()) = const (); // scope 1 at $DIR/simplify-locals-removes-unused-consts.rs:14:13: 14:21
- // ty::Const
- // + ty: ()
- // + val: Value(Scalar(<ZST>))
- // mir::Constant
- // + span: $DIR/simplify-locals-removes-unused-consts.rs:14:13: 14:21
- // + literal: Const { ty: (), val: Value(Scalar(<ZST>)) }
- (_5.1: ()) = const (); // scope 1 at $DIR/simplify-locals-removes-unused-consts.rs:14:13: 14:21
- // ty::Const
- // + ty: ()
- // + val: Value(Scalar(<ZST>))
- // mir::Constant
- // + span: $DIR/simplify-locals-removes-unused-consts.rs:14:13: 14:21
- // + literal: Const { ty: (), val: Value(Scalar(<ZST>)) }
- StorageDead(_7); // scope 1 at $DIR/simplify-locals-removes-unused-consts.rs:14:20: 14:21
- StorageDead(_6); // scope 1 at $DIR/simplify-locals-removes-unused-consts.rs:14:20: 14:21
- _4 = const use_zst(const ((), ())) -> bb1; // scope 1 at $DIR/simplify-locals-removes-unused-consts.rs:14:5: 14:22
- // mir::Constant
+ StorageLive(_1); // scope 1 at $DIR/simplify-locals-removes-unused-consts.rs:14:5: 14:22
+ _1 = const use_zst(const ((), ())) -> bb1; // scope 1 at $DIR/simplify-locals-removes-unused-consts.rs:14:5: 14:22
// mir::Constant
// + span: $DIR/simplify-locals-removes-unused-consts.rs:14:5: 14:12
// + literal: Const { ty: fn(((), ())) {use_zst}, val: Value(Scalar(<ZST>)) }
// ty::Const
...
...
@@ -100,12 +76,6 @@
- StorageDead(_8); // scope 1 at $DIR/simplify-locals-removes-unused-consts.rs:16:35: 16:36
+ StorageDead(_2); // scope 1 at $DIR/simplify-locals-removes-unused-consts.rs:16:35: 16:36
_0 = const (); // scope 0 at $DIR/simplify-locals-removes-unused-consts.rs:12:11: 17:2
// ty::Const
// + ty: ()
// + val: Value(Scalar(<ZST>))
// mir::Constant
// + span: $DIR/simplify-locals-removes-unused-consts.rs:12:11: 17:2
// + literal: Const { ty: (), val: Value(Scalar(<ZST>)) }
return; // scope 0 at $DIR/simplify-locals-removes-unused-consts.rs:17:2: 17:2
}
}
...
...
src/test/mir-opt/simplify_match.main.ConstProp.diff
浏览文件 @
86cf4617
...
...
@@ -22,12 +22,6 @@
bb1: {
_0 = const (); // scope 0 at $DIR/simplify_match.rs:8:18: 8:20
// ty::Const
// + ty: ()
// + val: Value(Scalar(<ZST>))
// mir::Constant
// + span: $DIR/simplify_match.rs:8:18: 8:20
// + literal: Const { ty: (), val: Value(Scalar(<ZST>)) }
goto -> bb3; // scope 0 at $DIR/simplify_match.rs:6:5: 9:6
}
...
...
src/test/mir-opt/simplify_try_if_let.{{impl}}-append.SimplifyArmIdentity.diff
浏览文件 @
86cf4617
...
...
@@ -47,12 +47,6 @@
bb3: {
_0 = const (); // scope 0 at $DIR/simplify_try_if_let.rs:22:21: 22:24
// ty::Const
// + ty: ()
// + val: Value(Scalar(<ZST>))
// mir::Constant
// + span: $DIR/simplify_try_if_let.rs:22:21: 22:24
// + literal: Const { ty: (), val: Value(Scalar(<ZST>)) }
goto -> bb9; // scope 0 at $DIR/simplify_try_if_let.rs:21:9: 32:10
}
...
...
@@ -64,12 +58,6 @@
bb5: {
_0 = const (); // scope 1 at $DIR/simplify_try_if_let.rs:26:17: 30:18
// ty::Const
// + ty: ()
// + val: Value(Scalar(<ZST>))
// mir::Constant
// + span: $DIR/simplify_try_if_let.rs:26:17: 30:18
// + literal: Const { ty: (), val: Value(Scalar(<ZST>)) }
goto -> bb8; // scope 1 at $DIR/simplify_try_if_let.rs:26:17: 30:18
}
...
...
@@ -97,12 +85,6 @@
StorageDead(_9); // scope 3 at $DIR/simplify_try_if_let.rs:28:61: 28:62
StorageDead(_11); // scope 3 at $DIR/simplify_try_if_let.rs:28:62: 28:63
_0 = const (); // scope 3 at $DIR/simplify_try_if_let.rs:27:21: 29:22
// ty::Const
// + ty: ()
// + val: Value(Scalar(<ZST>))
// mir::Constant
// + span: $DIR/simplify_try_if_let.rs:27:21: 29:22
// + literal: Const { ty: (), val: Value(Scalar(<ZST>)) }
StorageDead(_8); // scope 1 at $DIR/simplify_try_if_let.rs:30:17: 30:18
goto -> bb8; // scope 1 at $DIR/simplify_try_if_let.rs:26:17: 30:18
}
...
...
src/test/mir-opt/storage_ranges.main.nll.0.mir
浏览文件 @
86cf4617
此差异已折叠。
点击以展开。
src/test/mir-opt/tls_access.main.SimplifyCfg-final.after.mir
浏览文件 @
86cf4617
此差异已折叠。
点击以展开。
src/test/mir-opt/uniform_array_move_out.move_out_by_subslice.mir_map.0.mir
浏览文件 @
86cf4617
此差异已折叠。
点击以展开。
src/test/mir-opt/uniform_array_move_out.move_out_from_end.mir_map.0.mir
浏览文件 @
86cf4617
此差异已折叠。
点击以展开。
src/test/mir-opt/uninhabited_enum.process_void.SimplifyLocals.after.mir
浏览文件 @
86cf4617
此差异已折叠。
点击以展开。
src/test/mir-opt/uninhabited_enum_branching.main.SimplifyCfg-after-uninhabited-enum-branching.after.mir
浏览文件 @
86cf4617
此差异已折叠。
点击以展开。
src/test/mir-opt/uninhabited_enum_branching.main.UninhabitedEnumBranching.diff
浏览文件 @
86cf4617
此差异已折叠。
点击以展开。
src/test/mir-opt/unreachable.main.UnreachablePropagation.diff
浏览文件 @
86cf4617
此差异已折叠。
点击以展开。
src/test/mir-opt/unreachable_asm.main.UnreachablePropagation.diff
浏览文件 @
86cf4617
此差异已折叠。
点击以展开。
src/test/mir-opt/unreachable_asm_2.main.UnreachablePropagation.diff
浏览文件 @
86cf4617
此差异已折叠。
点击以展开。
src/test/mir-opt/unreachable_diverging.main.UnreachablePropagation.diff
浏览文件 @
86cf4617
此差异已折叠。
点击以展开。
src/test/mir-opt/while_let_loops.change_loop_body.ConstProp.diff.32bit
浏览文件 @
86cf4617
此差异已折叠。
点击以展开。
src/test/mir-opt/while_let_loops.change_loop_body.ConstProp.diff.64bit
浏览文件 @
86cf4617
此差异已折叠。
点击以展开。
src/test/mir-opt/while_let_loops.change_loop_body.PreCodegen.after.mir.32bit
浏览文件 @
86cf4617
此差异已折叠。
点击以展开。
src/test/mir-opt/while_let_loops.change_loop_body.PreCodegen.after.mir.64bit
浏览文件 @
86cf4617
此差异已折叠。
点击以展开。
src/test/mir-opt/while_storage.while_loop.PreCodegen.after.mir
浏览文件 @
86cf4617
此差异已折叠。
点击以展开。
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录