2022-08-20 20:40:08 +02:00
|
|
|
#![feature(let_chains)]
|
2022-12-12 00:42:45 -05:00
|
|
|
#![feature(lazy_cell)]
|
2022-01-31 21:47:07 +02:00
|
|
|
#![feature(option_get_or_insert_default)]
|
2022-06-10 15:50:06 +01:00
|
|
|
#![feature(rustc_attrs)]
|
2022-07-01 15:48:23 +02:00
|
|
|
#![feature(map_many_mut)]
|
2023-09-21 13:27:45 +00:00
|
|
|
#![feature(iter_intersperse)]
|
2023-08-22 07:06:38 -04:00
|
|
|
#![allow(internal_features)]
|
2019-11-29 16:05:28 -05:00
|
|
|
|
2020-06-11 15:49:57 +01:00
|
|
|
#[macro_use]
|
|
|
|
extern crate rustc_macros;
|
2022-08-19 15:34:13 +02:00
|
|
|
pub mod errors;
|
2020-06-14 00:00:00 +00:00
|
|
|
|
2022-08-31 13:09:26 +00:00
|
|
|
#[macro_use]
|
|
|
|
extern crate tracing;
|
|
|
|
|
2019-11-12 08:30:40 -05:00
|
|
|
pub mod utils;
|
2020-08-13 15:41:52 -04:00
|
|
|
pub use lint::{declare_lint, declare_lint_pass, declare_tool_lint, impl_lint_pass};
|
|
|
|
pub use rustc_lint_defs as lint;
|
2019-11-29 15:45:26 -05:00
|
|
|
pub mod parse;
|
2019-11-29 16:05:28 -05:00
|
|
|
|
2023-05-17 12:28:04 +00:00
|
|
|
pub mod code_stats;
|
2019-12-17 23:22:55 +11:00
|
|
|
#[macro_use]
|
2019-11-29 16:05:28 -05:00
|
|
|
pub mod config;
|
2020-11-14 03:02:03 +01:00
|
|
|
pub mod cstore;
|
2019-11-29 16:05:28 -05:00
|
|
|
pub mod filesearch;
|
2019-12-17 23:22:55 +11:00
|
|
|
mod options;
|
2019-11-29 16:05:28 -05:00
|
|
|
pub mod search_paths;
|
|
|
|
|
|
|
|
mod session;
|
|
|
|
pub use session::*;
|
2020-03-12 18:07:58 -05:00
|
|
|
|
|
|
|
pub mod output;
|
2020-04-10 22:42:19 +02:00
|
|
|
|
|
|
|
pub use getopts;
|
2021-06-25 18:48:26 -05:00
|
|
|
|
2023-10-26 17:18:21 -07:00
|
|
|
mod version;
|
|
|
|
pub use version::RustcVersion;
|
|
|
|
|
2023-11-22 09:53:07 +11:00
|
|
|
rustc_fluent_macro::fluent_messages! { "../messages.ftl" }
|
2022-10-13 10:13:02 +01:00
|
|
|
|
2021-06-25 18:48:26 -05:00
|
|
|
/// Requirements for a `StableHashingContext` to be used in this crate.
|
|
|
|
/// This is a hack to allow using the `HashStable_Generic` derive macro
|
|
|
|
/// instead of implementing everything in `rustc_middle`.
|
2020-11-14 03:02:03 +01:00
|
|
|
pub trait HashStableContext: rustc_ast::HashStableContext + rustc_hir::HashStableContext {}
|