File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -227,7 +227,7 @@ impl LintPass for TypeLimits {
227
227
if ( negative && v > ( min. abs ( ) as u64 ) ) ||
228
228
( !negative && v > ( max. abs ( ) as u64 ) ) {
229
229
cx. span_lint ( OVERFLOWING_LITERALS , e. span ,
230
- "literal out of range for its type" ) ;
230
+ & * format ! ( "literal out of range for {:?}" , t ) ) ;
231
231
return ;
232
232
}
233
233
}
@@ -246,7 +246,7 @@ impl LintPass for TypeLimits {
246
246
} ;
247
247
if lit_val < min || lit_val > max {
248
248
cx. span_lint ( OVERFLOWING_LITERALS , e. span ,
249
- "literal out of range for its type" ) ;
249
+ & * format ! ( "literal out of range for {:?}" , t ) ) ;
250
250
}
251
251
} ,
252
252
ty:: ty_float( t) => {
@@ -263,7 +263,7 @@ impl LintPass for TypeLimits {
263
263
} ;
264
264
if lit_val < min || lit_val > max {
265
265
cx. span_lint ( OVERFLOWING_LITERALS , e. span ,
266
- "literal out of range for its type" ) ;
266
+ & * format ! ( "literal out of range for {:?}" , t ) ) ;
267
267
}
268
268
} ,
269
269
_ => ( )
You can’t perform that action at this time.
0 commit comments