mirror of
https://github.com/ziglang/zig.git
synced 2026-02-14 13:30:45 +00:00
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.
This commit is contained in:
parent
b7c96c3bbd
commit
1876eaec51
@ -332,7 +332,7 @@ pub fn Sentinel(comptime T: type, comptime sentinel_val: Elem(T)) type {
|
||||
@compileError("Unable to derive a sentinel pointer type from " ++ @typeName(T));
|
||||
}
|
||||
|
||||
const assumeSentinel = @compileError("This function has been removed, consider using std.mem.sliceTo() or if needed a @ptrCast()");
|
||||
pub const assumeSentinel = @compileError("This function has been removed, consider using std.mem.sliceTo() or if needed a @ptrCast()");
|
||||
|
||||
pub fn containerLayout(comptime T: type) Type.ContainerLayout {
|
||||
return switch (@typeInfo(T)) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user