Skip to content
This repository has been archived by the owner on Apr 5, 2024. It is now read-only.

Commit

Permalink
Auto merge of #142 - Xanewok:rustup, r=Xanewok
Browse files Browse the repository at this point in the history
  • Loading branch information
bors committed Nov 17, 2020
2 parents d5a6867 + bda4525 commit b9d358f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion rust-toolchain
Original file line number Diff line number Diff line change
@@ -1 +1 @@
nightly-2020-06-10
nightly-2020-06-16
3 changes: 3 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
#![allow(clippy::similar_names)]
#![allow(clippy::single_match_else)]
#![allow(clippy::too_many_lines)]
// Needs a nightly feature, doesn't bring that much to the table
// FIXME: Apply Clippy lint once or-patterns are stabilized (rust-lang/rust#54883)
#![allow(clippy::unnested_or_patterns)]
#![deny(warnings)]

extern crate rustc_hir;
Expand Down
6 changes: 2 additions & 4 deletions src/mapping.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,7 @@ impl Hash for InherentEntry {
match self.kind {
AssocKind::Const => 0_u8.hash(hasher),
AssocKind::Fn => 1_u8.hash(hasher),
AssocKind::OpaqueTy => 2_u8.hash(hasher),
AssocKind::Type => 3_u8.hash(hasher),
AssocKind::Type => 2_u8.hash(hasher),
}

self.name.hash(hasher);
Expand Down Expand Up @@ -366,8 +365,7 @@ impl NameMapping {
TraitAlias | // TODO: will need some handling later on
AssocTy |
TyParam |
OpaqueTy |
AssocOpaqueTy => Some(&mut self.type_map),
OpaqueTy => Some(&mut self.type_map),
Fn |
Const |
ConstParam |
Expand Down

0 comments on commit b9d358f

Please sign in to comment.