Skip to content

Commit 4503ad4

Browse files
committed
issue-rust-lang#45696-scribble...: remove outdated comment.
1 parent 9f3e61b commit 4503ad4

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

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

-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
// rust-lang/rust#45696: This test is checking that we *cannot* return
22
// mutable borrows that would be scribbled over by destructors before
33
// the return occurs.
4-
//
5-
// We will explicitly test NLL; thus we will also skip the automated compare-mode=nll.
64

75
// ignore-compare-mode-nll
86
// ignore-compare-mode-polonius

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:37:5
2+
--> $DIR/issue-45696-scribble-on-boxed-borrow.rs:35: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:42:5
12+
--> $DIR/issue-45696-scribble-on-boxed-borrow.rs:40: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:47:5
22+
--> $DIR/issue-45696-scribble-on-boxed-borrow.rs:45: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)