diff options
| author | Maybe Waffle <waffle.lapkin@gmail.com> | 2023-01-30 05:55:20 +0000 |
|---|---|---|
| committer | Maybe Waffle <waffle.lapkin@gmail.com> | 2023-01-30 05:55:20 +0000 |
| commit | 883145f75d105abc32911f536738f66d74d32f4f (patch) | |
| tree | 1ff62c45325fc48c5d9b478f1d8b4f226a3655a6 | |
| parent | b2ef837b6c52d1cb0977c7fc1e62af5ee546827e (diff) | |
| download | rust-883145f75d105abc32911f536738f66d74d32f4f.tar.gz rust-883145f75d105abc32911f536738f66d74d32f4f.zip | |
fix `TraitItemKind::expect_type` docs
| -rw-r--r-- | compiler/rustc_hir/src/hir.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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") }; |
