You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: src/rust-2021/disjoint-capture-in-closures.md
-2
Original file line number
Diff line number
Diff line change
@@ -35,8 +35,6 @@ Changing the variables captured by a closure can cause programs to change behavi
35
35
- changes to drop order, or when destructors run ([details](#drop-order));
36
36
- changes to which traits a closure implements ([details](#trait-implementations)).
37
37
38
-
When running `cargo fix --edition`, Cargo will update the closures in your code to help you migrate to Rust 2021, as described below in [Migrations](#migrations).
39
-
40
38
Whenever any of the scenarios below are detected, `cargo fix` will insert a "dummy let" into your closure to force it to capture the entire variable:
0 commit comments