File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 27
27
//! bounds by special casing scenarios such as these. Fun!
28
28
29
29
use std:: mem;
30
- use std:: collections:: HashMap ;
30
+ use std:: collections:: BTreeMap ;
31
31
32
32
use rustc:: hir:: def_id:: DefId ;
33
33
use rustc:: ty:: subst;
@@ -39,7 +39,7 @@ use core::DocContext;
39
39
40
40
pub fn where_clauses ( cx : & DocContext , clauses : Vec < WP > ) -> Vec < WP > {
41
41
// First, partition the where clause into its separate components
42
- let mut params = HashMap :: new ( ) ;
42
+ let mut params = BTreeMap :: new ( ) ;
43
43
let mut lifetimes = Vec :: new ( ) ;
44
44
let mut equalities = Vec :: new ( ) ;
45
45
let mut tybounds = Vec :: new ( ) ;
@@ -62,7 +62,7 @@ pub fn where_clauses(cx: &DocContext, clauses: Vec<WP>) -> Vec<WP> {
62
62
// Simplify the type parameter bounds on all the generics
63
63
let mut params = params. into_iter ( ) . map ( |( k, v) | {
64
64
( k, ty_bounds ( v) )
65
- } ) . collect :: < HashMap < _ , _ > > ( ) ;
65
+ } ) . collect :: < BTreeMap < _ , _ > > ( ) ;
66
66
67
67
// Look for equality predicates on associated types that can be merged into
68
68
// general bound predicates
You can’t perform that action at this time.
0 commit comments