about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/errors.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-05-09 21:38:05 +0000
committerbors <bors@rust-lang.org>2024-05-09 21:38:05 +0000
commitbaf2a23840ffe2e4de7f57eb992e3dae675281c2 (patch)
tree2b506e4853130c345883be008adbb6aea245705c /compiler/rustc_codegen_llvm/src/errors.rs
parent5a28d8f01e4ad057a8fa7130541775d42921e640 (diff)
parent99a42bab30e27e30679a2bd8540475338788b034 (diff)
downloadrust-baf2a23840ffe2e4de7f57eb992e3dae675281c2.tar.gz
rust-baf2a23840ffe2e4de7f57eb992e3dae675281c2.zip
Auto merge of #12783 - shanretoo:fix-assigning-clones, r=blyxyas
fix: use hir_with_context to produce correct snippets for assigning_clones

The `assigning_clones` lint is producing wrong output when the assignment is a macro call.
Since Applicability level `Unspecified` will never be changed inside `hir_with_applicability`, so it is safe here to replace `hir_with_applicability` with `hir_with_context` to generate snippets of the macro call instead of the expansion.

fixes #12776

changelog: [`assigning_clones`]: use `hir_with_context` to produce correct snippets
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/errors.rs')
0 files changed, 0 insertions, 0 deletions