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>2022-06-09 01:52:15 +0000
committerbors <bors@rust-lang.org>2022-06-09 01:52:15 +0000
commit282445a288b3c409a998eb72e51827537e81abd3 (patch)
treec831b10c563a35cd39d8ef4e7c3b2d56945e9b49 /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
parent15f5622a53210099a19ab46ce2316494fb413d7c (diff)
parent467e0f44463f4026922925e6666d96a772ae39d7 (diff)
downloadrust-282445a288b3c409a998eb72e51827537e81abd3.tar.gz
rust-282445a288b3c409a998eb72e51827537e81abd3.zip
Auto merge of #97740 - RalfJung:ctfe-cycle-spans, r=lcnr
use precise spans for recursive const evaluation

This fixes https://github.com/rust-lang/rust/issues/73283 by using a `TyCtxtAt` with a more precise span when the interpreter recursively calls itself. Hopefully such calls are sufficiently rare that this does not cost us too much performance.

(In theory, cycles can also arise through layout computation, as layout can depend on consts -- but layout computation happens all the time so we'd have to do something to not make this terrible for performance.)
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions