Skip to content

Commit

Permalink
Update test output.
Browse files Browse the repository at this point in the history
  • Loading branch information
m-ou-se committed Aug 16, 2021
1 parent 111201d commit 6431097
Show file tree
Hide file tree
Showing 9 changed files with 44 additions and 152 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ LL | #![deny(rust_2021_incompatible_closure_captures)]
help: add a dummy let to cause `fptr` to be fully captured
|
LL ~ thread::spawn(move || { let _ = &fptr; unsafe {
LL +
LL +
LL +
LL +
LL + *fptr.0 = 20;
LL |
LL |
LL |
LL |
LL | *fptr.0 = 20;
...

error: changes to closure capture in Rust 2021 will affect `Sync`, `Send` trait implementation for closure
Expand All @@ -36,11 +36,11 @@ LL | *fptr.0.0 = 20;
help: add a dummy let to cause `fptr` to be fully captured
|
LL ~ thread::spawn(move || { let _ = &fptr; unsafe {
LL +
LL +
LL +
LL +
LL + *fptr.0.0 = 20;
LL |
LL |
LL |
LL |
LL | *fptr.0.0 = 20;
...

error: changes to closure capture in Rust 2021 will affect `Clone` trait implementation for closure and drop order
Expand All @@ -60,11 +60,7 @@ help: add a dummy let to cause `f` to be fully captured
|
LL ~ let c = || {
LL + let _ = &f;
LL +
LL +
LL +
LL +
...
|

error: aborting due to 3 previous errors

Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,7 @@ help: add a dummy let to cause `t`, `t1`, `t2` to be fully captured
|
LL ~ let c = || {
LL + let _ = (&t, &t1, &t2);
LL +
LL +
LL +
LL +
...
|

error: changes to closure capture in Rust 2021 will affect drop order
--> $DIR/insignificant_drop.rs:41:13
Expand All @@ -59,11 +55,7 @@ help: add a dummy let to cause `t`, `t1` to be fully captured
|
LL ~ let c = || {
LL + let _ = (&t, &t1);
LL +
LL +
LL +
LL + let _t = t.0;
...
|

error: changes to closure capture in Rust 2021 will affect drop order
--> $DIR/insignificant_drop.rs:62:13
Expand All @@ -82,11 +74,7 @@ help: add a dummy let to cause `t` to be fully captured
|
LL ~ let c = || {
LL + let _ = &t;
LL +
LL +
LL +
LL + let _t = t.0;
...
|

error: changes to closure capture in Rust 2021 will affect drop order
--> $DIR/insignificant_drop.rs:83:13
Expand All @@ -105,11 +93,7 @@ help: add a dummy let to cause `t` to be fully captured
|
LL ~ let c = || {
LL + let _ = &t;
LL +
LL +
LL +
LL + let _t = t.0;
...
|

error: changes to closure capture in Rust 2021 will affect drop order
--> $DIR/insignificant_drop.rs:104:13
Expand All @@ -128,11 +112,7 @@ help: add a dummy let to cause `t` to be fully captured
|
LL ~ let c = || {
LL + let _ = &t;
LL +
LL +
LL +
LL + let _t = t.0;
...
|

error: changes to closure capture in Rust 2021 will affect drop order
--> $DIR/insignificant_drop.rs:122:13
Expand All @@ -156,11 +136,7 @@ help: add a dummy let to cause `t1`, `t` to be fully captured
|
LL ~ let c = move || {
LL + let _ = (&t1, &t);
LL +
LL +
LL +
LL + println!("{} {}", t1.1, t.1);
...
|

error: changes to closure capture in Rust 2021 will affect drop order
--> $DIR/insignificant_drop.rs:142:13
Expand All @@ -179,11 +155,7 @@ help: add a dummy let to cause `t` to be fully captured
|
LL ~ let c = || {
LL + let _ = &t;
LL +
LL +
LL +
LL + let _t = t.0;
...
|

error: aborting due to 7 previous errors

Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,7 @@ help: add a dummy let to cause `t` to be fully captured
|
LL ~ let c = || {
LL + let _ = &t;
LL +
LL +
LL +
LL + let _t = t.0;
...
|

error: changes to closure capture in Rust 2021 will affect drop order
--> $DIR/insignificant_drop_attr_migrations.rs:57:13
Expand All @@ -43,11 +39,7 @@ help: add a dummy let to cause `t` to be fully captured
|
LL ~ let c = move || {
LL + let _ = &t;
LL +
LL +
LL +
LL + let _t = t.1;
...
|

error: aborting due to 2 previous errors

Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ LL | #![deny(rust_2021_incompatible_closure_captures)]
help: add a dummy let to cause `a` to be fully captured
|
LL | let _ = || { let _ = &a; dbg!(a.0) };
| ~~~~~~~~~~~~~~~~~~~~~~~~~
| +++++++++++++ +

error: aborting due to previous error

Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,7 @@ help: add a dummy let to cause `t` to be fully captured
|
LL ~ let c = || {
LL + let _ = &t;
LL +
LL +
LL +
LL + let _t = t.0;
...
|

error: changes to closure capture in Rust 2021 will affect drop order
--> $DIR/migrations_rustfix.rs:33:13
Expand All @@ -41,7 +37,7 @@ LL | }
help: add a dummy let to cause `t` to be fully captured
|
LL | let c = || { let _ = &t; t.0 };
| ~~~~~~~~~~~~~~~~~~~
| +++++++++++++ +

error: aborting due to 2 previous errors

Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,7 @@ help: add a dummy let to cause `f` to be fully captured
|
LL ~ let result = panic::catch_unwind(move || {
LL + let _ = &f;
LL +
LL +
LL +
LL +
...
|

error: aborting due to previous error

Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,7 @@ help: add a dummy let to cause `f1`, `f2` to be fully captured
|
LL ~ let c = || {
LL + let _ = (&f1, &f2);
LL +
LL +
LL +
LL +
...
|

error: changes to closure capture in Rust 2021 will affect `Clone` trait implementation for closure
--> $DIR/multi_diagnostics.rs:42:13
Expand All @@ -43,11 +39,7 @@ help: add a dummy let to cause `f1` to be fully captured
|
LL ~ let c = || {
LL + let _ = &f1;
LL +
LL +
LL +
LL +
...
|

error: changes to closure capture in Rust 2021 will affect `Clone` trait implementation for closure
--> $DIR/multi_diagnostics.rs:67:13
Expand All @@ -69,11 +61,7 @@ help: add a dummy let to cause `f1` to be fully captured
|
LL ~ let c = || {
LL + let _ = &f1;
LL +
LL +
LL +
LL +
...
|

error: changes to closure capture in Rust 2021 will affect `Clone` trait implementation for closure and drop order
--> $DIR/multi_diagnostics.rs:86:13
Expand All @@ -98,11 +86,7 @@ help: add a dummy let to cause `f1` to be fully captured
|
LL ~ let c = || {
LL + let _ = &f1;
LL +
LL +
LL +
LL +
...
|

error: changes to closure capture in Rust 2021 will affect `Sync`, `Send` trait implementation for closure
--> $DIR/multi_diagnostics.rs:119:19
Expand All @@ -123,11 +107,11 @@ LL | *fptr2.0 = 20;
help: add a dummy let to cause `fptr1`, `fptr2` to be fully captured
|
LL ~ thread::spawn(move || { let _ = (&fptr1, &fptr2); unsafe {
LL +
LL +
LL +
LL +
LL +
LL |
LL |
LL |
LL |
LL |
...

error: aborting due to 5 previous errors
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,7 @@ help: add a dummy let to cause `t` to be fully captured
|
LL ~ let c = || {
LL + let _ = &t;
LL +
LL +
LL +
LL + let _t = t.0;
...
|

error: changes to closure capture in Rust 2021 will affect drop order
--> $DIR/precise.rs:45:13
Expand Down Expand Up @@ -53,11 +49,7 @@ help: add a dummy let to cause `u` to be fully captured
|
LL ~ let c = || {
LL + let _ = &u;
LL +
LL +
LL +
LL + let _x = u.0.0;
...
|

error: aborting due to 2 previous errors

Loading

0 comments on commit 6431097

Please sign in to comment.