@@ -42,7 +42,7 @@ pub fn sourceIndexMessage(msg_bytes: []u8) error{OutOfMemory}!void {
4242
4343var coverage = Coverage .init ;
4444/// Index of type `SourceLocationIndex`.
45- var coverage_source_locations : std .ArrayListUnmanaged (Coverage .SourceLocation ) = .empty ;
45+ var coverage_source_locations : std .ArrayList (Coverage .SourceLocation ) = .empty ;
4646/// Contains the most recent coverage update message, unmodified.
4747var recent_coverage_update : std .ArrayListAlignedUnmanaged (u8 , .of (u64 )) = .empty ;
4848
@@ -76,7 +76,7 @@ pub fn coverageUpdateMessage(msg_bytes: []u8) error{OutOfMemory}!void {
7676 try updateCoverage ();
7777}
7878
79- var entry_points : std .ArrayListUnmanaged (SourceLocationIndex ) = .empty ;
79+ var entry_points : std .ArrayList (SourceLocationIndex ) = .empty ;
8080
8181pub fn entryPointsMessage (msg_bytes : []u8 ) error {OutOfMemory }! void {
8282 const header : abi.fuzz.EntryPointHeader = @bitCast (msg_bytes [0.. @sizeOf (abi .fuzz .EntryPointHeader )].* );
@@ -127,19 +127,19 @@ const SourceLocationIndex = enum(u32) {
127127 }
128128
129129 fn toWalkFile (sli : SourceLocationIndex ) ? Walk.File.Index {
130- var buf : std .ArrayListUnmanaged (u8 ) = .empty ;
130+ var buf : std .ArrayList (u8 ) = .empty ;
131131 defer buf .deinit (gpa );
132132 sli .appendPath (& buf ) catch @panic ("OOM" );
133133 return @enumFromInt (Walk .files .getIndex (buf .items ) orelse return null );
134134 }
135135
136136 fn fileHtml (
137137 sli : SourceLocationIndex ,
138- out : * std .ArrayListUnmanaged (u8 ),
138+ out : * std .ArrayList (u8 ),
139139 ) error { OutOfMemory , SourceUnavailable }! void {
140140 const walk_file_index = sli .toWalkFile () orelse return error .SourceUnavailable ;
141141 const root_node = walk_file_index .findRootDecl ().get ().ast_node ;
142- var annotations : std .ArrayListUnmanaged (html_render .Annotation ) = .empty ;
142+ var annotations : std .ArrayList (html_render .Annotation ) = .empty ;
143143 defer annotations .deinit (gpa );
144144 try computeSourceAnnotations (sli .ptr ().file , walk_file_index , & annotations , coverage_source_locations .items );
145145 html_render .fileSourceHtml (walk_file_index , out , root_node , .{
@@ -153,13 +153,13 @@ const SourceLocationIndex = enum(u32) {
153153fn computeSourceAnnotations (
154154 cov_file_index : Coverage.File.Index ,
155155 walk_file_index : Walk.File.Index ,
156- annotations : * std .ArrayListUnmanaged (html_render.Annotation ),
156+ annotations : * std .ArrayList (html_render.Annotation ),
157157 source_locations : []const Coverage.SourceLocation ,
158158) ! void {
159159 // Collect all the source locations from only this file into this array
160160 // first, then sort by line, col, so that we can collect annotations with
161161 // O(N) time complexity.
162- var locs : std .ArrayListUnmanaged (SourceLocationIndex ) = .empty ;
162+ var locs : std .ArrayList (SourceLocationIndex ) = .empty ;
163163 defer locs .deinit (gpa );
164164
165165 for (source_locations , 0.. ) | sl , sli_usize | {
@@ -309,7 +309,7 @@ fn updateCoverage() error{OutOfMemory}!void {
309309 if (recent_coverage_update .items .len == 0 ) return ;
310310 const want_file = (selected_source_location orelse return ).ptr ().file ;
311311
312- var covered : std .ArrayListUnmanaged (SourceLocationIndex ) = .empty ;
312+ var covered : std .ArrayList (SourceLocationIndex ) = .empty ;
313313 defer covered .deinit (gpa );
314314
315315 // This code assumes 64-bit elements, which is incorrect if the executable
@@ -340,7 +340,7 @@ fn updateCoverage() error{OutOfMemory}!void {
340340fn updateSource () error {OutOfMemory }! void {
341341 if (recent_coverage_update .items .len == 0 ) return ;
342342 const file_sli = selected_source_location .? ;
343- var html : std .ArrayListUnmanaged (u8 ) = .empty ;
343+ var html : std .ArrayList (u8 ) = .empty ;
344344 defer html .deinit (gpa );
345345 file_sli .fileHtml (& html ) catch | err | switch (err ) {
346346 error .OutOfMemory = > | e | return e ,
0 commit comments