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