about summary refs log tree commit diff
path: root/compiler/rustc_interface/src/errors.rs
diff options
context:
space:
mode:
authorDylan DPC <99973273+Dylan-DPC@users.noreply.github.com>2023-05-09 12:33:44 +0530
committerGitHub <noreply@github.com>2023-05-09 12:33:44 +0530
commit2ecc72217b4f134a1ae8b6433af9491bf5d26cf0 (patch)
tree4f0617cc4e1b0a1efa9749576ac0fe0104790053 /compiler/rustc_interface/src/errors.rs
parent02a85bd038546d040efca42a313e44051b078f9c (diff)
parent4731a25d2dbe84e711101f2cbb83b40fa96c7014 (diff)
downloadrust-2ecc72217b4f134a1ae8b6433af9491bf5d26cf0.tar.gz
rust-2ecc72217b4f134a1ae8b6433af9491bf5d26cf0.zip
Rollup merge of #110504 - compiler-errors:tweak-borrow-sugg, r=cjgillot
Tweak borrow suggestion span

Avoids a `span_to_snippet` call when we don't need to surround the expression in parentheses. The fact that the suggestion was using the whole span of the expression rather than just appending a `&` was prevented me from using `// run-rustfix` in another PR (https://github.com/rust-lang/rust/pull/110432#discussion_r1170500484).

Also some drive-by renames of functions that have been annoying me for a bit.
Diffstat (limited to 'compiler/rustc_interface/src/errors.rs')
0 files changed, 0 insertions, 0 deletions