Skip to content

Allow visits from both visitor and VisitorMut at the same time without using trait disambiguation#2389

Open
docteurklein wants to merge 1 commit into
apache:mainfrom
docteurklein:visit-and-visit_mut
Open

Allow visits from both visitor and VisitorMut at the same time without using trait disambiguation#2389
docteurklein wants to merge 1 commit into
apache:mainfrom
docteurklein:visit-and-visit_mut

Conversation

@docteurklein

Copy link
Copy Markdown

Closes #2067 .

Hello! I just now realize that I could have used overlapping trait Disambiguation:

let _ = Visit::visit(&statements, &mut whitelist);
let _ = VisitMut::visit(&mut statements, &mut VisitOrderBy(order));

But here I am with this proposition anyway.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Rename VisitorMut::visit to VisitorMut::visit_mut

1 participant