authorgravatar for johnnymarler@gmail.comJonathan Marler <johnnymarler@gmail.com> 2023-02-04 13:07:48-07:00
committergravatar for git@vexu.euVeikka Tuominen <git@vexu.eu> 2023-02-04 23:19:00+02:00
log1876eaec51cab1251a53391f4b4d0fd227e83710
tree3823f1f15b8e68989e24a42e2654d5152e6f30e8
parentb7c96c3bbdc0e2172cf9edb0c9c7c52f86c2311e

mark deprecated assumeSentinel as pub

assumeSentinel was removed and replaced with a compileError, but it's not pub, so the error message indicates it's private rather than providing the compileError message.

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

lib/std/meta.zig+1-1
......@@ -332,7 +332,7 @@ pub fn Sentinel(comptime T: type, comptime sentinel_val: Elem(T)) type {
332332 @compileError("Unable to derive a sentinel pointer type from " ++ @typeName(T));
333333}
334334
335const assumeSentinel = @compileError("This function has been removed, consider using std.mem.sliceTo() or if needed a @ptrCast()");
335pub const assumeSentinel = @compileError("This function has been removed, consider using std.mem.sliceTo() or if needed a @ptrCast()");
336336
337337pub fn containerLayout(comptime T: type) Type.ContainerLayout {
338338 return switch (@typeInfo(T)) {