]> git.lizzy.rs Git - rust.git/commit
Detect closures assigned to binding in block
authorEsteban Küber <esteban@kuber.com.ar>
Thu, 5 Jan 2023 21:29:36 +0000 (21:29 +0000)
committerEsteban Küber <esteban@kuber.com.ar>
Thu, 5 Jan 2023 21:29:36 +0000 (21:29 +0000)
commitce6b7179afcdf6ae2dad7e69c56f1f5c957b47bd
tree8f233d536051217a3705a84b8c79c2ebaaa3cee8
parent1d284af117716473e1a35cc0d91c170e44e3fc6e
Detect closures assigned to binding in block

Fix #58497.
compiler/rustc_borrowck/src/borrowck_errors.rs
compiler/rustc_borrowck/src/diagnostics/conflict_errors.rs
compiler/rustc_borrowck/src/diagnostics/explain_borrow.rs
compiler/rustc_borrowck/src/diagnostics/region_name.rs
src/test/ui/closures/2229_closure_analysis/diagnostics/borrowck/borrowck-3.rs
src/test/ui/closures/2229_closure_analysis/diagnostics/borrowck/borrowck-3.stderr
src/test/ui/unboxed-closures/unboxed-closure-region.rs
src/test/ui/unboxed-closures/unboxed-closure-region.stderr
src/tools/rustfmt/tests/target/issue_4110.rs