authorgravatar for squeek502@hotmail.comRyan Liptak <squeek502@hotmail.com> 2024-05-02 20:26:48-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2024-05-03 13:27:30-07:00
loga52f12afc97c5973cfb844be01cf40a9a6fdb57a
tree07163ba57f35f0105745ea85b482b4b799c4b7a7
parent3b5be9fb6e06f6494ca05fb087a2121e220beb3f

Delete compile errors for deprecated decls


8 files changed, 0 insertions(+), 103 deletions(-)

lib/std/Build/Step/Compile.zig-8
...@@ -545,14 +545,6 @@ pub fn addObjCopy(cs: *Compile, options: Step.ObjCopy.Options) *Step.ObjCopy {...@@ -545,14 +545,6 @@ pub fn addObjCopy(cs: *Compile, options: Step.ObjCopy.Options) *Step.ObjCopy {
545 return b.addObjCopy(cs.getEmittedBin(), copy);545 return b.addObjCopy(cs.getEmittedBin(), copy);
546}546}
547547
548/// This function would run in the context of the package that created the executable,
549/// which is undesirable when running an executable provided by a dependency package.
550pub const run = @compileError("deprecated; use std.Build.addRunArtifact");
551
552/// This function would install in the context of the package that created the artifact,
553/// which is undesirable when installing an artifact provided by a dependency package.
554pub const install = @compileError("deprecated; use std.Build.installArtifact");
555
556pub fn checkObject(self: *Compile) *Step.CheckObject {548pub fn checkObject(self: *Compile) *Step.CheckObject {
557 return Step.CheckObject.create(self.step.owner, self.getEmittedBin(), self.rootModuleTarget().ofmt);549 return Step.CheckObject.create(self.step.owner, self.getEmittedBin(), self.rootModuleTarget().ofmt);
558}550}
lib/std/crypto/sha3.zig-2
...@@ -12,8 +12,6 @@ pub const Sha3_512 = Keccak(1600, 512, 0x06, 24);...@@ -12,8 +12,6 @@ pub const Sha3_512 = Keccak(1600, 512, 0x06, 24);
1212
13pub const Keccak256 = Keccak(1600, 256, 0x01, 24);13pub const Keccak256 = Keccak(1600, 256, 0x01, 24);
14pub const Keccak512 = Keccak(1600, 512, 0x01, 24);14pub const Keccak512 = Keccak(1600, 512, 0x01, 24);
15pub const Keccak_256 = @compileError("Deprecated: use `Keccak256` instead");
16pub const Keccak_512 = @compileError("Deprecated: use `Keccak512` instead");
1715
18pub const Shake128 = Shake(128);16pub const Shake128 = Shake(128);
19pub const Shake256 = Shake(256);17pub const Shake256 = Shake(256);
lib/std/fs.zig-2
...@@ -686,8 +686,6 @@ pub fn selfExePath(out_buffer: []u8) SelfExePathError![]u8 {...@@ -686,8 +686,6 @@ pub fn selfExePath(out_buffer: []u8) SelfExePathError![]u8 {
686 }686 }
687}687}
688688
689pub const selfExePathW = @compileError("deprecated; use selfExePath instead");
690
691/// `selfExeDirPath` except allocates the result on the heap.689/// `selfExeDirPath` except allocates the result on the heap.
692/// Caller owns returned memory.690/// Caller owns returned memory.
693pub fn selfExeDirPathAlloc(allocator: Allocator) ![]u8 {691pub fn selfExeDirPathAlloc(allocator: Allocator) ![]u8 {
lib/std/json.zig-8
...@@ -114,14 +114,6 @@ pub const encodeJsonStringChars = @import("json/stringify.zig").encodeJsonString...@@ -114,14 +114,6 @@ pub const encodeJsonStringChars = @import("json/stringify.zig").encodeJsonString
114pub const Formatter = @import("json/fmt.zig").Formatter;114pub const Formatter = @import("json/fmt.zig").Formatter;
115pub const fmt = @import("json/fmt.zig").fmt;115pub const fmt = @import("json/fmt.zig").fmt;
116116
117// Deprecations
118pub const parse = @compileError("Deprecated; use parseFromSlice() or parseFromTokenSource() instead.");
119pub const parseFree = @compileError("Deprecated; call Parsed(T).deinit() instead.");
120pub const Parser = @compileError("Deprecated; use parseFromSlice(Value) or parseFromTokenSource(Value) instead.");
121pub const ValueTree = @compileError("Deprecated; use Parsed(Value) instead.");
122pub const StreamingParser = @compileError("Deprecated; use json.Scanner or json.Reader instead.");
123pub const TokenStream = @compileError("Deprecated; use json.Scanner or json.Reader instead.");
124
125test {117test {
126 _ = @import("json/test.zig");118 _ = @import("json/test.zig");
127 _ = @import("json/scanner.zig");119 _ = @import("json/scanner.zig");
lib/std/json/stringify.zig-8
...@@ -591,14 +591,6 @@ pub fn WriteStream(...@@ -591,14 +591,6 @@ pub fn WriteStream(
591 try encodeJsonString(s, self.options, self.stream);591 try encodeJsonString(s, self.options, self.stream);
592 self.valueDone();592 self.valueDone();
593 }593 }
594
595 pub const arrayElem = @compileError("Deprecated; You don't need to call this anymore.");
596 pub const emitNull = @compileError("Deprecated; Use .write(null) instead.");
597 pub const emitBool = @compileError("Deprecated; Use .write() instead.");
598 pub const emitNumber = @compileError("Deprecated; Use .write() instead.");
599 pub const emitString = @compileError("Deprecated; Use .write() instead.");
600 pub const emitJson = @compileError("Deprecated; Use .write() instead.");
601 pub const writePreformatted = @compileError("Deprecated; Use .print(\"{s}\", .{s}) instead.");
602 };594 };
603}595}
604596
lib/std/math.zig-67
...@@ -56,65 +56,6 @@ pub const inf = @import("math/float.zig").inf;...@@ -56,65 +56,6 @@ pub const inf = @import("math/float.zig").inf;
56pub const nan = @import("math/float.zig").nan;56pub const nan = @import("math/float.zig").nan;
57pub const snan = @import("math/float.zig").snan;57pub const snan = @import("math/float.zig").snan;
5858
59pub const f16_true_min = @compileError("Deprecated: use `floatTrueMin(f16)` instead");
60pub const f32_true_min = @compileError("Deprecated: use `floatTrueMin(f32)` instead");
61pub const f64_true_min = @compileError("Deprecated: use `floatTrueMin(f64)` instead");
62pub const f80_true_min = @compileError("Deprecated: use `floatTrueMin(f80)` instead");
63pub const f128_true_min = @compileError("Deprecated: use `floatTrueMin(f128)` instead");
64pub const f16_min = @compileError("Deprecated: use `floatMin(f16)` instead");
65pub const f32_min = @compileError("Deprecated: use `floatMin(f32)` instead");
66pub const f64_min = @compileError("Deprecated: use `floatMin(f64)` instead");
67pub const f80_min = @compileError("Deprecated: use `floatMin(f80)` instead");
68pub const f128_min = @compileError("Deprecated: use `floatMin(f128)` instead");
69pub const f16_max = @compileError("Deprecated: use `floatMax(f16)` instead");
70pub const f32_max = @compileError("Deprecated: use `floatMax(f32)` instead");
71pub const f64_max = @compileError("Deprecated: use `floatMax(f64)` instead");
72pub const f80_max = @compileError("Deprecated: use `floatMax(f80)` instead");
73pub const f128_max = @compileError("Deprecated: use `floatMax(f128)` instead");
74pub const f16_epsilon = @compileError("Deprecated: use `floatEps(f16)` instead");
75pub const f32_epsilon = @compileError("Deprecated: use `floatEps(f32)` instead");
76pub const f64_epsilon = @compileError("Deprecated: use `floatEps(f64)` instead");
77pub const f80_epsilon = @compileError("Deprecated: use `floatEps(f80)` instead");
78pub const f128_epsilon = @compileError("Deprecated: use `floatEps(f128)` instead");
79pub const f16_toint = @compileError("Deprecated: use `1.0 / floatEps(f16)` instead");
80pub const f32_toint = @compileError("Deprecated: use `1.0 / floatEps(f32)` instead");
81pub const f64_toint = @compileError("Deprecated: use `1.0 / floatEps(f64)` instead");
82pub const f80_toint = @compileError("Deprecated: use `1.0 / floatEps(f80)` instead");
83pub const f128_toint = @compileError("Deprecated: use `1.0 / floatEps(f128)` instead");
84pub const inf_u16 = @compileError("Deprecated: use `@as(u16, @bitCast(inf(f16)))` instead");
85pub const inf_f16 = @compileError("Deprecated: use `inf(f16)` instead");
86pub const inf_u32 = @compileError("Deprecated: use `@as(u32, @bitCast(inf(f32)))` instead");
87pub const inf_f32 = @compileError("Deprecated: use `inf(f32)` instead");
88pub const inf_u64 = @compileError("Deprecated: use `@as(u64, @bitCast(inf(f64)))` instead");
89pub const inf_f64 = @compileError("Deprecated: use `inf(f64)` instead");
90pub const inf_u80 = @compileError("Deprecated: use `@as(u80, @bitCast(inf(f80)))` instead");
91pub const inf_f80 = @compileError("Deprecated: use `inf(f80)` instead");
92pub const inf_u128 = @compileError("Deprecated: use `@as(u128, @bitCast(inf(f128)))` instead");
93pub const inf_f128 = @compileError("Deprecated: use `inf(f128)` instead");
94pub const nan_u16 = @compileError("Deprecated: use `@as(u16, @bitCast(nan(f16)))` instead");
95pub const nan_f16 = @compileError("Deprecated: use `nan(f16)` instead");
96pub const nan_u32 = @compileError("Deprecated: use `@as(u32, @bitCast(nan(f32)))` instead");
97pub const nan_f32 = @compileError("Deprecated: use `nan(f32)` instead");
98pub const nan_u64 = @compileError("Deprecated: use `@as(u64, @bitCast(nan(f64)))` instead");
99pub const nan_f64 = @compileError("Deprecated: use `nan(f64)` instead");
100pub const nan_u80 = @compileError("Deprecated: use `@as(u80, @bitCast(nan(f80)))` instead");
101pub const nan_f80 = @compileError("Deprecated: use `nan(f80)` instead");
102pub const nan_u128 = @compileError("Deprecated: use `@as(u128, @bitCast(nan(f128)))` instead");
103pub const nan_f128 = @compileError("Deprecated: use `nan(f128)` instead");
104pub const qnan_u16 = @compileError("Deprecated: use `@as(u16, @bitCast(nan(f16)))` instead");
105pub const qnan_f16 = @compileError("Deprecated: use `nan(f16)` instead");
106pub const qnan_u32 = @compileError("Deprecated: use `@as(u32, @bitCast(nan(f32)))` instead");
107pub const qnan_f32 = @compileError("Deprecated: use `nan(f32)` instead");
108pub const qnan_u64 = @compileError("Deprecated: use `@as(u64, @bitCast(nan(f64)))` instead");
109pub const qnan_f64 = @compileError("Deprecated: use `nan(f64)` instead");
110pub const qnan_u80 = @compileError("Deprecated: use `@as(u80, @bitCast(nan(f80)))` instead");
111pub const qnan_f80 = @compileError("Deprecated: use `nan(f80)` instead");
112pub const qnan_u128 = @compileError("Deprecated: use `@as(u128, @bitCast(nan(f128)))` instead");
113pub const qnan_f128 = @compileError("Deprecated: use `nan(f128)` instead");
114pub const epsilon = @compileError("Deprecated: use `floatEps` instead");
115pub const modf32_result = @compileError("Deprecated: use `Modf(f32)` instead");
116pub const modf64_result = @compileError("Deprecated: use `Modf(f64)` instead");
117
118/// Performs an approximate comparison of two floating point values `x` and `y`.59/// Performs an approximate comparison of two floating point values `x` and `y`.
119/// Returns true if the absolute difference between them is less or equal than60/// Returns true if the absolute difference between them is less or equal than
120/// the specified tolerance.61/// the specified tolerance.
...@@ -230,8 +171,6 @@ test approxEqRel {...@@ -230,8 +171,6 @@ test approxEqRel {
230 }171 }
231}172}
232173
233pub const doNotOptimizeAway = @compileError("Deprecated: use `std.mem.doNotOptimizeAway` instead");
234
235pub fn raiseInvalid() void {174pub fn raiseInvalid() void {
236 // Raise INVALID fpu exception175 // Raise INVALID fpu exception
237}176}
...@@ -482,12 +421,6 @@ pub fn Min(comptime A: type, comptime B: type) type {...@@ -482,12 +421,6 @@ pub fn Min(comptime A: type, comptime B: type) type {
482 return @TypeOf(@as(A, 0) + @as(B, 0));421 return @TypeOf(@as(A, 0) + @as(B, 0));
483}422}
484423
485pub const min = @compileError("deprecated; use @min instead");
486pub const max = @compileError("deprecated; use @max instead");
487pub const min3 = @compileError("deprecated; use @min instead");
488pub const max3 = @compileError("deprecated; use @max instead");
489pub const ln = @compileError("deprecated; use @log instead");
490
491/// Odd sawtooth function424/// Odd sawtooth function
492/// ```425/// ```
493/// |426/// |
lib/std/meta.zig-4
...@@ -13,10 +13,6 @@ test {...@@ -13,10 +13,6 @@ test {
13 _ = TrailerFlags;13 _ = TrailerFlags;
14}14}
1515
16pub const tagName = @compileError("deprecated; use @tagName or @errorName directly");
17
18pub const isTag = @compileError("deprecated; use 'tagged_value == @field(E, tag_name)' directly");
19
20/// Returns the variant of an enum type, `T`, which is named `str`, or `null` if no such variant exists.16/// Returns the variant of an enum type, `T`, which is named `str`, or `null` if no such variant exists.
21pub fn stringToEnum(comptime T: type, str: []const u8) ?T {17pub fn stringToEnum(comptime T: type, str: []const u8) ?T {
22 // Using StaticStringMap here is more performant, but it will start to take too18 // Using StaticStringMap here is more performant, but it will start to take too
lib/std/simd.zig-4
...@@ -8,8 +8,6 @@...@@ -8,8 +8,6 @@
8const std = @import("std");8const std = @import("std");
9const builtin = @import("builtin");9const builtin = @import("builtin");
1010
11pub const suggestVectorSizeForCpu = @compileError("deprecated; use 'suggestVectorLengthForCpu'");
12
13pub fn suggestVectorLengthForCpu(comptime T: type, comptime cpu: std.Target.Cpu) ?comptime_int {11pub fn suggestVectorLengthForCpu(comptime T: type, comptime cpu: std.Target.Cpu) ?comptime_int {
14 // This is guesswork, if you have better suggestions can add it or edit the current here12 // This is guesswork, if you have better suggestions can add it or edit the current here
15 // This can run in comptime only, but stage 1 fails at it, stage 2 can understand it13 // This can run in comptime only, but stage 1 fails at it, stage 2 can understand it
...@@ -57,8 +55,6 @@ pub fn suggestVectorLengthForCpu(comptime T: type, comptime cpu: std.Target.Cpu)...@@ -57,8 +55,6 @@ pub fn suggestVectorLengthForCpu(comptime T: type, comptime cpu: std.Target.Cpu)
57 return @divExact(vector_bit_size, element_bit_size);55 return @divExact(vector_bit_size, element_bit_size);
58}56}
5957
60pub const suggestVectorSize = @compileError("deprecated; use 'suggestVectorLength'");
61
62/// Suggests a target-dependant vector length for a given type, or null if scalars are recommended.58/// Suggests a target-dependant vector length for a given type, or null if scalars are recommended.
63/// Not yet implemented for every CPU architecture.59/// Not yet implemented for every CPU architecture.
64pub fn suggestVectorLength(comptime T: type) ?comptime_int {60pub fn suggestVectorLength(comptime T: type) ?comptime_int {