Skip to content

fix: EnumSet initFull/Empty are deprecated#3170

Merged
Techatrix merged 3 commits intozigtools:masterfrom
iisakkirotko:fix-enumset-init
Apr 9, 2026
Merged

fix: EnumSet initFull/Empty are deprecated#3170
Techatrix merged 3 commits intozigtools:masterfrom
iisakkirotko:fix-enumset-init

Conversation

@iisakkirotko
Copy link
Copy Markdown
Contributor

Replaces the recently deprecated EnumSet.initFull and EnumSet.initEmpty with their new declaration literal counterparts.

Fixes #3169.

@dotcarmen
Copy link
Copy Markdown
Contributor

fyi - these changes are usually accompanied by an update to minimum_zig_version in build.zig.zon. i don't know if you have an earlier build, but here's a patch anyways

diff --git a/build.zig.zon b/build.zig.zon
index afba9ebe32..73c7069cc3 100644
--- a/build.zig.zon
+++ b/build.zig.zon
@@ -10,7 +10,7 @@
     // nix flake update --commit-lock-file
     // ```
     // If you do not use Nix, a ZLS maintainer can take care of this.
-    .minimum_zig_version = "0.16.0-dev.2984+cb7d2b056",
+    .minimum_zig_version = "v0.16.0-dev.3133+5ec8e45f3",
     // Must be kept in sync with the `deps.nix` for the Nix flake.
     // If you do not use Nix, a ZLS maintainer can take care of this.
     .dependencies = .{

Flake lock file updates:

• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/1073dad219cb244572b74da2b20c7fe39cb3fa9e?narHash=sha256-tFwzTI0DdDzovdE9%2BRas6CUss0yn8P9XV4Ja6RjA%2BnU%3D' (2026-03-24)
  → 'github:NixOS/nixpkgs/4e92bbcdb030f3b4782be4751dc08e6b6cb6ccf2?narHash=sha256-OEf7YqhF9IjJFYZJyuhAypgU%2BVsRB5lD4DuiMws5Ltc%3D' (2026-04-07)
• Updated input 'zig-overlay':
    'github:mitchellh/zig-overlay/e8d24a6b03faf3824103b6fc986c1afa7c90c7c1?narHash=sha256-8cMeRjQOqOzwYmZdH7cV75PeXOGf74RDGR9IsFX%2B7j0%3D' (2026-03-25)
  → 'github:mitchellh/zig-overlay/e9ed260913d18b2973a86eabc8e46642c4e04c75?narHash=sha256-Vin1%2BHI1TJvBXS4d3rcflfCWL9MmJJjjoZ2ATsPHAqg%3D' (2026-04-08)
@Techatrix Techatrix merged commit f391142 into zigtools:master Apr 9, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

EnumSet initFull and initEmpty were removed from zig briefly

3 participants