Commit 210ee1067b

Andrew Kelley <andrew@ziglang.org>
2022-02-09 01:49:40
update more API usage of std.Progress
fixes regression introduced in 5a00e249632716b86edac088f69d19d82e307a28
1 parent 846eb70
doc/docgen.zig
@@ -1196,7 +1196,7 @@ fn genHtml(
     do_code_tests: bool,
 ) !void {
     var progress = Progress{};
-    const root_node = try progress.start("Generating docgen examples", toc.nodes.len);
+    const root_node = progress.start("Generating docgen examples", toc.nodes.len);
     defer root_node.end();
 
     var env_map = try process.getEnvMap(allocator);
src/test.zig
@@ -614,7 +614,7 @@ pub const TestContext = struct {
         const host = try std.zig.system.NativeTargetInfo.detect(std.testing.allocator, .{});
 
         var progress = std.Progress{};
-        const root_node = try progress.start("compiler", self.cases.items.len);
+        const root_node = progress.start("compiler", self.cases.items.len);
         defer root_node.end();
 
         var zig_lib_directory = try introspect.findZigLibDir(std.testing.allocator);
tools/update-license-headers.zig
@@ -6,7 +6,7 @@ const new_header = "";
 
 pub fn main() !void {
     var progress = std.Progress{};
-    const root_node = try progress.start("", 0);
+    const root_node = progress.start("", 0);
     defer root_node.end();
 
     var arena_allocator = std.heap.ArenaAllocator.init(std.heap.page_allocator);
tools/update_cpu_features.zig
@@ -801,7 +801,7 @@ pub fn main() anyerror!void {
     defer zig_src_dir.close();
 
     var progress = std.Progress{};
-    const root_progress = try progress.start("", llvm_targets.len);
+    const root_progress = progress.start("", llvm_targets.len);
     defer root_progress.end();
 
     if (builtin.single_threaded) {