Fix rebase fallout

This commit is contained in:
Jonas Schievink 2020-02-21 21:46:15 +01:00
parent af2931bdfe
commit c60583163a

View File

@ -443,7 +443,7 @@ fn check_associated_type_defaults(fcx: &FnCtxt<'_, '_>, trait_def_id: DefId) {
// `<Self as Trait<...>>::Assoc` to the default type.
let map = tcx
.associated_items(trait_def_id)
.iter()
.in_definition_order()
.filter_map(|item| {
if item.kind == ty::AssocKind::Type && item.defaultness.has_value() {
// `<Self as Trait<...>>::Assoc`