diff options
| author | Mark Rousskov <mark.simulacrum@gmail.com> | 2019-11-12 12:09:20 -0500 |
|---|---|---|
| committer | Mark Rousskov <mark.simulacrum@gmail.com> | 2019-12-03 12:19:14 -0500 |
| commit | f03d8f305a80778ae034b0205803ea3edc297ac8 (patch) | |
| tree | 510804ecf5b989dcb8e21f116f2c9950addb1ec3 /src/libsyntax_expand | |
| parent | 526ee51ccc02a64fe95e3df9bc24ddd395dc58ce (diff) | |
Move early lint declarations to librustc_session
Diffstat (limited to 'src/libsyntax_expand')
| -rw-r--r-- | src/libsyntax_expand/mbe/macro_check.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libsyntax_expand/mbe/macro_check.rs b/src/libsyntax_expand/mbe/macro_check.rs index 837e04afd34..dfc8d699dbe 100644 --- a/src/libsyntax_expand/mbe/macro_check.rs +++ b/src/libsyntax_expand/mbe/macro_check.rs @@ -107,7 +107,7 @@ use crate::mbe::{KleeneToken, TokenTree}; use syntax::ast::NodeId; -use syntax::early_buffered_lints::BufferedEarlyLintId; +use syntax::early_buffered_lints::META_VARIABLE_MISUSE; use syntax::token::{DelimToken, Token, TokenKind}; use syntax::sess::ParseSess; use syntax::symbol::{kw, sym}; @@ -623,5 +623,5 @@ fn ops_is_prefix( } fn buffer_lint(sess: &ParseSess, span: MultiSpan, node_id: NodeId, message: &str) { - sess.buffer_lint(BufferedEarlyLintId::MetaVariableMisuse, span, node_id, message); + sess.buffer_lint(&META_VARIABLE_MISUSE, span, node_id, message); } |
