authorgravatar for jacobly@ziglang.orgJacob Young <jacobly@ziglang.org> 2024-01-12 21:33:22+01:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2024-01-13 13:16:51-08:00
log7916cf6f83650517f39a9e6aec23ba53d176a2ba
treed3f64a493f3f69443d768018ec56855fee638322
parent4f2009de12275d1633ae514dc00b795a3fa103a5

std.io.GenericReader: add missing error annotations


1 files changed, 6 insertions(+), 6 deletions(-)

lib/std/io.zig+6-6
......@@ -142,7 +142,7 @@ pub fn GenericReader(
142142 self: Self,
143143 array_list: *std.ArrayList(u8),
144144 max_append_size: usize,
145 ) (error{StreamTooLong} || Error)!void {
145 ) (error{StreamTooLong} || Allocator.Error || Error)!void {
146146 return @errorCast(self.any().readAllArrayList(array_list, max_append_size));
147147 }
148148
......@@ -151,7 +151,7 @@ pub fn GenericReader(
151151 comptime alignment: ?u29,
152152 array_list: *std.ArrayListAligned(u8, alignment),
153153 max_append_size: usize,
154 ) (error{StreamTooLong} || Error)!void {
154 ) (error{StreamTooLong} || Allocator.Error || Error)!void {
155155 return @errorCast(self.any().readAllArrayListAligned(
156156 alignment,
157157 array_list,
......@@ -163,7 +163,7 @@ pub fn GenericReader(
163163 self: Self,
164164 allocator: Allocator,
165165 max_size: usize,
166 ) (Error || error{StreamTooLong})![]u8 {
166 ) (Error || Allocator.Error || error{StreamTooLong})![]u8 {
167167 return @errorCast(self.any().readAllAlloc(allocator, max_size));
168168 }
169169
......@@ -172,7 +172,7 @@ pub fn GenericReader(
172172 array_list: *std.ArrayList(u8),
173173 delimiter: u8,
174174 max_size: usize,
175 ) (NoEofError || error{StreamTooLong})!void {
175 ) (NoEofError || Allocator.Error || error{StreamTooLong})!void {
176176 return @errorCast(self.any().readUntilDelimiterArrayList(
177177 array_list,
178178 delimiter,
......@@ -185,7 +185,7 @@ pub fn GenericReader(
185185 allocator: Allocator,
186186 delimiter: u8,
187187 max_size: usize,
188 ) (NoEofError || error{StreamTooLong})![]u8 {
188 ) (NoEofError || Allocator.Error || error{StreamTooLong})![]u8 {
189189 return @errorCast(self.any().readUntilDelimiterAlloc(
190190 allocator,
191191 delimiter,
......@@ -206,7 +206,7 @@ pub fn GenericReader(
206206 allocator: Allocator,
207207 delimiter: u8,
208208 max_size: usize,
209 ) (Error || error{StreamTooLong})!?[]u8 {
209 ) (Error || Allocator.Error || error{StreamTooLong})!?[]u8 {
210210 return @errorCast(self.any().readUntilDelimiterOrEofAlloc(
211211 allocator,
212212 delimiter,