Some where clause lowering simplifications#132196
Conversation
|
rustbot has assigned @petrochenkov. Use |
|
HIR ty lowering was modified cc @fmease |
|
Are there any observable effects from the second commit? r=me after the explanation. |
compiler-errors
left a comment
There was a problem hiding this comment.
No, this should not have observable changes.
SelfTraitThatDefines is a filter that is concerned with gathering trait predicates of the form ParamTy: Trait for a given ParamTy. We did this previously somewhat haphazardly, both when lowering the bounds, and then re-filtering the bounds again after they've been collected, since the existing predicate filter handling was too lax.
Let me add a debug assertion back that I removed to validate that any further refactorings to the PredicateFilters doesn't accidentally reintroduce this behavior.
|
forgot to flip back to ready: @rustbot ready |
This comment was marked as resolved.
This comment was marked as resolved.
90a6240 to
81dba07
Compare
|
@bors r+ |
|
☀️ Test successful - checks-actions |
|
Finished benchmarking commit (5ca0e9f): comparison URL. Overall result: no relevant changes - no action needed@rustbot label: -perf-regression Instruction countThis benchmark run did not return any relevant results for this metric. Max RSS (memory usage)This benchmark run did not return any relevant results for this metric. CyclesThis benchmark run did not return any relevant results for this metric. Binary sizeThis benchmark run did not return any relevant results for this metric. Bootstrap: 779.851s -> 780.79s (0.12%) |
Rename
PredicateFilter::SelfThatDefinestoPredicateFilter::SelfTraitThatDefinesto make it clear that it's only concerned with converting traits, and make it do a bit less work when converting bounds.Also, make the predicate filter matching in
probe_ty_param_bounds_in_genericsexplicit, and simply the args it receives a bit.