
Instead of allowing `rustc::potential_query_instability` on the whole crate we go over each lint and allow it individually if it is safe to do. Turns out all instances were safe to allow in this crate.
48 lines
1.1 KiB
Rust
48 lines
1.1 KiB
Rust
#![feature(let_chains)]
|
|
#![feature(never_type)]
|
|
#![feature(lazy_cell)]
|
|
#![feature(option_get_or_insert_default)]
|
|
#![feature(rustc_attrs)]
|
|
#![feature(map_many_mut)]
|
|
#![feature(iter_intersperse)]
|
|
#![recursion_limit = "256"]
|
|
#![deny(rustc::untranslatable_diagnostic)]
|
|
#![deny(rustc::diagnostic_outside_of_impl)]
|
|
#![allow(internal_features)]
|
|
|
|
#[macro_use]
|
|
extern crate rustc_macros;
|
|
pub mod errors;
|
|
|
|
#[macro_use]
|
|
extern crate tracing;
|
|
|
|
pub mod utils;
|
|
pub use lint::{declare_lint, declare_lint_pass, declare_tool_lint, impl_lint_pass};
|
|
pub use rustc_lint_defs as lint;
|
|
pub mod parse;
|
|
|
|
pub mod code_stats;
|
|
#[macro_use]
|
|
pub mod config;
|
|
pub mod cstore;
|
|
pub mod filesearch;
|
|
mod options;
|
|
pub mod search_paths;
|
|
|
|
mod session;
|
|
pub use session::*;
|
|
|
|
pub mod output;
|
|
|
|
pub use getopts;
|
|
|
|
mod version;
|
|
pub use version::RustcVersion;
|
|
|
|
rustc_fluent_macro::fluent_messages! { "../messages.ftl" }
|
|
|
|
/// 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`.
|
|
pub trait HashStableContext: rustc_ast::HashStableContext + rustc_hir::HashStableContext {}
|