File tree Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -509,17 +509,12 @@ impl DecimalLiteralRepresentation {
509509 fn check_lit ( self , cx : & EarlyContext < ' _ > , lit : & Lit ) {
510510 // Lint integral literals.
511511 if_chain ! {
512- if let LitKind :: Int ( .. ) = lit. kind;
512+ if let LitKind :: Int ( val , _ ) = lit. kind;
513513 if let Some ( src) = snippet_opt( cx, lit. span) ;
514514 if let Some ( firstch) = src. chars( ) . next( ) ;
515515 if char :: to_digit( firstch, 10 ) . is_some( ) ;
516516 let digit_info = DigitInfo :: new( & src, false ) ;
517517 if digit_info. radix == Radix :: Decimal ;
518- if let Ok ( val) = digit_info. digits
519- . chars( )
520- . filter( |& c| c != '_' )
521- . collect:: <String >( )
522- . parse:: <u128 >( ) ;
523518 if val >= u128 :: from( self . threshold) ;
524519 then {
525520 let hex = format!( "{:#X}" , val) ;
You can’t perform that action at this time.
0 commit comments