Test exhaustiveness of type match in collect_lifetimes

This commit is contained in:
David Tolnay 2021-01-24 23:04:01 -08:00
parent 68bda7a004
commit 6e800ff826
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82

View File

@ -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))]
_ => {}
}
}