Skip to content

Commit

Permalink
Merge pull request rust-lang#121 from JohnTitor/rustup
Browse files Browse the repository at this point in the history
Rustup to the latest nightly
  • Loading branch information
Manishearth committed May 12, 2020
2 parents 7adba3a + ac3af00 commit 1c7200f
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/mapping.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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},
Expand All @@ -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};

Expand All @@ -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 {}
Expand All @@ -38,7 +38,7 @@ fn assert_inherent_entry_members_impl_eq() {
// FIXME derive Eq again once AssocKind impls Eq again.
// assert_impl_eq::<AssocKind>();

assert_impl_eq::<Name>();
assert_impl_eq::<Symbol>();
}

#[allow(clippy::derive_hash_xor_eq)]
Expand Down Expand Up @@ -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,
) {
Expand Down Expand Up @@ -340,11 +340,11 @@ type OptionalExport = Option<Export<HirId>>;
#[cfg_attr(feature = "cargo-clippy", allow(clippy::module_name_repetitions))]
pub struct NameMapping {
/// The exports in the type namespace.
type_map: HashMap<Name, (OptionalExport, OptionalExport)>,
type_map: HashMap<Symbol, (OptionalExport, OptionalExport)>,
/// The exports in the value namespace.
value_map: HashMap<Name, (OptionalExport, OptionalExport)>,
value_map: HashMap<Symbol, (OptionalExport, OptionalExport)>,
/// The exports in the macro namespace.
macro_map: HashMap<Name, (OptionalExport, OptionalExport)>,
macro_map: HashMap<Symbol, (OptionalExport, OptionalExport)>,
}

impl NameMapping {
Expand Down

0 comments on commit 1c7200f

Please sign in to comment.