2021-01-29 07:31:08 +00:00
|
|
|
#![feature(box_patterns)]
|
2022-11-09 08:52:59 +00:00
|
|
|
#![feature(decl_macro)]
|
2020-11-03 23:11:14 +00:00
|
|
|
#![feature(internal_output_capture)]
|
2021-09-19 18:02:38 +00:00
|
|
|
#![feature(thread_spawn_unchecked)]
|
2022-12-12 05:42:45 +00:00
|
|
|
#![feature(lazy_cell)]
|
MCP636: Add simpler and more explicit syntax to check-cfg
This add a new form and deprecated the other ones:
- cfg(name1, ..., nameN, values("value1", "value2", ... "valueN"))
- cfg(name1, ..., nameN) or cfg(name1, ..., nameN, values())
- cfg(any())
It also changes the default exhaustiveness to be enable-by-default in
the presence of any --check-cfg arguments.
2023-05-01 12:17:56 +00:00
|
|
|
#![feature(let_chains)]
|
2023-01-09 15:15:26 +00:00
|
|
|
#![feature(try_blocks)]
|
2018-12-08 19:30:23 +00:00
|
|
|
#![recursion_limit = "256"]
|
2022-02-23 13:06:22 +00:00
|
|
|
#![allow(rustc::potential_query_instability)]
|
2022-08-20 16:33:35 +00:00
|
|
|
#![deny(rustc::untranslatable_diagnostic)]
|
|
|
|
#![deny(rustc::diagnostic_outside_of_impl)]
|
2018-12-08 19:30:23 +00:00
|
|
|
|
2022-08-31 13:09:26 +00:00
|
|
|
#[macro_use]
|
|
|
|
extern crate tracing;
|
|
|
|
|
2023-04-16 12:33:00 +00:00
|
|
|
use rustc_fluent_macro::fluent_messages;
|
2022-10-13 09:13:02 +00:00
|
|
|
|
2019-12-25 18:38:57 +00:00
|
|
|
mod callbacks;
|
2022-08-20 16:30:49 +00:00
|
|
|
mod errors;
|
2018-12-08 19:30:23 +00:00
|
|
|
pub mod interface;
|
|
|
|
mod passes;
|
|
|
|
mod proc_macro_decls;
|
|
|
|
mod queries;
|
2018-12-08 19:30:23 +00:00
|
|
|
pub mod util;
|
2018-12-08 19:30:23 +00:00
|
|
|
|
2021-06-25 11:03:39 +00:00
|
|
|
pub use callbacks::setup_callbacks;
|
2018-12-08 19:30:23 +00:00
|
|
|
pub use interface::{run_compiler, Config};
|
2023-09-22 16:38:31 +00:00
|
|
|
pub use passes::DEFAULT_QUERY_PROVIDERS;
|
2019-11-30 09:16:19 +00:00
|
|
|
pub use queries::Queries;
|
2019-10-11 21:48:16 +00:00
|
|
|
|
|
|
|
#[cfg(test)]
|
|
|
|
mod tests;
|
2022-10-13 09:13:02 +00:00
|
|
|
|
2023-03-02 23:18:38 +00:00
|
|
|
fluent_messages! { "../messages.ftl" }
|