This repository was archived by the owner on Apr 5, 2024. It is now read-only.
File tree 3 files changed +6
-5
lines changed
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 2
2
#![ allow( clippy:: similar_names) ]
3
3
#![ allow( clippy:: single_match_else) ]
4
4
#![ 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) ]
5
8
#![ deny( warnings) ]
6
9
7
10
extern crate rustc_hir;
Original file line number Diff line number Diff line change @@ -50,8 +50,7 @@ impl Hash for InherentEntry {
50
50
match self . kind {
51
51
AssocKind :: Const => 0_u8 . hash ( hasher) ,
52
52
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) ,
55
54
}
56
55
57
56
self . name . hash ( hasher) ;
@@ -366,8 +365,7 @@ impl NameMapping {
366
365
TraitAlias | // TODO: will need some handling later on
367
366
AssocTy |
368
367
TyParam |
369
- OpaqueTy |
370
- AssocOpaqueTy => Some ( & mut self . type_map ) ,
368
+ OpaqueTy => Some ( & mut self . type_map ) ,
371
369
Fn |
372
370
Const |
373
371
ConstParam |
You can’t perform that action at this time.
0 commit comments