Skip to content

Commit 495a571

Browse files
committed
Auto merge of #4336 - phansch:rustup, r=flip1995
Rustup to rust-lang/rust#63213 changelog: none
2 parents 5c1e30a + 71a9438 commit 495a571

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

clippy_lints/src/missing_doc.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for MissingDoc {
146146
hir::ItemKind::Struct(..) => "a struct",
147147
hir::ItemKind::Trait(..) => "a trait",
148148
hir::ItemKind::TraitAlias(..) => "a trait alias",
149-
hir::ItemKind::Ty(..) => "a type alias",
149+
hir::ItemKind::TyAlias(..) => "a type alias",
150150
hir::ItemKind::Union(..) => "a union",
151151
hir::ItemKind::OpaqueTy(..) => "an existential type",
152152
hir::ItemKind::ExternCrate(..)
@@ -184,7 +184,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for MissingDoc {
184184
let desc = match impl_item.node {
185185
hir::ImplItemKind::Const(..) => "an associated constant",
186186
hir::ImplItemKind::Method(..) => "a method",
187-
hir::ImplItemKind::Type(_) => "an associated type",
187+
hir::ImplItemKind::TyAlias(_) => "an associated type",
188188
hir::ImplItemKind::OpaqueTy(_) => "an existential type",
189189
};
190190
self.check_missing_docs_attrs(cx, &impl_item.attrs, impl_item.span, desc);

clippy_lints/src/missing_inline.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for MissingInline {
119119
| hir::ItemKind::Struct(..)
120120
| hir::ItemKind::TraitAlias(..)
121121
| hir::ItemKind::GlobalAsm(..)
122-
| hir::ItemKind::Ty(..)
122+
| hir::ItemKind::TyAlias(..)
123123
| hir::ItemKind::Union(..)
124124
| hir::ItemKind::OpaqueTy(..)
125125
| hir::ItemKind::ExternCrate(..)
@@ -142,7 +142,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for MissingInline {
142142

143143
let desc = match impl_item.node {
144144
hir::ImplItemKind::Method(..) => "a method",
145-
hir::ImplItemKind::Const(..) | hir::ImplItemKind::Type(_) | hir::ImplItemKind::OpaqueTy(_) => return,
145+
hir::ImplItemKind::Const(..) | hir::ImplItemKind::TyAlias(_) | hir::ImplItemKind::OpaqueTy(_) => return,
146146
};
147147

148148
let def_id = cx.tcx.hir().local_def_id(impl_item.hir_id);

clippy_lints/src/types.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1354,7 +1354,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for TypeComplexity {
13541354

13551355
fn check_impl_item(&mut self, cx: &LateContext<'a, 'tcx>, item: &'tcx ImplItem) {
13561356
match item.node {
1357-
ImplItemKind::Const(ref ty, _) | ImplItemKind::Type(ref ty) => self.check_type(cx, ty),
1357+
ImplItemKind::Const(ref ty, _) | ImplItemKind::TyAlias(ref ty) => self.check_type(cx, ty),
13581358
// methods are covered by check_fn
13591359
_ => (),
13601360
}

clippy_lints/src/utils/inspector.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for DeepCodeInspector {
6363
print_expr(cx, &cx.tcx.hir().body(body_id).value, 1);
6464
},
6565
hir::ImplItemKind::Method(..) => println!("method"),
66-
hir::ImplItemKind::Type(_) => println!("associated type"),
66+
hir::ImplItemKind::TyAlias(_) => println!("associated type"),
6767
hir::ImplItemKind::OpaqueTy(_) => println!("existential type"),
6868
}
6969
}
@@ -360,7 +360,7 @@ fn print_item(cx: &LateContext<'_, '_>, item: &hir::Item) {
360360
hir::ItemKind::Mod(..) => println!("module"),
361361
hir::ItemKind::ForeignMod(ref fm) => println!("foreign module with abi: {}", fm.abi),
362362
hir::ItemKind::GlobalAsm(ref asm) => println!("global asm: {:?}", asm),
363-
hir::ItemKind::Ty(..) => {
363+
hir::ItemKind::TyAlias(..) => {
364364
println!("type alias for {:?}", cx.tcx.type_of(did));
365365
},
366366
hir::ItemKind::OpaqueTy(..) => {

0 commit comments

Comments
 (0)