rust/compiler/rustc_passes/src/lib.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

69 lines
1.8 KiB
Rust
Raw Normal View History

//! Various checks
//!
//! # Note
//!
//! This API is completely unstable and subject to change.
2022-02-28 18:52:36 +00:00
#![allow(rustc::potential_query_instability)]
2020-09-23 19:51:56 +00:00
#![doc(html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/")]
#![cfg_attr(not(bootstrap), doc(rust_logo))]
#![cfg_attr(not(bootstrap), feature(rustdoc_internals))]
#![cfg_attr(not(bootstrap), allow(internal_features))]
2022-01-15 18:57:47 +00:00
#![feature(iter_intersperse)]
#![feature(let_chains)]
#![feature(map_try_insert)]
#![feature(min_specialization)]
#![feature(try_blocks)]
2018-12-13 15:57:25 +00:00
#![recursion_limit = "256"]
#![deny(rustc::untranslatable_diagnostic)]
#![deny(rustc::diagnostic_outside_of_impl)]
2018-12-13 15:57:25 +00:00
2016-07-21 01:31:14 +00:00
#[macro_use]
2020-03-29 14:41:09 +00:00
extern crate rustc_middle;
2019-10-04 14:37:40 +00:00
#[macro_use]
2020-08-14 06:05:01 +00:00
extern crate tracing;
use rustc_errors::{DiagnosticMessage, SubdiagnosticMessage};
use rustc_fluent_macro::fluent_messages;
use rustc_middle::query::Providers;
2023-08-25 21:01:06 +00:00
pub mod abi_test;
mod check_attr;
mod check_const;
2019-10-04 14:33:11 +00:00
pub mod dead;
mod debugger_visualizer;
mod diagnostic_items;
2019-10-04 14:37:40 +00:00
pub mod entry;
mod errors;
pub mod hir_id_validator;
2019-10-04 14:31:28 +00:00
pub mod hir_stats;
mod lang_items;
pub mod layout_test;
mod lib_features;
2019-12-22 22:42:04 +00:00
mod liveness;
2016-01-21 09:52:37 +00:00
pub mod loops;
mod naked_functions;
mod reachable;
pub mod stability;
2020-01-01 16:31:03 +00:00
mod upvars;
mod weak_lang_items;
fluent_messages! { "../messages.ftl" }
pub fn provide(providers: &mut Providers) {
check_attr::provide(providers);
check_const::provide(providers);
2022-01-29 20:10:41 +00:00
dead::provide(providers);
debugger_visualizer::provide(providers);
diagnostic_items::provide(providers);
2019-10-04 14:37:40 +00:00
entry::provide(providers);
lang_items::provide(providers);
lib_features::provide(providers);
2018-06-06 20:13:52 +00:00
loops::provide(providers);
naked_functions::provide(providers);
2019-10-04 14:31:28 +00:00
liveness::provide(providers);
reachable::provide(providers);
stability::provide(providers);
2020-01-01 16:31:03 +00:00
upvars::provide(providers);
}