]>
git.proxmox.com Git - rustc.git/blob - src/test/mir-opt/unusual-item-types.rs
1 // Test that we don't ICE when trying to dump MIR for unusual item types and
2 // that we don't create filenames containing `<` and `>`
7 const ASSOCIATED_CONSTANT
: i32 = 2;
21 let f
= Test
::X
as fn(usize) -> Test
;
22 let v
= Vec
::<i32>::new();
27 // START rustc.{{impl}}-ASSOCIATED_CONSTANT.mir_map.0.mir
35 // END rustc.{{impl}}-ASSOCIATED_CONSTANT.mir_map.0.mir
37 // START rustc.E-V-{{constant}}.mir_map.0.mir
45 // END rustc.E-V-{{constant}}.mir_map.0.mir
47 // START rustc.ptr-real_drop_in_place.std__vec__Vec_i32_.AddMovesForPackedDrops.before.mir
64 // drop(((*_1).0: alloc::raw_vec::RawVec<i32>)) -> bb4;
67 // drop(((*_1).0: alloc::raw_vec::RawVec<i32>)) -> [return: bb3, unwind: bb4];
71 // _3 = const std::ops::Drop::drop(move _2) -> [return: bb6, unwind: bb5];
73 // END rustc.ptr-real_drop_in_place.std__vec__Vec_i32_.AddMovesForPackedDrops.before.mir
75 // START rustc.Test-X-{{constructor}}.mir_map.0.mir
76 // fn Test::X(_1: usize) -> Test {
80 // _0 = Test::X(move _1,);
84 // END rustc.Test-X-{{constructor}}.mir_map.0.mir