Skip to content

Commit

Permalink
Rollup merge of #121256 - Jarcho:visitor2, r=oli-obk
Browse files Browse the repository at this point in the history
Allow AST and HIR visitors to return `ControlFlow`

Alternative to #108598.

Since rust-lang/libs-team#187 was rejected, this implements our own version of the `Try` trait (`VisitorResult`) and the `try` macro (`try_visit`). Since this change still allows visitors to return `()`, no changes have been made to the existing ones. They can be done in a separate PR.
  • Loading branch information
Noratrieb authored Feb 20, 2024
2 parents 6c52ea6 + 9d527db commit e9d6b16
Showing 0 changed files with 0 additions and 0 deletions.

0 comments on commit e9d6b16

Please sign in to comment.