This repository was archived by the owner on Apr 5, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 1- nightly-2020-06-10
1+ nightly-2020-06-16
Original file line number Diff line number Diff line change 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
710extern crate rustc_hir;
Original file line number Diff line number Diff 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 |
You can’t perform that action at this time.
0 commit comments