From 934573fc5db1307caf559cc485e0e557a7c655e2 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Sun, 24 Jul 2022 11:50:10 -0700 Subject: Revert "std.fmt: require specifier for unwrapping ?T and E!T." This reverts commit 7cbd586ace46a8e8cebab660ebca3cfc049305d9. This is causing a fail to build from source: ``` ./lib/std/fmt.zig:492:17: error: cannot format optional without a specifier (i.e. {?} or {any}) @compileError("cannot format optional without a specifier (i.e. {?} or {any})"); ^ ./src/link/MachO/Atom.zig:544:26: note: called from here log.debug(" RELA({s}) @ {x} => %{d} in object({d})", .{ ^ ``` I looked at the code to fix it but none of those args are optionals. --- src/Compilation.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Compilation.zig') diff --git a/src/Compilation.zig b/src/Compilation.zig index 300a02a881..5204910193 100644 --- a/src/Compilation.zig +++ b/src/Compilation.zig @@ -1465,7 +1465,7 @@ pub fn create(gpa: Allocator, options: InitOptions) !*Compilation { .handle = artifact_dir, .path = try options.local_cache_directory.join(arena, &[_][]const u8{artifact_sub_dir}), }; - log.debug("zig_cache_artifact_directory='{?s}' use_stage1={}", .{ + log.debug("zig_cache_artifact_directory='{s}' use_stage1={}", .{ zig_cache_artifact_directory.path, use_stage1, }); -- cgit v1.2.3