File tree 2 files changed +3
-3
lines changed
src/librustc_mir/transform
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -117,7 +117,7 @@ impl<'tcx> MutVisitor<'tcx> for DerefArgVisitor<'tcx> {
117
117
place,
118
118
Place {
119
119
local : self_arg ( ) ,
120
- projection : self . tcx ( ) . intern_place_elems ( & vec ! [ ProjectionElem :: Deref ] ) ,
120
+ projection : self . tcx ( ) . intern_place_elems ( & [ ProjectionElem :: Deref ] ) ,
121
121
} ,
122
122
self . tcx ,
123
123
) ;
@@ -153,7 +153,7 @@ impl<'tcx> MutVisitor<'tcx> for PinArgVisitor<'tcx> {
153
153
place,
154
154
Place {
155
155
local : self_arg ( ) ,
156
- projection : self . tcx ( ) . intern_place_elems ( & vec ! [ ProjectionElem :: Field (
156
+ projection : self . tcx ( ) . intern_place_elems ( & [ ProjectionElem :: Field (
157
157
Field :: new ( 0 ) ,
158
158
self . ref_gen_ty ,
159
159
) ] ) ,
Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ impl<'tcx> MutVisitor<'tcx> for InstCombineVisitor<'tcx> {
51
51
let new_place = match rvalue {
52
52
Rvalue :: Ref ( _, _, place) => {
53
53
if let & [ ref proj_l @ .., proj_r] = place. projection . as_ref ( ) {
54
- place. projection = self . tcx ( ) . intern_place_elems ( & vec ! [ proj_r. clone( ) ] ) ;
54
+ place. projection = self . tcx ( ) . intern_place_elems ( & [ proj_r. clone ( ) ] ) ;
55
55
56
56
Place {
57
57
// Replace with dummy
You can’t perform that action at this time.
0 commit comments