Improve formatting of closure capture migration suggestion for multi-line closures. Fixes https://github.com/rust-lang/rust/issues/87952 Before: ``` help: add a dummy let to cause `a` to be fully captured | 5 ~ let _ = || { let _ = &a; 6 + dbg!(a.0); 7 ~ }; | ``` After: ``` help: add a dummy let to cause `a` to be fully captured | 5 ~ let _ = || { 6 + let _ = &a; 7 + dbg!(a.0); 8 ~ }; | ```
For high-level intro to how type checking works in rustc, see the type checking chapter of the rustc dev guide.