about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/debuginfo/utils.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2022-03-29 07:27:14 +0000
committerbors <bors@rust-lang.org>2022-03-29 07:27:14 +0000
commitabf0ec83833095196627f2f292f44976594304ce (patch)
tree0ed806ebbf8b461faecfaedb308ccb12dd400faa /compiler/rustc_codegen_llvm/src/debuginfo/utils.rs
parent14328e654a92ca4c62f0d7d407b6757a47c541fb (diff)
parentac95e8018655fcdc2a0429789cc7aa3770208c7a (diff)
downloadrust-abf0ec83833095196627f2f292f44976594304ce.tar.gz
rust-abf0ec83833095196627f2f292f44976594304ce.zip
Auto merge of #95257 - compiler-errors:fn-borrow, r=lcnr
Add suggestion to borrow `Fn` and `FnMut` params/opaque/closures instead of move

I think that Closure/ParamTy/Opaque are all "opaque" enough that it's meaningful to suggest borrowing them instead of moving them at their usage sites when we see a move error. See the attached issue for example.

Is this suggestion too general? I could perhaps use the move site information to limit this to places like fn calls, but I don't know enough about mir borrowck to know if that's an easy change.

Fixes #90828
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/debuginfo/utils.rs')
0 files changed, 0 insertions, 0 deletions