about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-06-19 17:54:57 +0000
committerbors <bors@rust-lang.org>2023-06-19 17:54:57 +0000
commitebcbba93ad8ee0edd3e0657989538456547e1cba (patch)
tree3ab901eb47bcffcb45ec63f680a632a729266303 /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
parent06b444b2d10284d9be3db8b702654a74e2d2ac5f (diff)
parent26e78e72bc8d40a8168213620a266d803845e604 (diff)
downloadrust-ebcbba93ad8ee0edd3e0657989538456547e1cba.tar.gz
rust-ebcbba93ad8ee0edd3e0657989538456547e1cba.zip
Auto merge of #10980 - Alexendoo:format-args-incremental-spans, r=dswij
Fix `find_format_arg_expr` when incremental compilation is enabled

Fixes #10969

[`lower_span`](https://doc.rust-lang.org/nightly/nightly-rustc/rustc_ast_lowering/struct.LoweringContext.html#method.lower_span) gives AST spans a [parent](https://doc.rust-lang.org/nightly/nightly-rustc/rustc_span/struct.SpanData.html#structfield.parent) when lowering to the HIR. That meant the `==` span comparison would return false even though the spans are pointing to the same thing. We now ignore the parent when comparing the spans

Debugging this was quite the puzzle, because the parent is not included in the debug output of `Span`s or `SpanData` 😬

changelog: none
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions