Skip to content

Commit

Permalink
Rename syntax::symbol::symbols as syntax::symbol::sym.
Browse files Browse the repository at this point in the history
Because it's going to be used a lot.
  • Loading branch information
nnethercote committed May 12, 2019
1 parent a8245f5 commit 79602c8
Show file tree
Hide file tree
Showing 4 changed files with 139 additions and 138 deletions.
4 changes: 2 additions & 2 deletions src/librustc/middle/lib_features.rs
Expand Up @@ -8,7 +8,7 @@ use crate::ty::TyCtxt;
use crate::hir::intravisit::{self, NestedVisitorMap, Visitor};
use syntax::symbol::Symbol;
use syntax::ast::{Attribute, MetaItem, MetaItemKind};
use syntax_pos::{Span, symbols};
use syntax_pos::{Span, sym};
use rustc_data_structures::fx::{FxHashSet, FxHashMap};
use rustc_macros::HashStable;
use errors::DiagnosticId;
Expand Down Expand Up @@ -51,7 +51,7 @@ impl<'a, 'tcx> LibFeatureCollector<'a, 'tcx> {
}

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

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

0 comments on commit 79602c8

Please sign in to comment.