@@ -9,12 +9,11 @@ LL | &mut *s.0 //[nll]~ ERROR borrow may still be in use when destructor run
9
9
LL | }
10
10
| - here, drop of `s` needs exclusive access to `*s.0`, because the type `Scribble<'_>` implements the `Drop` trait
11
11
|
12
- = warning: This error has been downgraded to a warning for backwards compatibility with previous releases.
13
- It represents potential unsoundness in your code.
14
- This warning will become a hard error in the future.
12
+ = warning: this error has been downgraded to a warning for backwards compatibility with previous releases
13
+ = warning: this represents potential undefined behavior in your code and this warning will become a hard error in the future
15
14
16
15
warning[E0713]: borrow may still be in use when destructor runs
17
- --> $DIR/issue-45696-scribble-on-boxed-borrow.rs:73 :5
16
+ --> $DIR/issue-45696-scribble-on-boxed-borrow.rs:74 :5
18
17
|
19
18
LL | fn boxed_scribbled<'a>(s: Box<Scribble<'a>>) -> &'a mut u32 {
20
19
| -- lifetime `'a` defined here
@@ -24,12 +23,11 @@ LL | &mut *(*s).0 //[nll]~ ERROR borrow may still be in use when destructor
24
23
LL | }
25
24
| - here, drop of `s` needs exclusive access to `*s.0`, because the type `Scribble<'_>` implements the `Drop` trait
26
25
|
27
- = warning: This error has been downgraded to a warning for backwards compatibility with previous releases.
28
- It represents potential unsoundness in your code.
29
- This warning will become a hard error in the future.
26
+ = warning: this error has been downgraded to a warning for backwards compatibility with previous releases
27
+ = warning: this represents potential undefined behavior in your code and this warning will become a hard error in the future
30
28
31
29
warning[E0713]: borrow may still be in use when destructor runs
32
- --> $DIR/issue-45696-scribble-on-boxed-borrow.rs:83 :5
30
+ --> $DIR/issue-45696-scribble-on-boxed-borrow.rs:85 :5
33
31
|
34
32
LL | fn boxed_boxed_scribbled<'a>(s: Box<Box<Scribble<'a>>>) -> &'a mut u32 {
35
33
| -- lifetime `'a` defined here
@@ -39,12 +37,11 @@ LL | &mut *(**s).0 //[nll]~ ERROR borrow may still be in use when destructor
39
37
LL | }
40
38
| - here, drop of `s` needs exclusive access to `*s.0`, because the type `Scribble<'_>` implements the `Drop` trait
41
39
|
42
- = warning: This error has been downgraded to a warning for backwards compatibility with previous releases.
43
- It represents potential unsoundness in your code.
44
- This warning will become a hard error in the future.
40
+ = warning: this error has been downgraded to a warning for backwards compatibility with previous releases
41
+ = warning: this represents potential undefined behavior in your code and this warning will become a hard error in the future
45
42
46
43
error: compilation successful
47
- --> $DIR/issue-45696-scribble-on-boxed-borrow.rs:89 :1
44
+ --> $DIR/issue-45696-scribble-on-boxed-borrow.rs:92 :1
48
45
|
49
46
LL | / fn main() { //[ast]~ ERROR compilation successful
50
47
LL | | //[migrate]~^ ERROR compilation successful
0 commit comments