]> git.lizzy.rs Git - rust.git/blob - src/libsyntax/early_buffered_lints.rs
Rollup merge of #67439 - Centril:clean-hair-slice, r=matthewjasper
[rust.git] / src / libsyntax / early_buffered_lints.rs
1 //! Allows the buffering of lints for later.
2 //!
3 //! Since we cannot have a dependency on `librustc`, we implement some types here that are somewhat
4 //! redundant. Later, these types can be converted to types for use by the rest of the compiler.
5
6 use rustc_session::lint::FutureIncompatibleInfo;
7 use rustc_session::declare_lint;
8 pub use rustc_session::lint::BufferedEarlyLint;
9
10 declare_lint! {
11     pub ILL_FORMED_ATTRIBUTE_INPUT,
12     Deny,
13     "ill-formed attribute inputs that were previously accepted and used in practice",
14     @future_incompatible = FutureIncompatibleInfo {
15         reference: "issue #57571 <https://github.com/rust-lang/rust/issues/57571>",
16         edition: None,
17     };
18 }
19
20 declare_lint! {
21     pub META_VARIABLE_MISUSE,
22     Allow,
23     "possible meta-variable misuse at macro definition"
24 }
25
26 declare_lint! {
27     pub INCOMPLETE_INCLUDE,
28     Deny,
29     "trailing content in included file"
30 }