]> git.lizzy.rs Git - rust.git/blob - compiler/rustc_attr/src/lib.rs
Auto merge of #101386 - aDotInTheVoid:rdj-discriminant, r=GuillaumeGomez
[rust.git] / compiler / rustc_attr / src / lib.rs
1 //! Functions and types dealing with attributes and meta items.
2 //!
3 //! FIXME(Centril): For now being, much of the logic is still in `rustc_ast::attr`.
4 //! The goal is to move the definition of `MetaItem` and things that don't need to be in `syntax`
5 //! to this crate.
6
7 #![feature(let_chains)]
8 #![feature(let_else)]
9 #![deny(rustc::untranslatable_diagnostic)]
10 #![deny(rustc::diagnostic_outside_of_impl)]
11
12 #[macro_use]
13 extern crate rustc_macros;
14
15 mod builtin;
16 mod session_diagnostics;
17
18 pub use builtin::*;
19 pub use IntType::*;
20 pub use ReprAttr::*;
21 pub use StabilityLevel::*;
22
23 pub use rustc_ast::attr::*;
24
25 pub(crate) use rustc_ast::HashStableContext;