rust/compiler/rustc_const_eval/src
bors 282445a288 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.)
2022-06-09 01:52:15 +00:00
..
const_eval Add a helper function for checking whether a default function in a trait can be treated as const 2022-05-30 08:52:25 +00:00
interpret Auto merge of #97740 - RalfJung:ctfe-cycle-spans, r=lcnr 2022-06-09 01:52:15 +00:00
transform Remove AlwaysLiveLocals wrapper struct 2022-06-07 16:54:00 +02:00
util rustc: Panic by default in DefIdTree::parent 2022-05-02 01:56:50 +03:00
lib.rs Remove #[default..] and add #[const_trait] 2022-05-30 08:52:24 +00:00