Update exhaustive matching to syn 1.0.90

This commit is contained in:
David Tolnay
2022-03-28 10:07:23 -07:00
parent 7e19ae8c94
commit b23a768414
7 changed files with 10 additions and 11 deletions
+1 -3
View File
@@ -184,9 +184,7 @@ pub fn with_bound(
syn::Type::Infer(_) | syn::Type::Never(_) | syn::Type::Verbatim(_) => {}
#[cfg(test)]
syn::Type::__TestExhaustive(_) => unimplemented!(),
#[cfg(not(test))]
#[cfg_attr(all(test, exhaustive), deny(non_exhaustive_omitted_patterns))]
_ => {}
}
}