2022-08-20 18:40:08 +00:00
|
|
|
#![feature(let_chains)]
|
2022-01-31 19:47:07 +00:00
|
|
|
#![feature(option_get_or_insert_default)]
|
2022-06-10 14:50:06 +00:00
|
|
|
#![feature(rustc_attrs)]
|
2022-07-01 13:48:23 +00:00
|
|
|
#![feature(map_many_mut)]
|
2023-09-21 13:27:45 +00:00
|
|
|
#![feature(iter_intersperse)]
|
2023-08-22 11:06:38 +00:00
|
|
|
#![allow(internal_features)]
|
2019-11-29 21:05:28 +00:00
|
|
|
|
2022-08-19 13:34:13 +00:00
|
|
|
pub mod errors;
|
2020-06-14 00:00:00 +00:00
|
|
|
|
2019-11-12 13:30:40 +00:00
|
|
|
pub mod utils;
|
2020-08-13 19:41:52 +00: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 20:45:26 +00:00
|
|
|
pub mod parse;
|
2019-11-29 21:05:28 +00:00
|
|
|
|
2023-05-17 12:28:04 +00:00
|
|
|
pub mod code_stats;
|
2019-12-17 12:22:55 +00:00
|
|
|
#[macro_use]
|
2019-11-29 21:05:28 +00:00
|
|
|
pub mod config;
|
2020-11-14 02:02:03 +00:00
|
|
|
pub mod cstore;
|
2019-11-29 21:05:28 +00:00
|
|
|
pub mod filesearch;
|
2019-12-22 22:42:04 +00:00
|
|
|
mod options;
|
2019-11-29 21:05:28 +00:00
|
|
|
pub mod search_paths;
|
|
|
|
|
|
|
|
mod session;
|
|
|
|
pub use session::*;
|
2020-03-12 23:07:58 +00:00
|
|
|
|
|
|
|
pub mod output;
|
2020-04-10 20:42:19 +00:00
|
|
|
|
|
|
|
pub use getopts;
|
2021-06-25 23:48:26 +00:00
|
|
|
|
2023-10-27 00:18:21 +00:00
|
|
|
mod version;
|
|
|
|
pub use version::RustcVersion;
|
|
|
|
|
2023-11-21 22:53:07 +00:00
|
|
|
rustc_fluent_macro::fluent_messages! { "../messages.ftl" }
|
2022-10-13 09:13:02 +00:00
|
|
|
|
2021-06-25 23:48:26 +00: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 02:02:03 +00:00
|
|
|
pub trait HashStableContext: rustc_ast::HashStableContext + rustc_hir::HashStableContext {}
|