@@ -22,8 +22,6 @@ use rustc_middle::ty::{self, CanonicalUserTypeAnnotation, Ty};
2222use rustc_span:: symbol:: Symbol ;
2323use rustc_span:: { BytePos , Pos , Span } ;
2424use rustc_target:: abi:: VariantIdx ;
25- use smallvec:: { smallvec, SmallVec } ;
26-
2725// helper functions, broken out by category:
2826mod simplify;
2927mod test;
@@ -949,7 +947,7 @@ struct Candidate<'pat, 'tcx> {
949947 has_guard : bool ,
950948
951949 /// All of these must be satisfied...
952- match_pairs : SmallVec < [ MatchPair < ' pat , ' tcx > ; 1 ] > ,
950+ match_pairs : Vec < MatchPair < ' pat , ' tcx > > ,
953951
954952 /// ...these bindings established...
955953 bindings : Vec < Binding < ' tcx > > ,
@@ -979,7 +977,7 @@ impl<'tcx, 'pat> Candidate<'pat, 'tcx> {
979977 Candidate {
980978 span : pattern. span ,
981979 has_guard,
982- match_pairs : smallvec ! [ MatchPair :: new( place, pattern, cx) ] ,
980+ match_pairs : vec ! [ MatchPair :: new( place, pattern, cx) ] ,
983981 bindings : Vec :: new ( ) ,
984982 ascriptions : Vec :: new ( ) ,
985983 subcandidates : Vec :: new ( ) ,
0 commit comments