• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 //! The `rustc_ast_passes` crate contains passes which validate the AST in `syntax`
2 //! parsed by `rustc_parse` and then lowered, after the passes in this crate,
3 //! by `rustc_ast_lowering`.
4 //!
5 //! The crate also contains other misc AST visitors, e.g. `node_count` and `show_span`.
6 
7 #![feature(box_patterns)]
8 #![feature(if_let_guard)]
9 #![feature(iter_is_partitioned)]
10 #![feature(let_chains)]
11 #![recursion_limit = "256"]
12 #![deny(rustc::untranslatable_diagnostic)]
13 #![deny(rustc::diagnostic_outside_of_impl)]
14 
15 use rustc_errors::{DiagnosticMessage, SubdiagnosticMessage};
16 use rustc_fluent_macro::fluent_messages;
17 
18 pub mod ast_validation;
19 mod errors;
20 pub mod feature_gate;
21 pub mod node_count;
22 pub mod show_span;
23 
24 fluent_messages! { "../messages.ftl" }
25