remove unnecessary compile-flags comments
This commit is contained in:
parent
76cf279504
commit
e14720bc7b
4 changed files with 8 additions and 12 deletions
|
@ -10,8 +10,6 @@
|
||||||
|
|
||||||
// Regression test for issue #38899
|
// Regression test for issue #38899
|
||||||
|
|
||||||
// compile-flags:-Znll -Zborrowck=mir -Zverbose
|
|
||||||
|
|
||||||
#![feature(nll)]
|
#![feature(nll)]
|
||||||
#![allow(dead_code)]
|
#![allow(dead_code)]
|
||||||
|
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
error[E0502]: cannot borrow `*block.current` as immutable because it is also borrowed as mutable
|
error[E0502]: cannot borrow `*block.current` as immutable because it is also borrowed as mutable
|
||||||
--> $DIR/borrowed-referent-issue-38899.rs:26:21
|
--> $DIR/borrowed-referent-issue-38899.rs:24:21
|
||||||
|
|
|
|
||||||
24 | let x = &mut block;
|
22 | let x = &mut block;
|
||||||
| ---------- mutable borrow occurs here
|
| ---------- mutable borrow occurs here
|
||||||
25 | println!("{}", x.current);
|
23 | println!("{}", x.current);
|
||||||
26 | let p: &'a u8 = &*block.current;
|
24 | let p: &'a u8 = &*block.current;
|
||||||
| ^^^^^^^^^^^^^^^ immutable borrow occurs here
|
| ^^^^^^^^^^^^^^^ immutable borrow occurs here
|
||||||
|
|
||||||
error: aborting due to previous error
|
error: aborting due to previous error
|
||||||
|
|
|
@ -10,8 +10,6 @@
|
||||||
|
|
||||||
// Regression test for issue #46557
|
// Regression test for issue #46557
|
||||||
|
|
||||||
// compile-flags:-Znll -Zborrowck=mir -Zverbose
|
|
||||||
|
|
||||||
#![feature(nll)]
|
#![feature(nll)]
|
||||||
#![allow(dead_code)]
|
#![allow(dead_code)]
|
||||||
|
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
error[E0597]: borrowed value does not live long enough
|
error[E0597]: borrowed value does not live long enough
|
||||||
--> $DIR/return-ref-mut-issue-46557.rs:19:21
|
--> $DIR/return-ref-mut-issue-46557.rs:17:21
|
||||||
|
|
|
|
||||||
19 | let ref mut x = 1234543; //~ ERROR borrowed value does not live long enough [E0597]
|
17 | let ref mut x = 1234543; //~ ERROR borrowed value does not live long enough [E0597]
|
||||||
| ^^^^^^^ temporary value does not live long enough
|
| ^^^^^^^ temporary value does not live long enough
|
||||||
20 | x
|
18 | x
|
||||||
21 | }
|
19 | }
|
||||||
| - temporary value only lives until here
|
| - temporary value only lives until here
|
||||||
|
|
|
|
||||||
= note: borrowed value must be valid for lifetime '_#2r...
|
= note: borrowed value must be valid for lifetime '_#2r...
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue