amp-59

Results 17 issues of amp-59

### Zig Version 0.12.0-dev.1835+697b8f7d2 ### Steps to Reproduce and Observed Behavior Compile example program with `zig build-obj runtime_safety_switch_prong_error.zig` `runtime_safety_switch_prong_error.zig`: ```zig pub fn panic(_: []const u8, _: @TypeOf(@errorReturnTrace()), _: ?usize) noreturn...

bug
frontend

Fixes #17323 Extracted common branch from prongs of switch on `air_tag`.

### Zig Version 0.12.0-dev.654+599641357 ### Steps to Reproduce and Observed Behavior Compile example program with `zig build-obj shl_error.zig` `shl_error.zig`: ```zig comptime { _ = @shlExact(1, 1); } ``` Actual result:...

bug
frontend

## Overview This initial section is only intended as a high-level explanation of the obvious features of the new panic interface. This will be the overarching order of discussion (including...

### Zig Version 0.13.0-dev.46+3648d7df1 ### Steps to Reproduce and Observed Behaviour Compile and run example program with `zig run overestimate_upper_bound.zig` `overestimate_upper_bound.zig`: ```zig var src_mem: [3]u8 = .{ 0, 0, 0...

### Zig Version 0.13.0-dev.46+3648d7df1 ### Behaviour Below is a selection of slice operations showing the variety of outcome when slicing pointers which are known to be undefined at compile time....

### Zig Version 0.13.0-dev.46+3648d7df1 ### Steps to Reproduce and Observed Behaviour Compile example program with `zig build-obj demo_various_unusable_results.zig` `demo_various_unusable_results.zig`: ```zig const T = extern struct { a: usize = 1,...

### Zig Version 0.13.0-dev.46+3648d7df1 ### Steps to Reproduce and Observed Behaviour Compile and run example program with `zig run slice_start_sentinel_always_out_of_bounds.zig` `slice_start_sentinel_always_out_of_bounds.zig`: ```zig pub fn main() !void { var buf: *const...

### Zig Version 0.13.0-dev.46+3648d7df1 ### Steps to Reproduce and Observed Behaviour Compile and run example program with `zig run underestimate_upper_bound.zig` `underestimate_upper_bound.zig`: ```zig var dest_end: usize = 3; pub fn main()...