2020-01-11 12:15:20 +00:00
|
|
|
//! Functions and types dealing with attributes and meta items.
|
|
|
|
//!
|
2020-02-29 17:37:32 +00:00
|
|
|
//! FIXME(Centril): For now being, much of the logic is still in `rustc_ast::attr`.
|
2020-01-11 12:15:20 +00:00
|
|
|
//! The goal is to move the definition of `MetaItem` and things that don't need to be in `syntax`
|
|
|
|
//! to this crate.
|
|
|
|
|
2022-08-20 18:40:08 +00:00
|
|
|
#![feature(let_chains)]
|
2022-08-21 08:03:28 +00:00
|
|
|
#![deny(rustc::untranslatable_diagnostic)]
|
|
|
|
#![deny(rustc::diagnostic_outside_of_impl)]
|
2022-02-02 11:45:20 +00:00
|
|
|
|
2020-06-11 14:49:57 +00:00
|
|
|
#[macro_use]
|
2020-05-08 15:38:18 +00:00
|
|
|
extern crate rustc_macros;
|
|
|
|
|
2022-10-13 09:13:02 +00:00
|
|
|
use rustc_errors::{DiagnosticMessage, SubdiagnosticMessage};
|
|
|
|
use rustc_macros::fluent_messages;
|
|
|
|
|
2020-01-11 12:15:20 +00:00
|
|
|
mod builtin;
|
2022-08-21 06:46:05 +00:00
|
|
|
mod session_diagnostics;
|
2020-01-11 12:15:20 +00:00
|
|
|
|
|
|
|
pub use builtin::*;
|
|
|
|
pub use IntType::*;
|
|
|
|
pub use ReprAttr::*;
|
|
|
|
pub use StabilityLevel::*;
|
|
|
|
|
2020-02-29 17:37:32 +00:00
|
|
|
pub use rustc_ast::attr::*;
|
2020-01-11 12:15:20 +00:00
|
|
|
|
2020-02-29 17:37:32 +00:00
|
|
|
pub(crate) use rustc_ast::HashStableContext;
|
2022-10-13 09:13:02 +00:00
|
|
|
|
|
|
|
fluent_messages! { "../locales/en-US.ftl" }
|