Skip to content

Commit f361b71

Browse files
committed
nix syntax::early_buffered_lints
1 parent 2b44a6c commit f361b71

File tree

10 files changed

+15
-19
lines changed

10 files changed

+15
-19
lines changed

Cargo.lock

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3386,6 +3386,7 @@ dependencies = [
33863386
"rustc_expand",
33873387
"rustc_feature",
33883388
"rustc_parse",
3389+
"rustc_session",
33893390
"rustc_span",
33903391
"rustc_target",
33913392
"smallvec 1.0.0",
@@ -3544,6 +3545,7 @@ dependencies = [
35443545
"rustc_feature",
35453546
"rustc_lexer",
35463547
"rustc_parse",
3548+
"rustc_session",
35473549
"rustc_span",
35483550
"serialize",
35493551
"smallvec 1.0.0",
@@ -3769,6 +3771,7 @@ dependencies = [
37693771
"rustc_errors",
37703772
"rustc_feature",
37713773
"rustc_lexer",
3774+
"rustc_session",
37723775
"rustc_span",
37733776
"smallvec 1.0.0",
37743777
"syntax",

src/librustc/lint/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@
2121
pub use self::Level::*;
2222
pub use self::LintSource::*;
2323

24-
use crate::lint::builtin::HardwiredLints;
2524
use crate::ty::TyCtxt;
2625
use rustc_data_structures::sync;
2726
use rustc_errors::{DiagnosticBuilder, DiagnosticId};
2827
use rustc_hir as hir;
28+
use rustc_session::lint::builtin::HardwiredLints;
2929
use rustc_session::{DiagnosticMessageId, Session};
3030
use rustc_span::hygiene::MacroKind;
3131
use rustc_span::source_map::{DesugaringKind, ExpnKind, MultiSpan};

src/librustc_builtin_macros/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ rustc_errors = { path = "../librustc_errors" }
1717
rustc_feature = { path = "../librustc_feature" }
1818
rustc_parse = { path = "../librustc_parse" }
1919
rustc_target = { path = "../librustc_target" }
20+
rustc_session = { path = "../librustc_session" }
2021
smallvec = { version = "1.0", features = ["union", "may_dangle"] }
2122
syntax = { path = "../libsyntax" }
2223
rustc_expand = { path = "../librustc_expand" }

src/librustc_builtin_macros/source_util.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
use rustc_expand::base::{self, *};
22
use rustc_expand::panictry;
33
use rustc_parse::{self, new_sub_parser_from_file, parser::Parser, DirectoryOwnership};
4+
use rustc_session::lint::builtin::INCOMPLETE_INCLUDE;
45
use rustc_span::symbol::Symbol;
6+
use rustc_span::{self, Pos, Span};
57
use syntax::ast;
6-
use syntax::early_buffered_lints::INCOMPLETE_INCLUDE;
78
use syntax::print::pprust;
89
use syntax::ptr::P;
910
use syntax::token;
1011
use syntax::tokenstream::TokenStream;
1112

12-
use rustc_span::{self, Pos, Span};
1313
use smallvec::SmallVec;
1414

1515
use rustc_data_structures::sync::Lrc;

src/librustc_expand/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,6 @@ rustc_errors = { path = "../librustc_errors" }
1919
rustc_feature = { path = "../librustc_feature" }
2020
rustc_lexer = { path = "../librustc_lexer" }
2121
rustc_parse = { path = "../librustc_parse" }
22+
rustc_session = { path = "../librustc_session" }
2223
smallvec = { version = "1.0", features = ["union", "may_dangle"] }
2324
syntax = { path = "../libsyntax" }

src/librustc_expand/mbe/macro_check.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -106,14 +106,14 @@
106106
//! bound.
107107
use crate::mbe::{KleeneToken, TokenTree};
108108

109+
use rustc_data_structures::fx::FxHashMap;
110+
use rustc_session::lint::builtin::META_VARIABLE_MISUSE;
111+
use rustc_session::parse::ParseSess;
109112
use rustc_span::symbol::{kw, sym};
113+
use rustc_span::{symbol::Ident, MultiSpan, Span};
110114
use syntax::ast::NodeId;
111-
use syntax::early_buffered_lints::META_VARIABLE_MISUSE;
112-
use syntax::sess::ParseSess;
113115
use syntax::token::{DelimToken, Token, TokenKind};
114116

115-
use rustc_data_structures::fx::FxHashMap;
116-
use rustc_span::{symbol::Ident, MultiSpan, Span};
117117
use smallvec::SmallVec;
118118

119119
/// Stack represented as linked list.

src/librustc_parse/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ rustc_lexer = { path = "../librustc_lexer" }
1818
rustc_errors = { path = "../librustc_errors" }
1919
rustc_error_codes = { path = "../librustc_error_codes" }
2020
smallvec = { version = "1.0", features = ["union", "may_dangle"] }
21+
rustc_session = { path = "../librustc_session" }
2122
rustc_span = { path = "../librustc_span" }
2223
syntax = { path = "../libsyntax" }
2324
unicode-normalization = "0.1.11"

src/librustc_parse/validate_attr.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ use crate::parse_in;
44

55
use rustc_errors::{Applicability, PResult};
66
use rustc_feature::{AttributeTemplate, BUILTIN_ATTRIBUTE_MAP};
7+
use rustc_session::lint::builtin::ILL_FORMED_ATTRIBUTE_INPUT;
8+
use rustc_session::parse::ParseSess;
79
use rustc_span::{sym, Symbol};
810
use syntax::ast::{self, Attribute, MacArgs, MacDelimiter, MetaItem, MetaItemKind};
9-
use syntax::early_buffered_lints::ILL_FORMED_ATTRIBUTE_INPUT;
10-
use syntax::sess::ParseSess;
1111
use syntax::tokenstream::DelimSpan;
1212

1313
pub fn check_meta(sess: &ParseSess, attr: &Attribute) {

src/libsyntax/early_buffered_lints.rs

Lines changed: 0 additions & 8 deletions
This file was deleted.

src/libsyntax/lib.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,6 @@ pub mod print {
9393
pub mod pprust;
9494
}
9595

96-
pub mod early_buffered_lints;
97-
9896
use rustc_data_structures::stable_hasher::{HashStable, StableHasher};
9997

10098
/// Requirements for a `StableHashingContext` to be used in this crate.

0 commit comments

Comments
 (0)