diff options
| author | Jonas Schievink <jonasschievink@gmail.com> | 2020-02-21 21:46:15 +0100 |
|---|---|---|
| committer | Jonas Schievink <jonasschievink@gmail.com> | 2020-02-21 21:46:22 +0100 |
| commit | c60583163a9401382bda1ddcad4d3c377539866d (patch) | |
| tree | 2d1f930d764f1d45a571d2910b3eee5e86c07bd8 | |
| parent | af2931bdfef3cbb977ebb639e70ed09a1b8afdd8 (diff) | |
| download | rust-c60583163a9401382bda1ddcad4d3c377539866d.tar.gz rust-c60583163a9401382bda1ddcad4d3c377539866d.zip | |
Fix rebase fallout
| -rw-r--r-- | src/librustc_typeck/check/wfcheck.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc_typeck/check/wfcheck.rs b/src/librustc_typeck/check/wfcheck.rs index 58820dcb381..2061c4f8c9c 100644 --- a/src/librustc_typeck/check/wfcheck.rs +++ b/src/librustc_typeck/check/wfcheck.rs @@ -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` |
