mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 14:55:26 +00:00
57cd5e6551
Currently we always do this: ``` use rustc_fluent_macro::fluent_messages; ... fluent_messages! { "./example.ftl" } ``` But there is no need, we can just do this everywhere: ``` rustc_fluent_macro::fluent_messages! { "./example.ftl" } ``` which is shorter.
67 lines
1.6 KiB
Rust
67 lines
1.6 KiB
Rust
//! Various checks
|
|
//!
|
|
//! # Note
|
|
//!
|
|
//! This API is completely unstable and subject to change.
|
|
|
|
#![allow(rustc::potential_query_instability)]
|
|
#![doc(html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/")]
|
|
#![doc(rust_logo)]
|
|
#![feature(rustdoc_internals)]
|
|
#![allow(internal_features)]
|
|
#![feature(iter_intersperse)]
|
|
#![feature(let_chains)]
|
|
#![feature(map_try_insert)]
|
|
#![feature(min_specialization)]
|
|
#![feature(try_blocks)]
|
|
#![recursion_limit = "256"]
|
|
#![deny(rustc::untranslatable_diagnostic)]
|
|
#![deny(rustc::diagnostic_outside_of_impl)]
|
|
|
|
#[macro_use]
|
|
extern crate rustc_middle;
|
|
#[macro_use]
|
|
extern crate tracing;
|
|
|
|
use rustc_middle::query::Providers;
|
|
|
|
pub mod abi_test;
|
|
mod check_attr;
|
|
mod check_const;
|
|
pub mod dead;
|
|
mod debugger_visualizer;
|
|
mod diagnostic_items;
|
|
pub mod entry;
|
|
mod errors;
|
|
pub mod hir_id_validator;
|
|
pub mod hir_stats;
|
|
mod lang_items;
|
|
pub mod layout_test;
|
|
mod lib_features;
|
|
mod liveness;
|
|
pub mod loops;
|
|
mod naked_functions;
|
|
mod reachable;
|
|
pub mod stability;
|
|
mod upvars;
|
|
mod weak_lang_items;
|
|
|
|
rustc_fluent_macro::fluent_messages! { "../messages.ftl" }
|
|
|
|
pub fn provide(providers: &mut Providers) {
|
|
check_attr::provide(providers);
|
|
check_const::provide(providers);
|
|
dead::provide(providers);
|
|
debugger_visualizer::provide(providers);
|
|
diagnostic_items::provide(providers);
|
|
entry::provide(providers);
|
|
lang_items::provide(providers);
|
|
lib_features::provide(providers);
|
|
loops::provide(providers);
|
|
naked_functions::provide(providers);
|
|
liveness::provide(providers);
|
|
reachable::provide(providers);
|
|
stability::provide(providers);
|
|
upvars::provide(providers);
|
|
}
|