diff options
| author | PauloCampana <101306295+PauloCampana@users.noreply.github.com> | 2024-10-04 17:50:25 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-10-04 13:50:25 -0700 |
| commit | 3e62cb5c90608580558fff1af24af68735778392 (patch) | |
| tree | c4515cd2f574dcb229aecdcbece458ffb1af3e5e /lib/std/meta.zig | |
| parent | eb363bf84503c428374d5c698ef7ebd574940a11 (diff) | |
| download | zig-3e62cb5c90608580558fff1af24af68735778392.tar.gz zig-3e62cb5c90608580558fff1af24af68735778392.zip | |
Remove old deprecated symbols in std (#21584)
Also, actually run tests inside std/tar/writer.zig
Diffstat (limited to 'lib/std/meta.zig')
| -rw-r--r-- | lib/std/meta.zig | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/lib/std/meta.zig b/lib/std/meta.zig index e7ea5b5f0e..ff0cec1b18 100644 --- a/lib/std/meta.zig +++ b/lib/std/meta.zig @@ -240,8 +240,6 @@ pub fn Sentinel(comptime T: type, comptime sentinel_val: Elem(T)) type { @compileError("Unable to derive a sentinel pointer type from " ++ @typeName(T)); } -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)) { .@"struct" => |info| info.layout, @@ -930,8 +928,6 @@ pub fn fieldIndex(comptime T: type, comptime name: []const u8) ?comptime_int { return null; } -pub const refAllDecls = @compileError("refAllDecls has been moved from std.meta to std.testing"); - /// Returns a slice of pointers to public declarations of a namespace. pub fn declList(comptime Namespace: type, comptime Decl: type) []const *const Decl { const S = struct { @@ -951,8 +947,6 @@ pub fn declList(comptime Namespace: type, comptime Decl: type) []const *const De } } -pub const IntType = @compileError("replaced by std.meta.Int"); - pub fn Int(comptime signedness: std.builtin.Signedness, comptime bit_count: u16) type { return @Type(.{ .int = .{ |
