| author | |
| committer | |
| log | a52f12afc97c5973cfb844be01cf40a9a6fdb57a |
| tree | 07163ba57f35f0105745ea85b482b4b799c4b7a7 |
| parent | 3b5be9fb6e06f6494ca05fb087a2121e220beb3f |
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 | } |
| 547 | 547 | ||
| 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. | ||
| 550 | pub 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. | ||
| 554 | pub const install = @compileError("deprecated; use std.Build.installArtifact"); | ||
| 555 | |||
| 556 | pub fn checkObject(self: *Compile) *Step.CheckObject { | 548 | pub 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); |
| 12 | 12 | ||
| 13 | pub const Keccak256 = Keccak(1600, 256, 0x01, 24); | 13 | pub const Keccak256 = Keccak(1600, 256, 0x01, 24); |
| 14 | pub const Keccak512 = Keccak(1600, 512, 0x01, 24); | 14 | pub const Keccak512 = Keccak(1600, 512, 0x01, 24); |
| 15 | pub const Keccak_256 = @compileError("Deprecated: use `Keccak256` instead"); | ||
| 16 | pub const Keccak_512 = @compileError("Deprecated: use `Keccak512` instead"); | ||
| 17 | 15 | ||
| 18 | pub const Shake128 = Shake(128); | 16 | pub const Shake128 = Shake(128); |
| 19 | pub const Shake256 = Shake(256); | 17 | pub 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 | } |
| 688 | 688 | ||
| 689 | pub 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. |
| 693 | pub fn selfExeDirPathAlloc(allocator: Allocator) ![]u8 { | 691 | pub 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 |
| 114 | pub const Formatter = @import("json/fmt.zig").Formatter; | 114 | pub const Formatter = @import("json/fmt.zig").Formatter; |
| 115 | pub const fmt = @import("json/fmt.zig").fmt; | 115 | pub const fmt = @import("json/fmt.zig").fmt; |
| 116 | 116 | ||
| 117 | // Deprecations | ||
| 118 | pub const parse = @compileError("Deprecated; use parseFromSlice() or parseFromTokenSource() instead."); | ||
| 119 | pub const parseFree = @compileError("Deprecated; call Parsed(T).deinit() instead."); | ||
| 120 | pub const Parser = @compileError("Deprecated; use parseFromSlice(Value) or parseFromTokenSource(Value) instead."); | ||
| 121 | pub const ValueTree = @compileError("Deprecated; use Parsed(Value) instead."); | ||
| 122 | pub const StreamingParser = @compileError("Deprecated; use json.Scanner or json.Reader instead."); | ||
| 123 | pub const TokenStream = @compileError("Deprecated; use json.Scanner or json.Reader instead."); | ||
| 124 | |||
| 125 | test { | 117 | test { |
| 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 | } |
| 604 | 596 |
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; |
| 56 | pub const nan = @import("math/float.zig").nan; | 56 | pub const nan = @import("math/float.zig").nan; |
| 57 | pub const snan = @import("math/float.zig").snan; | 57 | pub const snan = @import("math/float.zig").snan; |
| 58 | 58 | ||
| 59 | pub const f16_true_min = @compileError("Deprecated: use `floatTrueMin(f16)` instead"); | ||
| 60 | pub const f32_true_min = @compileError("Deprecated: use `floatTrueMin(f32)` instead"); | ||
| 61 | pub const f64_true_min = @compileError("Deprecated: use `floatTrueMin(f64)` instead"); | ||
| 62 | pub const f80_true_min = @compileError("Deprecated: use `floatTrueMin(f80)` instead"); | ||
| 63 | pub const f128_true_min = @compileError("Deprecated: use `floatTrueMin(f128)` instead"); | ||
| 64 | pub const f16_min = @compileError("Deprecated: use `floatMin(f16)` instead"); | ||
| 65 | pub const f32_min = @compileError("Deprecated: use `floatMin(f32)` instead"); | ||
| 66 | pub const f64_min = @compileError("Deprecated: use `floatMin(f64)` instead"); | ||
| 67 | pub const f80_min = @compileError("Deprecated: use `floatMin(f80)` instead"); | ||
| 68 | pub const f128_min = @compileError("Deprecated: use `floatMin(f128)` instead"); | ||
| 69 | pub const f16_max = @compileError("Deprecated: use `floatMax(f16)` instead"); | ||
| 70 | pub const f32_max = @compileError("Deprecated: use `floatMax(f32)` instead"); | ||
| 71 | pub const f64_max = @compileError("Deprecated: use `floatMax(f64)` instead"); | ||
| 72 | pub const f80_max = @compileError("Deprecated: use `floatMax(f80)` instead"); | ||
| 73 | pub const f128_max = @compileError("Deprecated: use `floatMax(f128)` instead"); | ||
| 74 | pub const f16_epsilon = @compileError("Deprecated: use `floatEps(f16)` instead"); | ||
| 75 | pub const f32_epsilon = @compileError("Deprecated: use `floatEps(f32)` instead"); | ||
| 76 | pub const f64_epsilon = @compileError("Deprecated: use `floatEps(f64)` instead"); | ||
| 77 | pub const f80_epsilon = @compileError("Deprecated: use `floatEps(f80)` instead"); | ||
| 78 | pub const f128_epsilon = @compileError("Deprecated: use `floatEps(f128)` instead"); | ||
| 79 | pub const f16_toint = @compileError("Deprecated: use `1.0 / floatEps(f16)` instead"); | ||
| 80 | pub const f32_toint = @compileError("Deprecated: use `1.0 / floatEps(f32)` instead"); | ||
| 81 | pub const f64_toint = @compileError("Deprecated: use `1.0 / floatEps(f64)` instead"); | ||
| 82 | pub const f80_toint = @compileError("Deprecated: use `1.0 / floatEps(f80)` instead"); | ||
| 83 | pub const f128_toint = @compileError("Deprecated: use `1.0 / floatEps(f128)` instead"); | ||
| 84 | pub const inf_u16 = @compileError("Deprecated: use `@as(u16, @bitCast(inf(f16)))` instead"); | ||
| 85 | pub const inf_f16 = @compileError("Deprecated: use `inf(f16)` instead"); | ||
| 86 | pub const inf_u32 = @compileError("Deprecated: use `@as(u32, @bitCast(inf(f32)))` instead"); | ||
| 87 | pub const inf_f32 = @compileError("Deprecated: use `inf(f32)` instead"); | ||
| 88 | pub const inf_u64 = @compileError("Deprecated: use `@as(u64, @bitCast(inf(f64)))` instead"); | ||
| 89 | pub const inf_f64 = @compileError("Deprecated: use `inf(f64)` instead"); | ||
| 90 | pub const inf_u80 = @compileError("Deprecated: use `@as(u80, @bitCast(inf(f80)))` instead"); | ||
| 91 | pub const inf_f80 = @compileError("Deprecated: use `inf(f80)` instead"); | ||
| 92 | pub const inf_u128 = @compileError("Deprecated: use `@as(u128, @bitCast(inf(f128)))` instead"); | ||
| 93 | pub const inf_f128 = @compileError("Deprecated: use `inf(f128)` instead"); | ||
| 94 | pub const nan_u16 = @compileError("Deprecated: use `@as(u16, @bitCast(nan(f16)))` instead"); | ||
| 95 | pub const nan_f16 = @compileError("Deprecated: use `nan(f16)` instead"); | ||
| 96 | pub const nan_u32 = @compileError("Deprecated: use `@as(u32, @bitCast(nan(f32)))` instead"); | ||
| 97 | pub const nan_f32 = @compileError("Deprecated: use `nan(f32)` instead"); | ||
| 98 | pub const nan_u64 = @compileError("Deprecated: use `@as(u64, @bitCast(nan(f64)))` instead"); | ||
| 99 | pub const nan_f64 = @compileError("Deprecated: use `nan(f64)` instead"); | ||
| 100 | pub const nan_u80 = @compileError("Deprecated: use `@as(u80, @bitCast(nan(f80)))` instead"); | ||
| 101 | pub const nan_f80 = @compileError("Deprecated: use `nan(f80)` instead"); | ||
| 102 | pub const nan_u128 = @compileError("Deprecated: use `@as(u128, @bitCast(nan(f128)))` instead"); | ||
| 103 | pub const nan_f128 = @compileError("Deprecated: use `nan(f128)` instead"); | ||
| 104 | pub const qnan_u16 = @compileError("Deprecated: use `@as(u16, @bitCast(nan(f16)))` instead"); | ||
| 105 | pub const qnan_f16 = @compileError("Deprecated: use `nan(f16)` instead"); | ||
| 106 | pub const qnan_u32 = @compileError("Deprecated: use `@as(u32, @bitCast(nan(f32)))` instead"); | ||
| 107 | pub const qnan_f32 = @compileError("Deprecated: use `nan(f32)` instead"); | ||
| 108 | pub const qnan_u64 = @compileError("Deprecated: use `@as(u64, @bitCast(nan(f64)))` instead"); | ||
| 109 | pub const qnan_f64 = @compileError("Deprecated: use `nan(f64)` instead"); | ||
| 110 | pub const qnan_u80 = @compileError("Deprecated: use `@as(u80, @bitCast(nan(f80)))` instead"); | ||
| 111 | pub const qnan_f80 = @compileError("Deprecated: use `nan(f80)` instead"); | ||
| 112 | pub const qnan_u128 = @compileError("Deprecated: use `@as(u128, @bitCast(nan(f128)))` instead"); | ||
| 113 | pub const qnan_f128 = @compileError("Deprecated: use `nan(f128)` instead"); | ||
| 114 | pub const epsilon = @compileError("Deprecated: use `floatEps` instead"); | ||
| 115 | pub const modf32_result = @compileError("Deprecated: use `Modf(f32)` instead"); | ||
| 116 | pub 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 than | 60 | /// 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 | } |
| 232 | 173 | ||
| 233 | pub const doNotOptimizeAway = @compileError("Deprecated: use `std.mem.doNotOptimizeAway` instead"); | ||
| 234 | |||
| 235 | pub fn raiseInvalid() void { | 174 | pub fn raiseInvalid() void { |
| 236 | // Raise INVALID fpu exception | 175 | // 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 | } |
| 484 | 423 | ||
| 485 | pub const min = @compileError("deprecated; use @min instead"); | ||
| 486 | pub const max = @compileError("deprecated; use @max instead"); | ||
| 487 | pub const min3 = @compileError("deprecated; use @min instead"); | ||
| 488 | pub const max3 = @compileError("deprecated; use @max instead"); | ||
| 489 | pub const ln = @compileError("deprecated; use @log instead"); | ||
| 490 | |||
| 491 | /// Odd sawtooth function | 424 | /// 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 | } |
| 15 | 15 | ||
| 16 | pub const tagName = @compileError("deprecated; use @tagName or @errorName directly"); | ||
| 17 | |||
| 18 | pub 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. |
| 21 | pub fn stringToEnum(comptime T: type, str: []const u8) ?T { | 17 | pub fn stringToEnum(comptime T: type, str: []const u8) ?T { |
| 22 | // Using StaticStringMap here is more performant, but it will start to take too | 18 | // 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 @@ |
| 8 | const std = @import("std"); | 8 | const std = @import("std"); |
| 9 | const builtin = @import("builtin"); | 9 | const builtin = @import("builtin"); |
| 10 | 10 | ||
| 11 | pub const suggestVectorSizeForCpu = @compileError("deprecated; use 'suggestVectorLengthForCpu'"); | ||
| 12 | |||
| 13 | pub fn suggestVectorLengthForCpu(comptime T: type, comptime cpu: std.Target.Cpu) ?comptime_int { | 11 | pub 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 here | 12 | // 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 it | 13 | // 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 | } |
| 59 | 57 | ||
| 60 | pub 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. |
| 64 | pub fn suggestVectorLength(comptime T: type) ?comptime_int { | 60 | pub fn suggestVectorLength(comptime T: type) ?comptime_int { |