Skip to content

Commit 79602c8

Browse files
committed
Rename syntax::symbol::symbols as syntax::symbol::sym.
Because it's going to be used a lot.
1 parent a8245f5 commit 79602c8

File tree

4 files changed

+139
-138
lines changed

4 files changed

+139
-138
lines changed

Diff for: src/librustc/middle/lib_features.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ use crate::ty::TyCtxt;
88
use crate::hir::intravisit::{self, NestedVisitorMap, Visitor};
99
use syntax::symbol::Symbol;
1010
use syntax::ast::{Attribute, MetaItem, MetaItemKind};
11-
use syntax_pos::{Span, symbols};
11+
use syntax_pos::{Span, sym};
1212
use rustc_data_structures::fx::{FxHashSet, FxHashMap};
1313
use rustc_macros::HashStable;
1414
use errors::DiagnosticId;
@@ -51,7 +51,7 @@ impl<'a, 'tcx> LibFeatureCollector<'a, 'tcx> {
5151
}
5252

5353
fn extract(&self, attr: &Attribute) -> Option<(Symbol, Option<Symbol>, Span)> {
54-
let stab_attrs = [symbols::stable, symbols::unstable, symbols::rustc_const_unstable];
54+
let stab_attrs = [sym::stable, sym::unstable, sym::rustc_const_unstable];
5555

5656
// Find a stability attribute (i.e., `#[stable (..)]`, `#[unstable (..)]`,
5757
// `#[rustc_const_unstable (..)]`).

0 commit comments

Comments
 (0)