1
Fork 0

fix some clippy::style findings

comparison_to_empty
iter_nth_zero
for_kv_map
manual_next_back
redundant_pattern
This commit is contained in:
Matthias Krüger 2023-07-23 12:08:42 +02:00
parent 8771282d4e
commit ed4c5fef72
6 changed files with 15 additions and 12 deletions

View file

@ -51,7 +51,7 @@ fn assumed_wf_types<'tcx>(tcx: TyCtxt<'tcx>, def_id: LocalDefId) -> &'tcx [(Ty<'
// assumed_wf_types should include those of `Opaque<T>`, `Opaque<T>` itself
// and `&'static T`.
DefKind::OpaqueTy => bug!("unimplemented implied bounds for nested opaque types"),
def_kind @ _ => {
def_kind => {
bug!("unimplemented implied bounds for opaque types with parent {def_kind:?}")
}
},