doc fix
I think those don't make sense here, ig they were left from me copying the defs.
This commit is contained in:
@@ -3146,7 +3146,6 @@ impl<'hir> Item<'hir> {
|
|||||||
(ty, gen)
|
(ty, gen)
|
||||||
}
|
}
|
||||||
|
|
||||||
/// An opaque `impl Trait` type alias, e.g., `type Foo = impl Bar;`.
|
|
||||||
/// Expect an [`ItemKind::OpaqueTy`] or panic.
|
/// Expect an [`ItemKind::OpaqueTy`] or panic.
|
||||||
#[track_caller]
|
#[track_caller]
|
||||||
pub fn expect_opaque_ty(&self) -> &OpaqueTy<'hir> {
|
pub fn expect_opaque_ty(&self) -> &OpaqueTy<'hir> {
|
||||||
@@ -3168,7 +3167,6 @@ impl<'hir> Item<'hir> {
|
|||||||
(data, gen)
|
(data, gen)
|
||||||
}
|
}
|
||||||
|
|
||||||
/// A union definition, e.g., `union Foo<A, B> {x: A, y: B}`.
|
|
||||||
/// Expect an [`ItemKind::Union`] or panic.
|
/// Expect an [`ItemKind::Union`] or panic.
|
||||||
#[track_caller]
|
#[track_caller]
|
||||||
pub fn expect_union(&self) -> (&VariantData<'hir>, &'hir Generics<'hir>) {
|
pub fn expect_union(&self) -> (&VariantData<'hir>, &'hir Generics<'hir>) {
|
||||||
|
|||||||
Reference in New Issue
Block a user