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

Fix breakage due to rust-lang/rust#72080 #142

Merged
merged 2 commits into from
Nov 17, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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