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 {
509
509
fn check_lit ( self , cx : & EarlyContext < ' _ > , lit : & Lit ) {
510
510
// Lint integral literals.
511
511
if_chain ! {
512
- if let LitKind :: Int ( .. ) = lit. kind;
512
+ if let LitKind :: Int ( val , _ ) = lit. kind;
513
513
if let Some ( src) = snippet_opt( cx, lit. span) ;
514
514
if let Some ( firstch) = src. chars( ) . next( ) ;
515
515
if char :: to_digit( firstch, 10 ) . is_some( ) ;
516
516
let digit_info = DigitInfo :: new( & src, false ) ;
517
517
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 >( ) ;
523
518
if val >= u128 :: from( self . threshold) ;
524
519
then {
525
520
let hex = format!( "{:#X}" , val) ;
You can’t perform that action at this time.
0 commit comments