Skip to content

Commit e14720b

Browse files
committed
remove unnecessary compile-flags comments
1 parent 76cf279 commit e14720b

4 files changed

+8
-12
lines changed

src/test/ui/nll/borrowed-referent-issue-38899.rs

-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@
1010

1111
// Regression test for issue #38899
1212

13-
// compile-flags:-Znll -Zborrowck=mir -Zverbose
14-
1513
#![feature(nll)]
1614
#![allow(dead_code)]
1715

src/test/ui/nll/borrowed-referent-issue-38899.stderr

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
error[E0502]: cannot borrow `*block.current` as immutable because it is also borrowed as mutable
2-
--> $DIR/borrowed-referent-issue-38899.rs:26:21
2+
--> $DIR/borrowed-referent-issue-38899.rs:24:21
33
|
4-
24 | let x = &mut block;
4+
22 | let x = &mut block;
55
| ---------- mutable borrow occurs here
6-
25 | println!("{}", x.current);
7-
26 | let p: &'a u8 = &*block.current;
6+
23 | println!("{}", x.current);
7+
24 | let p: &'a u8 = &*block.current;
88
| ^^^^^^^^^^^^^^^ immutable borrow occurs here
99

1010
error: aborting due to previous error

src/test/ui/nll/return-ref-mut-issue-46557.rs

-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@
1010

1111
// Regression test for issue #46557
1212

13-
// compile-flags:-Znll -Zborrowck=mir -Zverbose
14-
1513
#![feature(nll)]
1614
#![allow(dead_code)]
1715

src/test/ui/nll/return-ref-mut-issue-46557.stderr

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
error[E0597]: borrowed value does not live long enough
2-
--> $DIR/return-ref-mut-issue-46557.rs:19:21
2+
--> $DIR/return-ref-mut-issue-46557.rs:17:21
33
|
4-
19 | let ref mut x = 1234543; //~ ERROR borrowed value does not live long enough [E0597]
4+
17 | let ref mut x = 1234543; //~ ERROR borrowed value does not live long enough [E0597]
55
| ^^^^^^^ temporary value does not live long enough
6-
20 | x
7-
21 | }
6+
18 | x
7+
19 | }
88
| - temporary value only lives until here
99
|
1010
= note: borrowed value must be valid for lifetime '_#2r...

0 commit comments

Comments
 (0)