change wf.rs
to use a TypeVisitor
instead of walk
#121693
Labels
A-trait-system
Area: Trait system
C-cleanup
Category: PRs that clean code up or issues documenting cleanup.
T-types
Relevant to the types team, which will review and decide on the PR/issue.
we should change the following function to use a
TypeVisitor
instead ofwalk
rust/compiler/rustc_trait_selection/src/traits/wf.rs
Line 512 in b6e4299
Using a walker causes the control-flow to be a lot more complicated and given that this code is soundness-critical, we should make sure it's as easy to understand as possible
The text was updated successfully, but these errors were encountered: