Skip to content

Commit

Permalink
Make the variants of VertexKind become non-exhaustive. (#693) (#694)
Browse files Browse the repository at this point in the history
This is a breaking change, like all exhaustiveness changes.
  • Loading branch information
obi1kenobi authored Dec 30, 2024
1 parent 34bb09a commit 0cc9791
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions src/adapter/vertex.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,26 +23,59 @@ pub struct Vertex<'a> {
#[non_exhaustive]
#[derive(Debug, Clone)]
pub enum VertexKind<'a> {
#[non_exhaustive]
CrateDiff((&'a PackageIndex<'a>, &'a PackageIndex<'a>)),

#[non_exhaustive]
Crate(&'a PackageIndex<'a>),

#[non_exhaustive]
Item(&'a Item),

#[non_exhaustive]
Span(&'a Span),

#[non_exhaustive]
Path(&'a [String]),

#[non_exhaustive]
ImportablePath(Rc<ImportablePath<'a>>),

#[non_exhaustive]
RawType(&'a Type),

#[non_exhaustive]
Attribute(Attribute<'a>),

#[non_exhaustive]
AttributeMetaItem(Rc<AttributeMetaItem<'a>>),

#[non_exhaustive]
ImplementedTrait(ImplementedTrait<'a>),

#[non_exhaustive]
FunctionParameter(&'a str),

#[non_exhaustive]
FunctionAbi(&'a Abi),

#[non_exhaustive]
Discriminant(Cow<'a, str>),

#[non_exhaustive]
Variant(EnumVariant<'a>),

#[non_exhaustive]
DeriveHelperAttr(&'a str),

#[non_exhaustive]
GenericParameter(
&'a rustdoc_types::Generics,
&'a GenericParamDef,
Option<NonZeroUsize>,
),

#[non_exhaustive]
Feature(Feature<'a>),
}

Expand Down

0 comments on commit 0cc9791

Please sign in to comment.