Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
lcnr opened this issue Feb 27, 2024 · 1 comment · Fixed by #122150
Closed

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

lcnr opened this issue Feb 27, 2024 · 1 comment · Fixed by #122150
Assignees
Labels
A-traits 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.

Comments

@lcnr
Copy link
Contributor

lcnr commented Feb 27, 2024

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

@rustbot rustbot added the needs-triage This issue may need triage. Remove it if it has been sufficiently triaged. label Feb 27, 2024
@lcnr lcnr added C-cleanup Category: PRs that clean code up or issues documenting cleanup. and removed needs-triage This issue may need triage. Remove it if it has been sufficiently triaged. labels Feb 27, 2024
@jieyouxu jieyouxu added A-traits Area: Trait system T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Feb 27, 2024
@compiler-errors compiler-errors added T-types Relevant to the types team, which will review and decide on the PR/issue. and removed T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Feb 27, 2024
@ShoyuVanilla
Copy link
Member

@rustbot claim

bors added a commit to rust-lang-ci/rust that referenced this issue Mar 8, 2024
…try>

Replace `TypeWalker` usage with `TypeVisitor` in `wf.rs`

Resolves rust-lang#121693
@bors bors closed this as completed in b054da8 Mar 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-traits 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.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants