Skip to content

Commit ed2a32f

Browse files
Make clippy happy
1 parent 81badff commit ed2a32f

File tree

4 files changed

+7
-2
lines changed

4 files changed

+7
-2
lines changed

src/tools/clippy/clippy_lints/src/dereference.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -959,7 +959,7 @@ fn binding_ty_auto_deref_stability<'tcx>(
959959
))
960960
.is_sized(cx.tcx.at(DUMMY_SP), cx.param_env.without_caller_bounds()),
961961
),
962-
TyKind::OpaqueDef(..) | TyKind::Infer | TyKind::Typeof(..) | TyKind::TraitObject(..) | TyKind::Err => {
962+
TyKind::OpaqueDef(..) | TyKind::ImplTraitInTrait(..) | TyKind::Infer | TyKind::Typeof(..) | TyKind::TraitObject(..) | TyKind::Err => {
963963
Position::ReborrowStable(precedence)
964964
},
965965
};

src/tools/clippy/clippy_lints/src/missing_doc.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,8 @@ impl<'tcx> LateLintPass<'tcx> for MissingDoc {
147147
| hir::ItemKind::TraitAlias(..)
148148
| hir::ItemKind::TyAlias(..)
149149
| hir::ItemKind::Union(..)
150-
| hir::ItemKind::OpaqueTy(..) => {},
150+
| hir::ItemKind::OpaqueTy(..)
151+
| hir::ItemKind::ImplTraitPlaceholder(..) => {},
151152
hir::ItemKind::ExternCrate(..)
152153
| hir::ItemKind::ForeignMod { .. }
153154
| hir::ItemKind::GlobalAsm(..)

src/tools/clippy/clippy_lints/src/missing_inline.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ impl<'tcx> LateLintPass<'tcx> for MissingInline {
128128
| hir::ItemKind::TyAlias(..)
129129
| hir::ItemKind::Union(..)
130130
| hir::ItemKind::OpaqueTy(..)
131+
| hir::ItemKind::ImplTraitPlaceholder(..)
131132
| hir::ItemKind::ExternCrate(..)
132133
| hir::ItemKind::ForeignMod { .. }
133134
| hir::ItemKind::Impl { .. }

src/tools/clippy/clippy_utils/src/hir_utils.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -990,6 +990,9 @@ impl<'a, 'tcx> SpanlessHash<'a, 'tcx> {
990990
TyKind::OpaqueDef(_, arg_list) => {
991991
self.hash_generic_args(arg_list);
992992
},
993+
TyKind::ImplTraitInTrait(_) => {
994+
// Do nothing
995+
}
993996
TyKind::TraitObject(_, lifetime, _) => {
994997
self.hash_lifetime(*lifetime);
995998
},

0 commit comments

Comments
 (0)