File tree 2 files changed +5
-5
lines changed
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -439,7 +439,7 @@ fn lint_literal<'tcx>(
439
439
cx. struct_span_lint ( OVERFLOWING_LITERALS , e. span , |lint| {
440
440
lint. build ( & format ! ( "literal out of range for `{}`" , t. name_str( ) ) )
441
441
. note ( & format ! (
442
- "the literal `{}` does not fit into the type `{}` and will be converted to `std:: {}::INFINITY`" ,
442
+ "the literal `{}` does not fit into the type `{}` and will be converted to `{}::INFINITY`" ,
443
443
cx. sess( )
444
444
. source_map( )
445
445
. span_to_snippet( lit. span)
Original file line number Diff line number Diff line change @@ -17,31 +17,31 @@ error: literal out of range for `f32`
17
17
LL | let x = -3.40282357e+38_f32;
18
18
| ^^^^^^^^^^^^^^^^^^
19
19
|
20
- = note: the literal `3.40282357e+38_f32` does not fit into the type `f32` and will be converted to `std:: f32::INFINITY`
20
+ = note: the literal `3.40282357e+38_f32` does not fit into the type `f32` and will be converted to `f32::INFINITY`
21
21
22
22
error: literal out of range for `f32`
23
23
--> $DIR/lint-type-overflow2.rs:10:14
24
24
|
25
25
LL | let x = 3.40282357e+38_f32;
26
26
| ^^^^^^^^^^^^^^^^^^
27
27
|
28
- = note: the literal `3.40282357e+38_f32` does not fit into the type `f32` and will be converted to `std:: f32::INFINITY`
28
+ = note: the literal `3.40282357e+38_f32` does not fit into the type `f32` and will be converted to `f32::INFINITY`
29
29
30
30
error: literal out of range for `f64`
31
31
--> $DIR/lint-type-overflow2.rs:11:14
32
32
|
33
33
LL | let x = -1.7976931348623159e+308_f64;
34
34
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
35
35
|
36
- = note: the literal `1.7976931348623159e+308_f64` does not fit into the type `f64` and will be converted to `std:: f64::INFINITY`
36
+ = note: the literal `1.7976931348623159e+308_f64` does not fit into the type `f64` and will be converted to `f64::INFINITY`
37
37
38
38
error: literal out of range for `f64`
39
39
--> $DIR/lint-type-overflow2.rs:12:14
40
40
|
41
41
LL | let x = 1.7976931348623159e+308_f64;
42
42
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
43
43
|
44
- = note: the literal `1.7976931348623159e+308_f64` does not fit into the type `f64` and will be converted to `std:: f64::INFINITY`
44
+ = note: the literal `1.7976931348623159e+308_f64` does not fit into the type `f64` and will be converted to `f64::INFINITY`
45
45
46
46
error: aborting due to 5 previous errors
47
47
You can’t perform that action at this time.
0 commit comments