about summary refs log tree commit diff
path: root/compiler/rustc_hir_analysis/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-08-27 10:32:24 +0000
committerbors <bors@rust-lang.org>2023-08-27 10:32:24 +0000
commitd1fb1755aa4e05a5addb5ca2d1d49f09da76a2d5 (patch)
tree7b5b48db1da6796c8a2d4d79e8404071ed867dd5 /compiler/rustc_hir_analysis/src
parentf320f42c593b4353ea47448805f009ca0646cb06 (diff)
parentef0651972fcbc6afc56ca7b9e734c354f4f90be4 (diff)
downloadrust-d1fb1755aa4e05a5addb5ca2d1d49f09da76a2d5.tar.gz
rust-d1fb1755aa4e05a5addb5ca2d1d49f09da76a2d5.zip
Auto merge of #115079 - cuviper:unused-mcinfo, r=Mark-Simulacrum
Move a local to the `#if` block where it is used

For other cases (LLVM < 17), this was complaining under `-Wall`:

```
warning: llvm-wrapper/PassWrapper.cpp: In function ‘void LLVMRustPrintTargetCPUs(LLVMTargetMachineRef, const char*)’:
warning: llvm-wrapper/PassWrapper.cpp:311:26: warning: unused variable ‘MCInfo’ [-Wunused-variable]
warning:   311 |   const MCSubtargetInfo *MCInfo = Target->getMCSubtargetInfo();
warning:       |                          ^~~~~~
```
Diffstat (limited to 'compiler/rustc_hir_analysis/src')
0 files changed, 0 insertions, 0 deletions