From 883145f75d105abc32911f536738f66d74d32f4f Mon Sep 17 00:00:00 2001 From: Maybe Waffle Date: Mon, 30 Jan 2023 05:55:20 +0000 Subject: [PATCH] fix `TraitItemKind::expect_type` docs --- compiler/rustc_hir/src/hir.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/rustc_hir/src/hir.rs b/compiler/rustc_hir/src/hir.rs index ef4a8754ac2..95422f74120 100644 --- a/compiler/rustc_hir/src/hir.rs +++ b/compiler/rustc_hir/src/hir.rs @@ -2288,7 +2288,7 @@ impl<'hir> TraitItem<'hir> { (ty, trfn) } - /// Expect an [`TraitItemKind::ExternCrate`] or panic. + /// Expect an [`TraitItemKind::Type`] or panic. #[track_caller] pub fn expect_type(&self) -> (GenericBounds<'hir>, Option<&'hir Ty<'hir>>) { let TraitItemKind::Type(bounds, ty) = self.kind else { self.expect_failed("a type") };