rust/compiler/rustc_borrowck/src
bors b2dd217dd0 Auto merge of #140737 - amandasystems:revised-constraint-search, r=lcnr
Region inference: Use outlives-static constraints in constraint search

Revise the extra `r: 'static` constraints added upon universe issues to add an explanation, and use that explanation during constraint blame search. This greatly simplifies the region inference logic, which now does not need to reverse-engineer the event that caused a region to outlive `'static`.

This cosmetically changes the output of two UI tests. I blessed them i separate commits with separate motivations, but that can of course be squashed as desired. We probably want that.

The PR was extracted out of rust-lang/rust#130227 and consists of one-third of its functional payload.

r? lcnr
2025-08-27 09:25:46 +00:00
..
constraints Move placeholder handling to a proper preprocessing step 2025-06-03 12:20:15 +02:00
diagnostics Region inference: Use outlives-static constraints in constraint search 2025-08-22 13:38:22 +02:00
polonius Rollup merge of #145111 - fee1-dead-contrib:push-rlvnyrztlkpq, r=jieyouxu 2025-08-11 16:19:05 +02:00
region_infer Auto merge of #140737 - amandasystems:revised-constraint-search, r=lcnr 2025-08-27 09:25:46 +00:00
type_check Rollup merge of #145620 - compiler-errors:fake-dyn-to-dyn, r=lcnr 2025-08-25 19:52:19 +10:00
borrow_set.rs rename BitSet to DenseBitSet 2025-01-11 11:34:01 +00:00
borrowck_errors.rs Use closure parse code 2025-03-06 17:58:32 -03:00
consumers.rs Expose nested bodies in rustc_borrowck::consumers 2025-07-08 19:09:14 -07:00
dataflow.rs handle opaque types before region inference 2025-08-20 11:04:38 +02:00
def_use.rs Visit place in BackwardIncompatibleDropHint statement 2025-04-13 22:01:54 +00:00
handle_placeholders.rs Simplify SCC annotations somewhat 2025-08-23 22:25:50 +02:00
lib.rs change HIR typeck unification handling approach 2025-08-22 13:39:38 +02:00
nll.rs borrowck: defer opaque type errors 2025-08-08 19:24:53 +02:00
path_utils.rs remove borrowck duplicate of std::ops::ControlFlow 2025-01-01 12:13:33 +00:00
place_ext.rs Remove #[macro_use] extern crate tracing from rustc_borrowck. 2024-08-30 17:14:53 +10:00
places_conflict.rs Implement MIR, CTFE, and codegen for unsafe binders 2025-01-31 17:19:53 +00:00
prefixes.rs Implement MIR, CTFE, and codegen for unsafe binders 2025-01-31 17:19:53 +00:00
renumber.rs remove from_forall 2025-08-11 09:18:46 +02:00
root_cx.rs change HIR typeck unification handling approach 2025-08-22 13:39:38 +02:00
session_diagnostics.rs move check_opaque_type_parameter_valid 2025-04-03 11:13:10 +02:00
universal_regions.rs borrowck: move error tainting earlier 2025-08-08 19:16:03 +02:00
used_muts.rs Remove unnecessary lifetimes in dataflow structs. 2024-09-09 16:14:18 +10:00