Test exhaustiveness of type match in collect_lifetimes
This commit is contained in:
parent
68bda7a004
commit
6e800ff826
@ -1909,8 +1909,12 @@ fn collect_lifetimes(ty: &syn::Type, out: &mut BTreeSet<syn::Lifetime>) {
|
||||
| syn::Type::TraitObject(_)
|
||||
| syn::Type::ImplTrait(_)
|
||||
| syn::Type::Infer(_)
|
||||
| syn::Type::Verbatim(_)
|
||||
| _ => {}
|
||||
| syn::Type::Verbatim(_) => {}
|
||||
|
||||
#[cfg(test)]
|
||||
syn::Type::__TestExhaustive(_) => unimplemented!(),
|
||||
#[cfg(not(test))]
|
||||
_ => {}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user