rust/compiler/rustc_trait_selection/src/traits
Matthias Krüger d02a221d31
Rollup merge of #102945 - compiler-errors:placeholder-region-outlives, r=lcnr
Do not register placeholder `RegionOutlives` obligations when `considering_regions` is false

**NOTE:** I'm kinda just putting this up for discussion. I'm not certain this is correct...?

This was introduced in [`608625d`](608625dae9 (diff-6e54b18681342ec725d75591dbf384ad08cd73df29db00485fe51b4e90f76ff7R361)).

Interestingly, we only check `data.has_placeholders()` for `RegionOutlives`, and not for `TypeOutlives`... why? For the record, that different treatment between `RegionOutlives` and `TypeOutlives` is why the fix "The compiling succeeds when all `'a : 'b` are replaced with `&'a () : 'b`" in #100689 _"works"_, but it seems like an implementation detail considering this.

Also, why do we care about placeholder regions being registered if `considering_regions` is false? It doesn't seem to affect any UI tests, for example.

r? `@lcnr`

Fixes #102899
Fixes #100689
2022-10-17 17:15:50 +02:00
..
error_reporting check if the self type is ty::Float before getting second substs 2022-10-14 13:31:15 +09:00
query Remove TypeckResults from InferCtxt 2022-10-07 07:06:19 -05:00
select Rollup merge of #102466 - lcnr:const-equate-uwu, r=BoxyUwU 2022-10-17 17:15:50 +02:00
specialize Make overlapping_impls non-generic 2022-10-13 14:54:48 -05:00
auto_trait.rs Fix compiler docs 2022-10-10 18:28:29 +02:00
chalk_fulfill.rs Remove TypeckResults from InferCtxt 2022-10-07 07:06:19 -05:00
codegen.rs Change InferCtxtBuilder from enter to build 2022-10-07 07:10:40 -05:00
coherence.rs Auto merge of #102931 - camsteffen:inline-overlapping-impls, r=cjgillot 2022-10-16 02:05:30 +00:00
const_evaluatable.rs more dupe word typos 2022-10-14 12:57:56 +08:00
engine.rs Remove TypeckResults from InferCtxt 2022-10-07 07:06:19 -05:00
fulfill.rs Rollup merge of #102945 - compiler-errors:placeholder-region-outlives, r=lcnr 2022-10-17 17:15:50 +02:00
misc.rs Change InferCtxtBuilder from enter to build 2022-10-07 07:10:40 -05:00
mod.rs Change InferCtxtBuilder from enter to build 2022-10-07 07:10:40 -05:00
object_safety.rs Sort elaborated existential predicates in object_ty_for_trait 2022-10-13 02:21:15 +00:00
on_unimplemented.rs Address nits, rename enclosing_scope => parent_label 2022-09-04 02:10:31 +00:00
outlives_bounds.rs Remove TypeckResults from InferCtxt 2022-10-07 07:06:19 -05:00
project.rs Fix subst issues with RPITIT 2022-10-15 17:46:03 +00:00
relationships.rs Remove TypeckResults from InferCtxt 2022-10-07 07:06:19 -05:00
structural_match.rs Change InferCtxtBuilder from enter to build 2022-10-07 07:10:40 -05:00
util.rs remove the Subst trait, always use EarlyBinder 2022-09-19 11:37:27 +02:00
wf.rs Rollup merge of #102829 - compiler-errors:rename-impl-item-kind, r=TaKO8Ki 2022-10-10 00:09:42 +09:00