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

Commit b9d358f

Browse files
committed
Auto merge of #142 - Xanewok:rustup, r=Xanewok
Fix breakage due to rust-lang/rust#72080 See rust-lang/rust#72080.
2 parents d5a6867 + bda4525 commit b9d358f

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

rust-toolchain

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
nightly-2020-06-10
1+
nightly-2020-06-16

src/lib.rs

+3
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
#![allow(clippy::similar_names)]
33
#![allow(clippy::single_match_else)]
44
#![allow(clippy::too_many_lines)]
5+
// Needs a nightly feature, doesn't bring that much to the table
6+
// FIXME: Apply Clippy lint once or-patterns are stabilized (rust-lang/rust#54883)
7+
#![allow(clippy::unnested_or_patterns)]
58
#![deny(warnings)]
69

710
extern crate rustc_hir;

src/mapping.rs

+2-4
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,7 @@ impl Hash for InherentEntry {
5050
match self.kind {
5151
AssocKind::Const => 0_u8.hash(hasher),
5252
AssocKind::Fn => 1_u8.hash(hasher),
53-
AssocKind::OpaqueTy => 2_u8.hash(hasher),
54-
AssocKind::Type => 3_u8.hash(hasher),
53+
AssocKind::Type => 2_u8.hash(hasher),
5554
}
5655

5756
self.name.hash(hasher);
@@ -366,8 +365,7 @@ impl NameMapping {
366365
TraitAlias | // TODO: will need some handling later on
367366
AssocTy |
368367
TyParam |
369-
OpaqueTy |
370-
AssocOpaqueTy => Some(&mut self.type_map),
368+
OpaqueTy => Some(&mut self.type_map),
371369
Fn |
372370
Const |
373371
ConstParam |

0 commit comments

Comments
 (0)