Uh oh!
There was an error while loading. Please reload this page.
Some where clause lowering simplifications - #132196
Conversation
rustbot
commented
Oct 26, 2024
rustbot has assigned @petrochenkov. Use |
rustbot
commented
Oct 26, 2024
HIR ty lowering was modified cc @fmease |
petrochenkov
commented
Oct 27, 2024
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.
compiler-errors
commented
Oct 31, 2024
forgot to flip back to ready: @rustbot ready |
This comment was marked as resolved.
This comment was marked as resolved.
90a6240 to
81dba07Comparepetrochenkov
commented
Nov 1, 2024
@bors r+ |
bors
commented
Nov 1, 2024
bors
commented
Nov 1, 2024
bors
commented
Nov 1, 2024
☀️ Test successful - checks-actions |
rust-timer
commented
Nov 1, 2024
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.