Skip to content

Commit eb37552

Browse files
linusgandrewrk
authored andcommitted
Remove numerous things deprecated during the 0.14 release cycle
Basically everything that has a direct replacement or no uses left. Notable omissions: - std.ArrayHashMap: Too much fallout, needs a separate cleanup. - std.debug.runtime_safety: Too much fallout. - std.heap.GeneralPurposeAllocator: Lots of references to it remain, not a simple find and replace as "debug allocator" is not equivalent to "general purpose allocator". - std.io.Reader: Is being reworked at the moment. - std.unicode.utf8Decode(): No replacement, needs a new API first. - Manifest backwards compat options: Removal would break test data used by TestFetchBuilder. - panic handler needs to be a namespace: Many tests still rely on it being a function, needs a separate cleanup.
1 parent d83b95c commit eb37552

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

62 files changed

+128
-642
lines changed

doc/langref/build_c.zig

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
const std = @import("std");
22

33
pub fn build(b: *std.Build) void {
4-
const lib = b.addSharedLibrary(.{
4+
const lib = b.addLibrary(.{
5+
.linkage = .dynamic,
56
.name = "mathtest",
67
.root_source_file = b.path("mathtest.zig"),
78
.version = .{ .major = 1, .minor = 0, .patch = 0 },

doc/langref/test_noreturn_from_exit.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ const builtin = @import("builtin");
33
const native_arch = builtin.cpu.arch;
44
const expect = std.testing.expect;
55

6-
const WINAPI: std.builtin.CallingConvention = if (native_arch == .x86) .Stdcall else .C;
6+
const WINAPI: std.builtin.CallingConvention = if (native_arch == .x86) .{ .x86_stdcall = .{} } else .c;
77
extern "kernel32" fn ExitProcess(exit_code: c_uint) callconv(WINAPI) noreturn;
88

99
test "foo" {

lib/compiler/aro/aro/Parser.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8259,7 +8259,7 @@ fn charLiteral(p: *Parser) Error!Result {
82598259
const slice = char_kind.contentSlice(p.tokSlice(p.tok_i));
82608260

82618261
var is_multichar = false;
8262-
if (slice.len == 1 and std.ascii.isASCII(slice[0])) {
8262+
if (slice.len == 1 and std.ascii.isAscii(slice[0])) {
82638263
// fast path: single unescaped ASCII char
82648264
val = slice[0];
82658265
} else {

lib/compiler/aro_translate_c.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1820,7 +1820,7 @@ pub fn main() !void {
18201820
var tree = translate(gpa, &aro_comp, args) catch |err| switch (err) {
18211821
error.ParsingFailed, error.FatalError => renderErrorsAndExit(&aro_comp),
18221822
error.OutOfMemory => return error.OutOfMemory,
1823-
error.StreamTooLong => std.zig.fatal("An input file was larger than 4GiB", .{}),
1823+
error.StreamTooLong => std.process.fatal("An input file was larger than 4GiB", .{}),
18241824
};
18251825
defer tree.deinit(gpa);
18261826

lib/compiler/objcopy.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const Allocator = std.mem.Allocator;
77
const File = std.fs.File;
88
const assert = std.debug.assert;
99

10-
const fatal = std.zig.fatal;
10+
const fatal = std.process.fatal;
1111
const Server = std.zig.Server;
1212

1313
pub fn main() !void {

0 commit comments

Comments
 (0)