1
Fork 0
rust/compiler/rustc_trait_selection/src
Aaron Hill 4910fe6889
Fix incorrect usage of EvaluatedToOk when evaluating TypeOutlives
A global predicate is not guarnatenteed to outlive all regions.
If the predicate involves late-bound regions, then it may fail
to outlive other regions (e.g. `for<'b> &'b bool: 'static` does not
hold)

We now only produce `EvaluatedToOk` when a global predicate has no
late-bound regions - in that case, the ony region that can be present
in the type is 'static
2021-11-28 15:03:58 -05:00
..
traits Fix incorrect usage of EvaluatedToOk when evaluating TypeOutlives 2021-11-28 15:03:58 -05:00
autoderef.rs Make select_* methods return Vec for TraitEngine 2021-11-08 23:35:23 +08:00
infer.rs Move some outlives bounds things from rustc_trait_selection to rustc_typeck 2021-10-15 12:14:19 -04:00
lib.rs Unwrap the results of type folders 2021-11-26 07:38:25 +00:00
opaque_types.rs Unwrap the results of type folders 2021-11-26 07:38:25 +00:00