Apply suggestions from code review

Co-authored-by: Tshepang Mbambo <tshepang@gmail.com>
This commit is contained in:
Denis Belik 2022-12-10 13:47:22 +02:00 committed by Tshepang Mbambo
parent 914b409125
commit 7353fd14ee
1 changed files with 3 additions and 4 deletions

View File

@ -1,7 +1,6 @@
# AST Validation # AST Validation
* [About](#about) <!-- toc -->
* [Validation](#validation)
## About ## About
@ -17,9 +16,9 @@ is done, the compiler runs the crate resolution pass.
## Validations ## Validations
Validations are defined in `AstValidator` class, which Validations are defined in `AstValidator` type, which
itself is located in `rustc_ast_passes` crate. This itself is located in `rustc_ast_passes` crate. This
class implements various simple checks which emit errors type implements various simple checks which emit errors
when certain language rules are broken. when certain language rules are broken.
In addition, `AstValidator` implements `Visitor` trait In addition, `AstValidator` implements `Visitor` trait