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