@@ -252,7 +252,7 @@ fn main() {
252
252
fn bump < ' a > ( mut block : & mut Block < ' a > ) {
253
253
let x = & mut block;
254
254
let p: & ' a u8 = & * block. current ;
255
- //[mir]~^ ERROR cannot borrow `( *block.current) ` as immutable because it is also borrowed as mutable (Mir)
255
+ //[mir]~^ ERROR cannot borrow `*block.current` as immutable because it is also borrowed as mutable (Mir)
256
256
// No errors in AST because of issue rust#38899
257
257
}
258
258
}
@@ -266,7 +266,7 @@ fn main() {
266
266
unsafe fn bump2 ( mut block : * mut Block2 ) {
267
267
let x = & mut block;
268
268
let p : * const u8 = & * ( * block) . current ;
269
- //[mir]~^ ERROR cannot borrow `( *block.current) ` as immutable because it is also borrowed as mutable (Mir)
269
+ //[mir]~^ ERROR cannot borrow `*block.current` as immutable because it is also borrowed as mutable (Mir)
270
270
// No errors in AST because of issue rust#38899
271
271
}
272
272
}
@@ -279,7 +279,7 @@ fn main() {
279
279
//[ast]~^ ERROR cannot use `v[..].y` because it was mutably borrowed
280
280
//[mir]~^^ ERROR cannot use `v[..].y` because it was mutably borrowed (Ast)
281
281
//[mir]~| ERROR cannot use `v[..].y` because it was mutably borrowed (Mir)
282
- //[mir]~| ERROR cannot use `(*v) ` because it was mutably borrowed (Mir)
282
+ //[mir]~| ERROR cannot use `*v ` because it was mutably borrowed (Mir)
283
283
}
284
284
// Field of constant index
285
285
{
@@ -300,7 +300,7 @@ fn main() {
300
300
let y = & mut x;
301
301
& mut x; //[ast]~ ERROR cannot borrow `**x` as mutable more than once at a time
302
302
//[mir]~^ ERROR cannot borrow `**x` as mutable more than once at a time (Ast)
303
- //[mir]~| ERROR cannot borrow `(*x) ` as mutable more than once at a time (Mir)
303
+ //[mir]~| ERROR cannot borrow `*x ` as mutable more than once at a time (Mir)
304
304
* y = 1 ;
305
305
} ;
306
306
}
@@ -312,7 +312,7 @@ fn main() {
312
312
let y = & mut x;
313
313
& mut x; //[ast]~ ERROR cannot borrow `**x` as mutable more than once at a time
314
314
//[mir]~^ ERROR cannot borrow `**x` as mutable more than once at a time (Ast)
315
- //[mir]~| ERROR cannot borrow `(*x) ` as mutable more than once at a time (Mir)
315
+ //[mir]~| ERROR cannot borrow `*x ` as mutable more than once at a time (Mir)
316
316
* y = 1 ;
317
317
}
318
318
} ;
0 commit comments