Skip to content

Commit 5a0e461

Browse files
committed
issue-#45696: remove ignore-compare-mode-nll
1 parent 9a2cc54 commit 5a0e461

3 files changed

+6
-10
lines changed

src/test/ui/issues/issue-45696-scribble-on-boxed-borrow.nll.stderr

+3-6
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,30 @@
11
error[E0713]: borrow may still be in use when destructor runs
2-
--> $DIR/issue-45696-scribble-on-boxed-borrow.rs:52:5
2+
--> $DIR/issue-45696-scribble-on-boxed-borrow.rs:34:5
33
|
44
LL | fn scribbled<'a>(s: Scribble<'a>) -> &'a mut u32 {
55
| -- lifetime `'a` defined here
66
LL | &mut *s.0
77
| ^^^^^^^^^ returning this value requires that `*s.0` is borrowed for `'a`
8-
...
98
LL | }
109
| - here, drop of `s` needs exclusive access to `*s.0`, because the type `Scribble<'_>` implements the `Drop` trait
1110

1211
error[E0713]: borrow may still be in use when destructor runs
13-
--> $DIR/issue-45696-scribble-on-boxed-borrow.rs:63:5
12+
--> $DIR/issue-45696-scribble-on-boxed-borrow.rs:39:5
1413
|
1514
LL | fn boxed_scribbled<'a>(s: Box<Scribble<'a>>) -> &'a mut u32 {
1615
| -- lifetime `'a` defined here
1716
LL | &mut *(*s).0
1817
| ^^^^^^^^^^^^ returning this value requires that `*s.0` is borrowed for `'a`
19-
...
2018
LL | }
2119
| - here, drop of `s` needs exclusive access to `*s.0`, because the type `Scribble<'_>` implements the `Drop` trait
2220

2321
error[E0713]: borrow may still be in use when destructor runs
24-
--> $DIR/issue-45696-scribble-on-boxed-borrow.rs:74:5
22+
--> $DIR/issue-45696-scribble-on-boxed-borrow.rs:44:5
2523
|
2624
LL | fn boxed_boxed_scribbled<'a>(s: Box<Box<Scribble<'a>>>) -> &'a mut u32 {
2725
| -- lifetime `'a` defined here
2826
LL | &mut *(**s).0
2927
| ^^^^^^^^^^^^^ returning this value requires that `*s.0` is borrowed for `'a`
30-
...
3128
LL | }
3229
| - here, drop of `s` needs exclusive access to `*s.0`, because the type `Scribble<'_>` implements the `Drop` trait
3330

src/test/ui/issues/issue-45696-scribble-on-boxed-borrow.rs

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
// mutable borrows that would be scribbled over by destructors before
33
// the return occurs.
44

5-
// ignore-compare-mode-nll
65
// ignore-compare-mode-polonius
76

87
struct Scribble<'a>(&'a mut u32);

src/test/ui/issues/issue-45696-scribble-on-boxed-borrow.stderr

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[E0713]: borrow may still be in use when destructor runs
2-
--> $DIR/issue-45696-scribble-on-boxed-borrow.rs:35:5
2+
--> $DIR/issue-45696-scribble-on-boxed-borrow.rs:34:5
33
|
44
LL | fn scribbled<'a>(s: Scribble<'a>) -> &'a mut u32 {
55
| -- lifetime `'a` defined here
@@ -9,7 +9,7 @@ LL | }
99
| - here, drop of `s` needs exclusive access to `*s.0`, because the type `Scribble<'_>` implements the `Drop` trait
1010

1111
error[E0713]: borrow may still be in use when destructor runs
12-
--> $DIR/issue-45696-scribble-on-boxed-borrow.rs:40:5
12+
--> $DIR/issue-45696-scribble-on-boxed-borrow.rs:39:5
1313
|
1414
LL | fn boxed_scribbled<'a>(s: Box<Scribble<'a>>) -> &'a mut u32 {
1515
| -- lifetime `'a` defined here
@@ -19,7 +19,7 @@ LL | }
1919
| - here, drop of `s` needs exclusive access to `*s.0`, because the type `Scribble<'_>` implements the `Drop` trait
2020

2121
error[E0713]: borrow may still be in use when destructor runs
22-
--> $DIR/issue-45696-scribble-on-boxed-borrow.rs:45:5
22+
--> $DIR/issue-45696-scribble-on-boxed-borrow.rs:44:5
2323
|
2424
LL | fn boxed_boxed_scribbled<'a>(s: Box<Box<Scribble<'a>>>) -> &'a mut u32 {
2525
| -- lifetime `'a` defined here

0 commit comments

Comments
 (0)