2019-12-17 23:22:55 +11:00
|
|
|
#![feature(crate_visibility_modifier)]
|
2021-11-22 20:17:53 -05:00
|
|
|
#![feature(derive_default_enum)]
|
2020-11-14 16:35:31 +01:00
|
|
|
#![feature(min_specialization)]
|
2020-08-29 19:16:49 +01:00
|
|
|
#![feature(once_cell)]
|
2021-03-14 14:12:04 -04:00
|
|
|
#![recursion_limit = "256"]
|
2022-01-05 13:02:16 +01:00
|
|
|
#![cfg_attr(not(bootstrap), allow(rustc::potential_query_instability))]
|
2019-11-29 16:05:28 -05:00
|
|
|
|
2020-06-11 15:49:57 +01:00
|
|
|
#[macro_use]
|
|
|
|
extern crate rustc_macros;
|
2020-06-14 00:00:00 +00:00
|
|
|
|
2019-11-12 08:22:16 -05:00
|
|
|
pub mod cgu_reuse_tracker;
|
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
|
|
|
|
|
|
|
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-22 17:42:04 -05: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
|
|
|
|
|
|
|
/// 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 {}
|