Skip to content

change wf.rs to use a TypeVisitor instead of walk #121693

Closed
@lcnr

Description

@lcnr

we should change the following function to use a TypeVisitor instead of walk

fn compute(&mut self, arg: GenericArg<'tcx>) {

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

Metadata

Metadata

Assignees

Labels

A-trait-systemArea: Trait systemC-cleanupCategory: PRs that clean code up or issues documenting cleanup.T-typesRelevant to the types team, which will review and decide on the PR/issue.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions