Skip to content

Commit 8a9ac01

Browse files
committed
remove usage of deprecated std container type names
1 parent ae3ab43 commit 8a9ac01

3 files changed

Lines changed: 9 additions & 9 deletions

File tree

src/DocumentStore.zig

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ pub const Handle = struct {
207207
/// to avoid checking build files multiple times, a bitset stores whether or
208208
/// not the build file should be skipped because it has previously been
209209
/// found to be "unassociated" with the handle.
210-
has_been_checked: std.DynamicBitSetUnmanaged,
210+
has_been_checked: std.bit_set.Dynamic,
211211
},
212212
/// The Handle has no associated build file (build.zig).
213213
none,
@@ -250,7 +250,7 @@ pub const Handle = struct {
250250
return .none;
251251
}
252252

253-
var has_been_checked: std.DynamicBitSetUnmanaged = try .initEmpty(document_store.allocator, potential_build_files.len);
253+
var has_been_checked: std.bit_set.Dynamic = try .initEmpty(document_store.allocator, potential_build_files.len);
254254
errdefer has_been_checked.deinit(document_store.allocator);
255255

256256
self.impl.associated_build_file = .{ .unresolved = .{
@@ -348,7 +348,7 @@ pub const Handle = struct {
348348

349349
const modules = &build_config.modules.map;
350350

351-
var visted: std.DynamicBitSetUnmanaged = try .initEmpty(allocator, modules.count());
351+
var visted: std.bit_set.Dynamic = try .initEmpty(allocator, modules.count());
352352
defer visted.deinit(allocator);
353353

354354
var queue: std.ArrayList(usize) = try .initCapacity(allocator, 1);

src/analyser/InternPool.zig

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -115,11 +115,11 @@ pub const Key = union(enum) {
115115
pub const Function = struct {
116116
args: Index.Slice,
117117
/// zig only lets the first 32 arguments be `comptime`
118-
args_is_comptime: std.StaticBitSet(32) = .empty,
118+
args_is_comptime: std.bit_set.Static(32) = .empty,
119119
/// zig only lets the first 32 arguments be generic
120-
args_is_generic: std.StaticBitSet(32) = .empty,
120+
args_is_generic: std.bit_set.Static(32) = .empty,
121121
/// zig only lets the first 32 arguments be `noalias`
122-
args_is_noalias: std.StaticBitSet(32) = .empty,
122+
args_is_noalias: std.bit_set.Static(32) = .empty,
123123
return_type: Index,
124124
flags: Flags = .{},
125125

@@ -1559,7 +1559,7 @@ fn addExtra(ip: *InternPool, comptime T: type, extra: T) Allocator.Error!u32 {
15591559

15601560
u32,
15611561
i32,
1562-
std.StaticBitSet(32),
1562+
std.bit_set.Static(32),
15631563
Key.Pointer.Flags,
15641564
Key.Pointer.PackedOffset,
15651565
Key.Function.Flags,
@@ -1599,7 +1599,7 @@ fn extraData(ip: *const InternPool, comptime T: type, index: u32) T {
15991599

16001600
u32,
16011601
i32,
1602-
std.StaticBitSet(32),
1602+
std.bit_set.Static(32),
16031603
Key.Pointer.Flags,
16041604
Key.Pointer.PackedOffset,
16051605
Key.Function.Flags,

src/features/code_actions.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -836,7 +836,7 @@ pub fn getImportsDecls(builder: *Builder, allocator: std.mem.Allocator) error{Ou
836836

837837
const root_decls = tree.rootDecls();
838838

839-
var skip_set: std.DynamicBitSetUnmanaged = try .initEmpty(allocator, root_decls.len);
839+
var skip_set: std.bit_set.Dynamic = try .initEmpty(allocator, root_decls.len);
840840
defer skip_set.deinit(allocator);
841841

842842
var imports: std.array_hash_map.Custom(ImportDecl, void, void, true) = .empty;

0 commit comments

Comments
 (0)