]> git.lizzy.rs Git - rust.git/commit
Suggest removal of `&` when borrowing macro and appropriate
authorEsteban Küber <esteban@kuber.com.ar>
Sat, 2 Mar 2019 19:25:00 +0000 (11:25 -0800)
committerEsteban Küber <esteban@kuber.com.ar>
Sat, 2 Mar 2019 19:25:00 +0000 (11:25 -0800)
commitedbbfad88f67b789bca682e4f2c4a58ac4dc81cb
treed79b2a7890e235d3bb51f4b008d699942d7f4455
parentc1d2d83ca3b5155468ab96b09a7c54568449b137
Suggest removal of `&` when borrowing macro and appropriate

Fix #58815.
src/librustc_typeck/check/demand.rs
src/test/ui/block-result/issue-5500.stderr
src/test/ui/diverging-tuple-parts-39485.stderr
src/test/ui/suggestions/format-borrow.rs [new file with mode: 0644]
src/test/ui/suggestions/format-borrow.stderr [new file with mode: 0644]