@@ -139,7 +139,6 @@ impl Constant {
139139 . find ( |r| r. map_or ( true , |o| o != Ordering :: Equal ) )
140140 . unwrap_or_else ( || Some ( l. len ( ) . cmp ( & r. len ( ) ) ) ) ,
141141 ( & Self :: Repeat ( ref lv, ref ls) , & Self :: Repeat ( ref rv, ref rs) ) => {
142- #[ allow( clippy:: match_wildcard_for_single_variants) ]
143142 match Self :: partial_cmp ( tcx, cmp_type, lv, rv) {
144143 Some ( Equal ) => Some ( ls. cmp ( rs) ) ,
145144 x => x,
@@ -355,14 +354,14 @@ impl<'c, 'cc> ConstEvalLateContext<'c, 'cc> {
355354 ( Some ( Constant :: Vec ( vec) ) , Some ( Constant :: Int ( index) ) ) => match vec. get ( index as usize ) {
356355 Some ( Constant :: F32 ( x) ) => Some ( Constant :: F32 ( * x) ) ,
357356 Some ( Constant :: F64 ( x) ) => Some ( Constant :: F64 ( * x) ) ,
358- Some ( _ ) | None => None ,
357+ _ => None ,
359358 } ,
360359 ( Some ( Constant :: Vec ( vec) ) , _) => {
361360 if !vec. is_empty ( ) && vec. iter ( ) . all ( |x| * x == vec[ 0 ] ) {
362361 match vec. get ( 0 ) {
363362 Some ( Constant :: F32 ( x) ) => Some ( Constant :: F32 ( * x) ) ,
364363 Some ( Constant :: F64 ( x) ) => Some ( Constant :: F64 ( * x) ) ,
365- Some ( _ ) | None => None ,
364+ _ => None ,
366365 }
367366 } else {
368367 None
@@ -533,7 +532,7 @@ pub fn miri_to_const(result: &ty::Const<'_>) -> Option<Constant> {
533532 } )
534533 . collect :: < Option < Vec < Constant > > > ( )
535534 . map ( Constant :: Vec ) ,
536- Some ( _ ) | None => None ,
535+ _ => None ,
537536 } ,
538537 ty:: Float ( FloatTy :: F64 ) => match miri_to_const ( len) {
539538 Some ( Constant :: Int ( len) ) => alloc
@@ -547,7 +546,7 @@ pub fn miri_to_const(result: &ty::Const<'_>) -> Option<Constant> {
547546 } )
548547 . collect :: < Option < Vec < Constant > > > ( )
549548 . map ( Constant :: Vec ) ,
550- Some ( _ ) | None => None ,
549+ _ => None ,
551550 } ,
552551 // FIXME: implement other array type conversions.
553552 _ => None ,
0 commit comments