From ac3af006fffea4b6a3640b643156371595b495ec Mon Sep 17 00:00:00 2001 From: Yuki Okushi Date: Wed, 13 May 2020 01:40:09 +0900 Subject: [PATCH] Rustup to the latest nightly --- src/mapping.rs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/mapping.rs b/src/mapping.rs index 8f1612a94dac5..f7aaffda7941d 100644 --- a/src/mapping.rs +++ b/src/mapping.rs @@ -3,7 +3,6 @@ //! This module provides facilities to record item correspondence of various kinds, as well as a //! map used to temporarily match up unsorted item sequences' elements by name. -use rustc_ast::ast::Name; use rustc_hir::{ def::Res, def_id::{CrateNum, DefId}, @@ -13,6 +12,7 @@ use rustc_middle::{ hir::exports::Export, ty::{AssocKind, GenericParamDef, GenericParamDefKind}, }; +use rustc_span::symbol::Symbol; use std::collections::{BTreeSet, HashMap, HashSet, VecDeque}; use std::hash::{Hash, Hasher}; @@ -24,7 +24,7 @@ pub struct InherentEntry { /// The kind of the item. pub kind: AssocKind, /// The item's name. - pub name: Name, + pub name: Symbol, } impl Eq for InherentEntry {} @@ -38,7 +38,7 @@ fn assert_inherent_entry_members_impl_eq() { // FIXME derive Eq again once AssocKind impls Eq again. // assert_impl_eq::(); - assert_impl_eq::(); + assert_impl_eq::(); } #[allow(clippy::derive_hash_xor_eq)] @@ -210,7 +210,7 @@ impl IdMapping { &mut self, parent_def_id: DefId, kind: AssocKind, - name: Name, + name: Symbol, impl_def_id: DefId, item_def_id: DefId, ) { @@ -340,11 +340,11 @@ type OptionalExport = Option>; #[cfg_attr(feature = "cargo-clippy", allow(clippy::module_name_repetitions))] pub struct NameMapping { /// The exports in the type namespace. - type_map: HashMap, + type_map: HashMap, /// The exports in the value namespace. - value_map: HashMap, + value_map: HashMap, /// The exports in the macro namespace. - macro_map: HashMap, + macro_map: HashMap, } impl NameMapping {