rust/compiler/rustc_mir_transform/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
..
coverage Replace &Vec<_>s with &[_]s 2022-06-03 20:42:42 +04:00
inline Remove crate visibility usage in compiler 2022-05-20 20:04:54 -04:00
abort_unwinding_calls.rs Update MIR passes that assumed inline can never unwind. 2022-05-18 13:42:23 -07:00
add_call_guards.rs Refactor call terminator to always hold a destination place 2022-05-23 17:49:04 -04:00
add_moves_for_packed_drops.rs Adopt let else in more places 2022-02-19 17:27:43 +01:00
add_retag.rs Refactor call terminator to always hold a destination place 2022-05-23 17:49:04 -04:00
check_const_item_mutation.rs rustc_error: make ErrorReported impossible to construct 2022-03-16 10:35:24 -05:00
check_packed_ref.rs Mention implementers of unsatisfied trait 2022-04-04 21:01:42 +00:00
check_unsafety.rs review 2022-05-09 18:40:18 +02:00
cleanup_post_borrowck.rs Move rustc_mir::transform to rustc_mir_transform. 2021-09-07 00:43:14 +02:00
const_debuginfo.rs resolve the conflict in compiler/rustc_session/src/parse.rs 2022-03-16 20:12:30 +08:00
const_goto.rs enhance ConstGoto mir-opt by moving up StorageDead statements 2022-04-06 15:17:41 +08:00
const_prop_lint.rs const_prop_lint: ensure we have up-to-date cur_span() 2022-06-04 15:59:24 -04:00
const_prop.rs Refactor call terminator to always hold a destination place 2022-05-23 17:49:04 -04:00
dead_store_elimination.rs Preserve unused pointer to address casts 2022-06-07 17:33:16 +02:00
deaggregator.rs Clarify which kinds of MIR are allowed during which phases. 2022-03-23 18:34:08 -04:00
deduplicate_blocks.rs Remove in_band_lifetimes from rustc_mir_transform 2021-12-07 21:04:40 -08:00
deref_separator.rs validate derefer, run derefer inside generator 2022-05-30 18:36:14 +03:00
dest_prop.rs Refactor call terminator to always hold a destination place 2022-05-23 17:49:04 -04:00
dump_mir.rs Inline on_mir_pass and add inline to dump_mir 2021-10-14 15:26:59 -05:00
early_otherwise_branch.rs tut tut tut 2022-04-27 08:51:33 +01:00
elaborate_drops.rs Refactor call terminator to always hold a destination place 2022-05-23 17:49:04 -04:00
function_item_references.rs Refactor call terminator to always hold a destination place 2022-05-23 17:49:04 -04:00
generator.rs Remove AlwaysLiveLocals wrapper struct 2022-06-07 16:54:00 +02:00
inline.rs Rollup merge of #97696 - cjgillot:normalize-inline, r=compiler-errors 2022-06-04 00:42:51 +02:00
instcombine.rs Refactor call terminator to always hold a destination place 2022-05-23 17:49:04 -04:00
lib.rs Add dead store elimination pass 2022-05-24 22:50:21 -04:00
lower_intrinsics.rs Refactor call terminator to always hold a destination place 2022-05-23 17:49:04 -04:00
lower_slice_len.rs Refactor call terminator to always hold a destination place 2022-05-23 17:49:04 -04:00
marker.rs Add pass for simple phase change 2021-12-02 17:31:38 -08:00
match_branches.rs fix most compiler/ doctests 2022-05-02 17:40:30 -07:00
multiple_return_terminators.rs Update passes with new interface 2021-12-02 17:31:38 -08:00
normalize_array_len.rs Remove box syntax from rustc_mir_dataflow and rustc_mir_transform 2022-05-22 17:19:44 +02:00
nrvo.rs Spellchecking compiler comments 2022-03-30 15:14:15 -04:00
pass_manager.rs Address nits 2022-04-16 18:44:27 -04:00
remove_false_edges.rs Separate RemoveFalseEdges from SimplifyBranches 2021-11-30 17:14:48 -08:00
remove_noop_landing_pads.rs Change Successors to impl Iterator<Item = BasicBlock> 2022-05-17 08:41:01 +08:00
remove_storage_markers.rs Update passes with new interface 2021-12-02 17:31:38 -08:00
remove_uninit_drops.rs Spellchecking compiler comments 2022-03-30 15:14:15 -04:00
remove_unneeded_drops.rs Spellchecking compiler comments 2022-03-30 15:14:15 -04:00
remove_zsts.rs Add new Deinit statement kind 2022-04-11 08:55:03 -04:00
required_consts.rs 7 - Make more use of let_chains 2022-03-01 07:43:12 -03:00
reveal_all.rs Overhaul TyS and Ty. 2022-02-15 16:03:24 +11:00
separate_const_switch.rs Add new Deinit statement kind 2022-04-11 08:55:03 -04:00
shim.rs Refactor call terminator to always hold a destination place 2022-05-23 17:49:04 -04:00
simplify_branches.rs Auto merge of #91279 - scottmcm:small-refactor, r=nagisa 2021-12-06 13:04:18 +00:00
simplify_comparison_integral.rs fix most compiler/ doctests 2022-05-02 17:40:30 -07:00
simplify_try.rs fix most compiler/ doctests 2022-05-02 17:40:30 -07:00
simplify.rs Preserve unused pointer to address casts 2022-06-07 17:33:16 +02:00
uninhabited_enum_branching.rs Clarify Layout interning. 2022-03-07 13:41:47 +11:00
unreachable_prop.rs Remove deprecated LLVM-style inline assembly 2022-01-12 18:51:31 +01:00