2020-01-05 10:58:44 +01:00
|
|
|
//! The `rustc_ast_passes` crate contains passes which validate the AST in `syntax`
|
|
|
|
|
//! parsed by `rustc_parse` and then lowered, after the passes in this crate,
|
|
|
|
|
//! by `rustc_ast_lowering`.
|
2020-01-11 09:48:57 +01:00
|
|
|
//!
|
|
|
|
|
//! The crate also contains other misc AST visitors, e.g. `node_count` and `show_span`.
|
2020-01-05 10:58:44 +01:00
|
|
|
|
2023-11-13 07:39:17 -05:00
|
|
|
#![allow(internal_features)]
|
|
|
|
|
#![doc(rust_logo)]
|
|
|
|
|
#![feature(rustdoc_internals)]
|
2021-01-29 08:31:08 +01:00
|
|
|
#![feature(box_patterns)]
|
2022-03-09 15:04:09 -03:00
|
|
|
#![feature(if_let_guard)]
|
|
|
|
|
#![feature(iter_is_partitioned)]
|
2022-08-20 20:40:08 +02:00
|
|
|
#![feature(let_chains)]
|
2020-11-27 15:46:19 -05:00
|
|
|
#![recursion_limit = "256"]
|
2023-02-25 13:53:42 +00:00
|
|
|
#![deny(rustc::untranslatable_diagnostic)]
|
|
|
|
|
#![deny(rustc::diagnostic_outside_of_impl)]
|
2020-03-22 04:40:05 +01:00
|
|
|
|
2023-04-16 14:33:00 +02:00
|
|
|
use rustc_fluent_macro::fluent_messages;
|
2022-10-13 10:13:02 +01:00
|
|
|
|
2020-01-05 10:58:44 +01:00
|
|
|
pub mod ast_validation;
|
2022-08-17 23:51:01 +09:00
|
|
|
mod errors;
|
2020-01-05 11:11:39 +01:00
|
|
|
pub mod feature_gate;
|
2020-01-11 09:48:57 +01:00
|
|
|
pub mod node_count;
|
2020-01-05 11:21:26 +01:00
|
|
|
pub mod show_span;
|
2022-10-13 10:13:02 +01:00
|
|
|
|
2023-03-03 00:18:38 +01:00
|
|
|
fluent_messages! { "../messages.ftl" }
|