Skip to content

Commit 4ff12ce

Browse files
committed
Normalize syntax::symbol imports.
1 parent 75e4783 commit 4ff12ce

File tree

174 files changed

+187
-183
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

174 files changed

+187
-183
lines changed

src/librustc/arena.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ macro_rules! arena_types {
9494
>
9595
>,
9696
[few] diagnostic_items: rustc_data_structures::fx::FxHashMap<
97-
syntax::symbol::Symbol,
97+
rustc_span::symbol::Symbol,
9898
rustc::hir::def_id::DefId,
9999
>,
100100
[few] resolve_lifetimes: rustc::middle::resolve_lifetime::ResolveLifetimes,
@@ -105,7 +105,7 @@ macro_rules! arena_types {
105105
[few] privacy_access_levels: rustc::middle::privacy::AccessLevels,
106106
[few] target_features_whitelist: rustc_data_structures::fx::FxHashMap<
107107
String,
108-
Option<syntax::symbol::Symbol>
108+
Option<rustc_span::symbol::Symbol>
109109
>,
110110
[few] wasm_import_module_map: rustc_data_structures::fx::FxHashMap<
111111
rustc::hir::def_id::DefId,

src/librustc/hir/check_attr.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,12 @@ use crate::lint::builtin::UNUSED_ATTRIBUTES;
1212
use crate::ty::query::Providers;
1313
use crate::ty::TyCtxt;
1414

15+
use rustc_error_codes::*;
16+
use rustc_span::symbol::sym;
1517
use rustc_span::Span;
16-
use std::fmt::{self, Display};
17-
use syntax::{attr, symbol::sym};
18+
use syntax::attr;
1819

19-
use rustc_error_codes::*;
20+
use std::fmt::{self, Display};
2021

2122
#[derive(Copy, Clone, PartialEq)]
2223
pub(crate) enum MethodKind {

src/librustc/hir/print.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
use rustc_span::source_map::{SourceMap, Spanned};
2+
use rustc_span::symbol::kw;
23
use rustc_span::{self, BytePos, FileName};
34
use rustc_target::spec::abi::Abi;
45
use syntax::ast;
56
use syntax::print::pp::Breaks::{Consistent, Inconsistent};
67
use syntax::print::pp::{self, Breaks};
78
use syntax::print::pprust::{self, Comments, PrintState};
89
use syntax::sess::ParseSess;
9-
use syntax::symbol::kw;
1010
use syntax::util::parser::{self, AssocOp, Fixity};
1111

1212
use crate::hir;

src/librustc/ich/hcx.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ use crate::ty::{fast_reject, TyCtxt};
1010
use std::cmp::Ord;
1111

1212
use rustc_span::source_map::SourceMap;
13+
use rustc_span::symbol::Symbol;
1314
use rustc_span::{BytePos, SourceFile};
1415
use syntax::ast;
15-
use syntax::symbol::Symbol;
1616

1717
use rustc_data_structures::fx::{FxHashMap, FxHashSet};
1818
use rustc_data_structures::stable_hasher::{HashStable, StableHasher, ToStableHashKey};

src/librustc/ich/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ pub use self::hcx::{
44
hash_stable_trait_impls, NodeIdHashingMode, StableHashingContext, StableHashingContextProvider,
55
};
66
crate use rustc_data_structures::fingerprint::Fingerprint;
7+
use rustc_span::symbol::{sym, Symbol};
78
pub use rustc_span::CachingSourceMapView;
8-
use syntax::symbol::{sym, Symbol};
99

1010
mod hcx;
1111

src/librustc/infer/error_reporting/need_type_info.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ use crate::ty::print::Print;
77
use crate::ty::{self, DefIdTree, Infer, Ty, TyVar};
88
use errors::{Applicability, DiagnosticBuilder};
99
use rustc_span::source_map::DesugaringKind;
10+
use rustc_span::symbol::kw;
1011
use rustc_span::Span;
1112
use std::borrow::Cow;
12-
use syntax::symbol::kw;
1313

1414
use rustc_error_codes::*;
1515

src/librustc/infer/type_variable.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use crate::hir::def_id::DefId;
22
use crate::ty::{self, Ty, TyVid};
3+
use rustc_span::symbol::Symbol;
34
use rustc_span::Span;
4-
use syntax::symbol::Symbol;
55

66
use rustc_data_structures::snapshot_vec as sv;
77
use rustc_data_structures::unify as ut;

src/librustc/infer/unify_key.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
use crate::ty::{self, FloatVarValue, InferConst, IntVarValue, Ty, TyCtxt};
22
use rustc_data_structures::unify::InPlace;
33
use rustc_data_structures::unify::{EqUnifyValue, NoError, UnificationTable, UnifyKey, UnifyValue};
4+
use rustc_span::symbol::Symbol;
45
use rustc_span::{Span, DUMMY_SP};
5-
use syntax::symbol::Symbol;
66

77
use std::cell::RefMut;
88
use std::cmp;

src/librustc/lint/builtin.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ use crate::session::Session;
1010
use errors::{pluralize, Applicability, DiagnosticBuilder};
1111
use rustc_session::declare_lint;
1212
use rustc_span::source_map::Span;
13+
use rustc_span::symbol::Symbol;
1314
use syntax::ast;
1415
use syntax::early_buffered_lints::{ILL_FORMED_ATTRIBUTE_INPUT, META_VARIABLE_MISUSE};
1516
use syntax::edition::Edition;
16-
use syntax::symbol::Symbol;
1717

1818
declare_lint! {
1919
pub EXCEEDING_BITSHIFTS,

src/librustc/lint/internal.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ use crate::lint::{
88
use errors::Applicability;
99
use rustc_data_structures::fx::FxHashMap;
1010
use rustc_session::declare_tool_lint;
11+
use rustc_span::symbol::{sym, Symbol};
1112
use syntax::ast::{Ident, Item, ItemKind};
12-
use syntax::symbol::{sym, Symbol};
1313

1414
declare_tool_lint! {
1515
pub rustc::DEFAULT_HASH_TYPES,

0 commit comments

Comments
 (0)