diff options
| author | Mazdak Farrokhzad <twingoow@gmail.com> | 2020-01-05 10:35:40 +0100 |
|---|---|---|
| committer | Mazdak Farrokhzad <twingoow@gmail.com> | 2020-01-11 03:26:16 +0100 |
| commit | 2b44a6c8f4053cf5f8acf026ffdbc329709e5c3d (patch) | |
| tree | 304a1f97a2d30dbd76af4758ec6df3b93ebb594b /src/libsyntax | |
| parent | 45f27643db6e25d4377d1b7050e55c07a02a0cec (diff) | |
| download | rust-2b44a6c8f4053cf5f8acf026ffdbc329709e5c3d.tar.gz rust-2b44a6c8f4053cf5f8acf026ffdbc329709e5c3d.zip | |
move {rustc -> rustc_session}::lint::builtin
Diffstat (limited to 'src/libsyntax')
| -rw-r--r-- | src/libsyntax/early_buffered_lints.rs | 26 |
1 files changed, 2 insertions, 24 deletions
diff --git a/src/libsyntax/early_buffered_lints.rs b/src/libsyntax/early_buffered_lints.rs index 7724107888a..8df4eb6c9ac 100644 --- a/src/libsyntax/early_buffered_lints.rs +++ b/src/libsyntax/early_buffered_lints.rs @@ -3,28 +3,6 @@ //! Since we cannot have a dependency on `librustc`, we implement some types here that are somewhat //! redundant. Later, these types can be converted to types for use by the rest of the compiler. -use rustc_session::declare_lint; +pub use rustc_session::lint::builtin::ILL_FORMED_ATTRIBUTE_INPUT; +pub use rustc_session::lint::builtin::{INCOMPLETE_INCLUDE, META_VARIABLE_MISUSE}; pub use rustc_session::lint::BufferedEarlyLint; -use rustc_session::lint::FutureIncompatibleInfo; - -declare_lint! { - pub ILL_FORMED_ATTRIBUTE_INPUT, - Deny, - "ill-formed attribute inputs that were previously accepted and used in practice", - @future_incompatible = FutureIncompatibleInfo { - reference: "issue #57571 <https://github.com/rust-lang/rust/issues/57571>", - edition: None, - }; -} - -declare_lint! { - pub META_VARIABLE_MISUSE, - Allow, - "possible meta-variable misuse at macro definition" -} - -declare_lint! { - pub INCOMPLETE_INCLUDE, - Deny, - "trailing content in included file" -} |
