@@ -424,7 +424,7 @@ impl LitInt {
424424 pub fn new ( repr : & str , span : Span ) -> Self {
425425 let ( digits, suffix) = match value:: parse_lit_int ( repr) {
426426 Some ( parse) => parse,
427- None => panic ! ( "not an integer literal: `{}`" , repr) ,
427+ None => crate :: panic_with_location !( "not an integer literal: `{}`" , repr) ,
428428 } ;
429429
430430 let mut token: Literal = repr. parse ( ) . unwrap ( ) ;
@@ -504,7 +504,7 @@ impl From<Literal> for LitInt {
504504 } ) ,
505505 }
506506 } else {
507- panic ! ( "not an integer literal: `{}`" , repr) ;
507+ crate :: panic_with_location !( "not an integer literal: `{}`" , repr) ;
508508 }
509509 }
510510}
@@ -520,7 +520,7 @@ impl LitFloat {
520520 pub fn new ( repr : & str , span : Span ) -> Self {
521521 let ( digits, suffix) = match value:: parse_lit_float ( repr) {
522522 Some ( parse) => parse,
523- None => panic ! ( "not a float literal: `{}`" , repr) ,
523+ None => crate :: panic_with_location !( "not a float literal: `{}`" , repr) ,
524524 } ;
525525
526526 let mut token: Literal = repr. parse ( ) . unwrap ( ) ;
@@ -578,7 +578,7 @@ impl From<Literal> for LitFloat {
578578 } ) ,
579579 }
580580 } else {
581- panic ! ( "not a float literal: `{}`" , repr) ;
581+ crate :: panic_with_location !( "not a float literal: `{}`" , repr) ;
582582 }
583583 }
584584}
0 commit comments