2021-01-29 08:31:08 +01:00
|
|
|
#![feature(box_patterns)]
|
2022-11-09 02:52:59 -06:00
|
|
|
#![feature(decl_macro)]
|
2020-11-04 00:11:14 +01:00
|
|
|
#![feature(internal_output_capture)]
|
2021-09-19 14:02:38 -04:00
|
|
|
#![feature(thread_spawn_unchecked)]
|
2022-12-12 00:42:45 -05: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 14:17:56 +02:00
|
|
|
#![feature(let_chains)]
|
2023-01-09 15:15:26 +00:00
|
|
|
#![feature(try_blocks)]
|
2018-12-08 20:30:23 +01:00
|
|
|
#![recursion_limit = "256"]
|
2022-02-23 08:06:22 -05:00
|
|
|
#![allow(rustc::potential_query_instability)]
|
2022-08-20 18:33:35 +02:00
|
|
|
#![deny(rustc::untranslatable_diagnostic)]
|
|
|
|
#![deny(rustc::diagnostic_outside_of_impl)]
|
2018-12-08 20:30:23 +01:00
|
|
|
|
2022-08-31 13:09:26 +00:00
|
|
|
#[macro_use]
|
|
|
|
extern crate tracing;
|
|
|
|
|
2023-04-16 14:33:00 +02:00
|
|
|
use rustc_fluent_macro::fluent_messages;
|
2022-10-13 10:13:02 +01:00
|
|
|
|
2019-12-25 13:38:57 -05:00
|
|
|
mod callbacks;
|
2022-08-20 18:30:49 +02:00
|
|
|
mod errors;
|
2018-12-08 20:30:23 +01:00
|
|
|
pub mod interface;
|
|
|
|
mod passes;
|
|
|
|
mod proc_macro_decls;
|
|
|
|
mod queries;
|
2018-12-08 20:30:23 +01:00
|
|
|
pub mod util;
|
2018-12-08 20:30:23 +01:00
|
|
|
|
2021-06-25 13:03:39 +02:00
|
|
|
pub use callbacks::setup_callbacks;
|
2018-12-08 20:30:23 +01:00
|
|
|
pub use interface::{run_compiler, Config};
|
2023-09-22 16:38:31 +00:00
|
|
|
pub use passes::DEFAULT_QUERY_PROVIDERS;
|
2019-11-30 10:16:19 +01:00
|
|
|
pub use queries::Queries;
|
2019-10-11 23:48:16 +02:00
|
|
|
|
|
|
|
#[cfg(test)]
|
|
|
|
mod tests;
|
2022-10-13 10:13:02 +01:00
|
|
|
|
2023-03-03 00:18:38 +01:00
|
|
|
fluent_messages! { "../messages.ftl" }
|