diff options
| author | Dylan DPC <99973273+Dylan-DPC@users.noreply.github.com> | 2023-05-09 12:33:44 +0530 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-05-09 12:33:44 +0530 |
| commit | 2ecc72217b4f134a1ae8b6433af9491bf5d26cf0 (patch) | |
| tree | 4f0617cc4e1b0a1efa9749576ac0fe0104790053 /compiler/rustc_interface/src/errors.rs | |
| parent | 02a85bd038546d040efca42a313e44051b078f9c (diff) | |
| parent | 4731a25d2dbe84e711101f2cbb83b40fa96c7014 (diff) | |
| download | rust-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
