aboutsummaryrefslogtreecommitdiff
path: root/src/link.zig
diff options
context:
space:
mode:
authorBenjamin Jurk <106487517+bnjmnjrk@users.noreply.github.com>2025-11-20 23:46:23 +0100
committerGitHub <noreply@github.com>2025-11-20 14:46:23 -0800
commit4b5351bc0ddc248d6935d7d160a57cb4dfe4dedd (patch)
tree8ce84d4e44a8ee1abaf0ef71d8287cec4b0f8c0a /src/link.zig
parentdb622f14c445b4f55981636543c546e22346abd5 (diff)
downloadzig-4b5351bc0ddc248d6935d7d160a57cb4dfe4dedd.tar.gz
zig-4b5351bc0ddc248d6935d7d160a57cb4dfe4dedd.zip
update deprecated ArrayListUnmanaged usage (#25958)
Diffstat (limited to 'src/link.zig')
-rw-r--r--src/link.zig36
1 files changed, 18 insertions, 18 deletions
diff --git a/src/link.zig b/src/link.zig
index b0964d6f86..31ba3aca7d 100644
--- a/src/link.zig
+++ b/src/link.zig
@@ -35,9 +35,9 @@ pub const Diags = struct {
/// needing an allocator for things besides error reporting.
gpa: Allocator,
mutex: std.Thread.Mutex,
- msgs: std.ArrayListUnmanaged(Msg),
+ msgs: std.ArrayList(Msg),
flags: Flags,
- lld: std.ArrayListUnmanaged(Lld),
+ lld: std.ArrayList(Lld),
pub const SourceLocation = union(enum) {
none,
@@ -1775,19 +1775,19 @@ pub fn resolveInputs(
target: *const std.Target,
/// This function mutates this array but does not take ownership.
/// Allocated with `gpa`.
- unresolved_inputs: *std.ArrayListUnmanaged(UnresolvedInput),
+ unresolved_inputs: *std.ArrayList(UnresolvedInput),
/// Allocated with `gpa`.
- resolved_inputs: *std.ArrayListUnmanaged(Input),
+ resolved_inputs: *std.ArrayList(Input),
lib_directories: []const Cache.Directory,
color: std.zig.Color,
) Allocator.Error!void {
- var checked_paths: std.ArrayListUnmanaged(u8) = .empty;
+ var checked_paths: std.ArrayList(u8) = .empty;
defer checked_paths.deinit(gpa);
- var ld_script_bytes: std.ArrayListUnmanaged(u8) = .empty;
+ var ld_script_bytes: std.ArrayList(u8) = .empty;
defer ld_script_bytes.deinit(gpa);
- var failed_libs: std.ArrayListUnmanaged(struct {
+ var failed_libs: std.ArrayList(struct {
name: []const u8,
strategy: UnresolvedInput.SearchStrategy,
checked_paths: []const u8,
@@ -2007,13 +2007,13 @@ fn resolveLibInput(
gpa: Allocator,
arena: Allocator,
/// Allocated via `gpa`.
- unresolved_inputs: *std.ArrayListUnmanaged(UnresolvedInput),
+ unresolved_inputs: *std.ArrayList(UnresolvedInput),
/// Allocated via `gpa`.
- resolved_inputs: *std.ArrayListUnmanaged(Input),
+ resolved_inputs: *std.ArrayList(Input),
/// Allocated via `gpa`.
- checked_paths: *std.ArrayListUnmanaged(u8),
+ checked_paths: *std.ArrayList(u8),
/// Allocated via `gpa`.
- ld_script_bytes: *std.ArrayListUnmanaged(u8),
+ ld_script_bytes: *std.ArrayList(u8),
lib_directory: Directory,
name_query: UnresolvedInput.NameQuery,
target: *const std.Target,
@@ -2097,7 +2097,7 @@ fn resolveLibInput(
}
fn finishResolveLibInput(
- resolved_inputs: *std.ArrayListUnmanaged(Input),
+ resolved_inputs: *std.ArrayList(Input),
path: Path,
file: std.fs.File,
link_mode: std.builtin.LinkMode,
@@ -2125,11 +2125,11 @@ fn resolvePathInput(
gpa: Allocator,
arena: Allocator,
/// Allocated with `gpa`.
- unresolved_inputs: *std.ArrayListUnmanaged(UnresolvedInput),
+ unresolved_inputs: *std.ArrayList(UnresolvedInput),
/// Allocated with `gpa`.
- resolved_inputs: *std.ArrayListUnmanaged(Input),
+ resolved_inputs: *std.ArrayList(Input),
/// Allocated via `gpa`.
- ld_script_bytes: *std.ArrayListUnmanaged(u8),
+ ld_script_bytes: *std.ArrayList(u8),
target: *const std.Target,
pq: UnresolvedInput.PathQuery,
color: std.zig.Color,
@@ -2167,11 +2167,11 @@ fn resolvePathInputLib(
gpa: Allocator,
arena: Allocator,
/// Allocated with `gpa`.
- unresolved_inputs: *std.ArrayListUnmanaged(UnresolvedInput),
+ unresolved_inputs: *std.ArrayList(UnresolvedInput),
/// Allocated with `gpa`.
- resolved_inputs: *std.ArrayListUnmanaged(Input),
+ resolved_inputs: *std.ArrayList(Input),
/// Allocated via `gpa`.
- ld_script_bytes: *std.ArrayListUnmanaged(u8),
+ ld_script_bytes: *std.ArrayList(u8),
target: *const std.Target,
pq: UnresolvedInput.PathQuery,
link_mode: std.builtin.LinkMode,