Jacob Young

Results 57 comments of Jacob Young

Probably an `AstGen` bug: ```diff # Source bytes: 155B # Tokens: 59 (319B) # AST Nodes: 26 (458B) # Total ZIR bytes: 1.19921875KiB # Instructions: 65 (585B) # String Table...

I have seen this behavior while working on the compiler, and I had to use `var` instead of `const` to force a copy to be made, even though I never...

> namely remove `Type.Payload` Note that I already did this in a local commit.

Doesn't repro "on master": ``` rise/build.zig:98:93: error: no field named 'architecture' in struct 'json.static.Parsed(src.common.Configuration)' .architecture = b.standardTargetOptions(.{ .default_target = .{ .cpu_arch = cfg.architecture } }).getCpuArch(), ^~~~~~~~~~~~ ```

repro: ``` const S = struct { var a: u8 = 0; b: u8 = a, }; export fn entry() void { _ = @as(S, undefined); } ``` Note that...

The value of the contents of `buffer` is only known at runtime, so referencing it from comptime is no longer allowed. You can store the length in a `const`, which...

You missed a funny match: ``` src/Builtin.zig: \\/// feature detection (i.e. with `@hasDecl` or `@hasField`) over version checks. ```

Crashes during a comptime bitcast because `16 < 64`. ``` thread 378235 panic: integer overflow src/Sema/bitcast.zig:156:59: 0x9e4f48f in bitCastSpliceInner () .{ val_ty.abiSize(zcu) * 8 - host_bits, host_bits - val_ty.bitSize(zcu) }...

Note that the reference to `@import("wasi.zig")` was introduced by #18712 (where the lazily analyzed decl `wasiCwd` was moved to a less lazily analyzed field).

> The main example I've noticed is `std.PackedIntArray`, which uses a backing buffer to store a sequence of integer values bit-packed in memory. The problem is that if we initialize...