Merge pull request #6246 from Vexu/field

Remove deprecated fields on `type`
This commit is contained in:
Veikka Tuominen
2020-09-05 13:58:02 +03:00
committed by GitHub
68 changed files with 383 additions and 554 deletions

View File

@@ -374,7 +374,7 @@ test "fmt.parseFloat" {
const epsilon = 1e-7;
inline for ([_]type{ f16, f32, f64, f128 }) |T| {
const Z = std.meta.Int(false, T.bit_count);
const Z = std.meta.Int(false, @typeInfo(T).Float.bits);
testing.expectError(error.InvalidCharacter, parseFloat(T, ""));
testing.expectError(error.InvalidCharacter, parseFloat(T, " 1"));