rust/compiler/rustc_borrowck/src/diagnostics
bors e30fb6a26f Auto merge of #102618 - aliemjay:simplify-closure-promote, r=compiler-errors
rework applying closure requirements in borrowck

Previously the promoted closure constraints were registered under the category `ConstraintCategory::ClosureBounds` in `type_check::prove_closure_bounds()` and then mapped back their original category in `regions_infer::best_blame_constraint` using the complicated map `closure_bounds_mapping`.

Now we're registering promoted constraints under their original category and span earlier in `type_check::prove_closure_bounds`.

See commit messages.

Fixes #99245
2022-11-06 05:26:09 +00:00
..
bound_region_errors.rs (almost) Always use ObligationCtxt when dealing with canonical queries 2022-10-27 15:43:33 +00:00
conflict_errors.rs Use TraitEngine less 2022-11-02 04:11:05 +00:00
explain_borrow.rs Revert "Make ClosureOutlivesRequirement not rely on an unresolved type" 2022-10-27 16:15:11 +00:00
find_all_local_uses.rs cleanup mir visitor for rustc::pass_by_value 2022-07-01 16:21:21 +02:00
find_use.rs cleanup mir visitor for rustc::pass_by_value 2022-07-01 16:21:21 +02:00
mod.rs Change InferCtxtBuilder from enter to build 2022-10-07 07:10:40 -05:00
move_errors.rs Rollup merge of #101431 - compiler-errors:move-place-ty-for-move-place-sugg, r=cjgillot 2022-09-25 22:06:37 +08:00
mutability_errors.rs separate definitions and HIR owners 2022-09-24 23:21:19 +09:00
outlives_suggestion.rs Revert "Make ClosureOutlivesRequirement not rely on an unresolved type" 2022-10-27 16:15:11 +00:00
region_errors.rs use spans in TypeTest rather than mir::Location 2022-11-05 07:36:47 +03:00
region_name.rs Don't ICE on regions from anonymous_lifetime_in_impl_trait 2022-10-22 03:00:58 +00:00
var_name.rs Remove crate visibility usage in compiler 2022-05-20 20:04:54 -04:00