@@ -516,6 +516,9 @@ mod tests {
516
516
mark
517
517
) )
518
518
} )
519
+ // HashSet iteration order isn't defined - it's different on
520
+ // x86_64 and i686 at the very least
521
+ . sorted ( )
519
522
. collect :: < String > ( ) ;
520
523
expect. assert_eq ( & actual)
521
524
}
@@ -588,6 +591,7 @@ mod tests {
588
591
589
592
Some ( format ! ( "{}:\n {:?}\n " , name, map) )
590
593
} )
594
+ . sorted ( )
591
595
. collect :: < String > ( ) ;
592
596
593
597
expect. assert_eq ( & actual)
@@ -621,15 +625,15 @@ mod tests {
621
625
struct Priv;
622
626
" ,
623
627
expect ! [ [ r#"
628
+ lib:
629
+ - Pub (t)
630
+ - Pub2 (t)
631
+ - Pub2 (v)
624
632
main:
625
633
- publ1 (t)
626
634
- real_pu2 (t)
627
635
- real_pub (t)
628
636
- real_pub::Pub (t)
629
- lib:
630
- - Pub (t)
631
- - Pub2 (t)
632
- - Pub2 (v)
633
637
"# ] ] ,
634
638
) ;
635
639
}
@@ -671,13 +675,13 @@ mod tests {
671
675
pub struct S;
672
676
" ,
673
677
expect ! [ [ r#"
678
+ lib:
679
+ - S (t)
680
+ - S (v)
674
681
main:
675
682
- m (t)
676
683
- m::S (t)
677
684
- m::S (v)
678
- lib:
679
- - S (t)
680
- - S (v)
681
685
"# ] ] ,
682
686
) ;
683
687
}
@@ -697,11 +701,11 @@ mod tests {
697
701
}
698
702
" ,
699
703
expect ! [ [ r#"
704
+ lib:
705
+ - pub_macro (m)
700
706
main:
701
707
- m (t)
702
708
- m::pub_macro (m)
703
- lib:
704
- - pub_macro (m)
705
709
"# ] ] ,
706
710
) ;
707
711
}
@@ -719,14 +723,14 @@ mod tests {
719
723
}
720
724
" ,
721
725
expect ! [ [ r#"
722
- main:
723
- - reexported_module (t)
724
- - reexported_module::S (t)
725
- - reexported_module::S (v)
726
726
lib:
727
727
- module (t)
728
728
- module::S (t)
729
729
- module::S (v)
730
+ main:
731
+ - reexported_module (t)
732
+ - reexported_module::S (t)
733
+ - reexported_module::S (v)
730
734
"# ] ] ,
731
735
) ;
732
736
}
@@ -831,10 +835,10 @@ mod tests {
831
835
Query :: new ( "fmt" . to_string ( ) ) . search_mode ( SearchMode :: Fuzzy ) ,
832
836
expect ! [ [ r#"
833
837
dep::fmt (t)
834
- dep::fmt::Display::format_method (a)
835
838
dep::fmt::Display (t)
836
839
dep::fmt::Display::FMT_CONST (a)
837
840
dep::fmt::Display::format_function (a)
841
+ dep::fmt::Display::format_method (a)
838
842
"# ] ] ,
839
843
) ;
840
844
}
@@ -860,10 +864,10 @@ mod tests {
860
864
"main" ,
861
865
Query :: new ( "fmt" . to_string ( ) ) . search_mode ( SearchMode :: Fuzzy ) . assoc_items_only ( ) ,
862
866
expect ! [ [ r#"
863
- dep::fmt::Display::format_method (a)
864
- dep::fmt::Display::FMT_CONST (a)
865
- dep::fmt::Display::format_function (a)
866
- "# ] ] ,
867
+ dep::fmt::Display::FMT_CONST (a)
868
+ dep::fmt::Display::format_function (a)
869
+ dep::fmt::Display::format_method (a)
870
+ "# ] ] ,
867
871
) ;
868
872
869
873
check_search (
@@ -920,13 +924,13 @@ mod tests {
920
924
"main" ,
921
925
Query :: new ( "fmt" . to_string ( ) ) . search_mode ( SearchMode :: Fuzzy ) ,
922
926
expect ! [ [ r#"
923
- dep::fmt (t)
924
- dep::format (f)
925
- dep::Fmt (v)
926
927
dep::Fmt (m)
927
928
dep::Fmt (t)
928
- dep::fmt::Display::fmt (a)
929
+ dep::Fmt (v)
930
+ dep::fmt (t)
929
931
dep::fmt::Display (t)
932
+ dep::fmt::Display::fmt (a)
933
+ dep::format (f)
930
934
"# ] ] ,
931
935
) ;
932
936
@@ -935,10 +939,10 @@ mod tests {
935
939
"main" ,
936
940
Query :: new ( "fmt" . to_string ( ) ) . search_mode ( SearchMode :: Equals ) ,
937
941
expect ! [ [ r#"
938
- dep::fmt (t)
939
- dep::Fmt (v)
940
942
dep::Fmt (m)
941
943
dep::Fmt (t)
944
+ dep::Fmt (v)
945
+ dep::fmt (t)
942
946
dep::fmt::Display::fmt (a)
943
947
"# ] ] ,
944
948
) ;
@@ -948,12 +952,12 @@ mod tests {
948
952
"main" ,
949
953
Query :: new ( "fmt" . to_string ( ) ) . search_mode ( SearchMode :: Contains ) ,
950
954
expect ! [ [ r#"
951
- dep::fmt (t)
952
- dep::Fmt (v)
953
955
dep::Fmt (m)
954
956
dep::Fmt (t)
955
- dep::fmt::Display::fmt (a)
957
+ dep::Fmt (v)
958
+ dep::fmt (t)
956
959
dep::fmt::Display (t)
960
+ dep::fmt::Display::fmt (a)
957
961
"# ] ] ,
958
962
) ;
959
963
}
@@ -989,12 +993,12 @@ mod tests {
989
993
"main" ,
990
994
Query :: new ( "fmt" . to_string ( ) ) ,
991
995
expect ! [ [ r#"
992
- dep::fmt (t)
993
- dep::Fmt (v)
994
996
dep::Fmt (m)
995
997
dep::Fmt (t)
996
- dep::fmt::Display::fmt (a)
998
+ dep::Fmt (v)
999
+ dep::fmt (t)
997
1000
dep::fmt::Display (t)
1001
+ dep::fmt::Display::fmt (a)
998
1002
"# ] ] ,
999
1003
) ;
1000
1004
@@ -1003,10 +1007,10 @@ mod tests {
1003
1007
"main" ,
1004
1008
Query :: new ( "fmt" . to_string ( ) ) . name_only ( ) ,
1005
1009
expect ! [ [ r#"
1006
- dep::fmt (t)
1007
- dep::Fmt (v)
1008
1010
dep::Fmt (m)
1009
1011
dep::Fmt (t)
1012
+ dep::Fmt (v)
1013
+ dep::fmt (t)
1010
1014
dep::fmt::Display::fmt (a)
1011
1015
"# ] ] ,
1012
1016
) ;
@@ -1027,10 +1031,10 @@ mod tests {
1027
1031
"main" ,
1028
1032
Query :: new ( "FMT" . to_string ( ) ) ,
1029
1033
expect ! [ [ r#"
1030
- dep::fmt (t)
1034
+ dep::FMT (t)
1031
1035
dep::FMT (v)
1036
+ dep::fmt (t)
1032
1037
dep::fmt (v)
1033
- dep::FMT (t)
1034
1038
"# ] ] ,
1035
1039
) ;
1036
1040
@@ -1068,10 +1072,10 @@ mod tests {
1068
1072
"main" ,
1069
1073
Query :: new ( "" . to_string ( ) ) . limit ( 2 ) ,
1070
1074
expect ! [ [ r#"
1071
- dep::fmt (t )
1075
+ dep::Fmt (m )
1072
1076
dep::Fmt (t)
1073
1077
dep::Fmt (v)
1074
- dep::Fmt (m )
1078
+ dep::fmt (t )
1075
1079
"# ] ] ,
1076
1080
) ;
1077
1081
}
@@ -1091,10 +1095,10 @@ mod tests {
1091
1095
"main" ,
1092
1096
Query :: new ( "FMT" . to_string ( ) ) ,
1093
1097
expect ! [ [ r#"
1094
- dep::fmt (t)
1098
+ dep::FMT (t)
1095
1099
dep::FMT (v)
1100
+ dep::fmt (t)
1096
1101
dep::fmt (v)
1097
- dep::FMT (t)
1098
1102
"# ] ] ,
1099
1103
) ;
1100
1104
0 commit comments