-
-
Notifications
You must be signed in to change notification settings - Fork 498
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(traverse): harden soundness of
Traverse
and document safet…
…y invariants better (#8507) Harden soundness of `Traverse` by: 1. Not exposing `walk_*` methods outside of `walk.rs`. 2. Adding more debug assertions. 3. Adding `#[must_use]` to `TraverseAncestry::push_stack`, so we'll get a lint error if codegen-ed code pushes to `TraverseAncestry`'s stack and doesn't pop it off again. Document the safety invariants better.
- Loading branch information
1 parent
8b6d331
commit a368726
Showing
4 changed files
with
289 additions
and
233 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.