From: Matthias Krüger Date: Sat, 28 Jan 2023 04:20:18 +0000 (+0100) Subject: Rollup merge of #107306 - compiler-errors:correct-sugg-for-closure-arg-needs-borrow... X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=fa2cd945af6bfb14c16cfaa8b74c636dfb821b48;p=rust.git Rollup merge of #107306 - compiler-errors:correct-sugg-for-closure-arg-needs-borrow, r=oli-obk Correct suggestions for closure arguments that need a borrow Fixes #107301 by dealing with binders correctly Fixes another issue where we were suggesting adding just `&` when we expected `&mut _` in a closure arg --- fa2cd945af6bfb14c16cfaa8b74c636dfb821b48