Skip to content

Commit 880da9f

Browse files
committed
doc fix
I think those don't make sense here, ig they were left from me copying the defs.
1 parent 9534541 commit 880da9f

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

compiler/rustc_hir/src/hir.rs

-2
Original file line numberDiff line numberDiff line change
@@ -3146,7 +3146,6 @@ impl<'hir> Item<'hir> {
31463146
(ty, gen)
31473147
}
31483148

3149-
/// An opaque `impl Trait` type alias, e.g., `type Foo = impl Bar;`.
31503149
/// Expect an [`ItemKind::OpaqueTy`] or panic.
31513150
#[track_caller]
31523151
pub fn expect_opaque_ty(&self) -> &OpaqueTy<'hir> {
@@ -3168,7 +3167,6 @@ impl<'hir> Item<'hir> {
31683167
(data, gen)
31693168
}
31703169

3171-
/// A union definition, e.g., `union Foo<A, B> {x: A, y: B}`.
31723170
/// Expect an [`ItemKind::Union`] or panic.
31733171
#[track_caller]
31743172
pub fn expect_union(&self) -> (&VariantData<'hir>, &'hir Generics<'hir>) {

0 commit comments

Comments
 (0)