aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2021-02-19 20:27:06 -0700
committerAndrew Kelley <andrew@ziglang.org>2021-02-19 20:27:06 -0700
commit70761d7c52cd3634e086b0914c9520ef4dc01eee (patch)
treeff3f5458deab36e4ce228e52c396230688cfa0ca /src
parent6959b177ef27f88d6fc9ef1f0a6301f58d36d730 (diff)
downloadzig-70761d7c52cd3634e086b0914c9520ef4dc01eee.tar.gz
zig-70761d7c52cd3634e086b0914c9520ef4dc01eee.zip
stage2: remove incorrect newlines from log statements
Diffstat (limited to 'src')
-rw-r--r--src/Compilation.zig4
-rw-r--r--src/Module.zig12
2 files changed, 8 insertions, 8 deletions
diff --git a/src/Compilation.zig b/src/Compilation.zig
index b3ee73f03f..227355de93 100644
--- a/src/Compilation.zig
+++ b/src/Compilation.zig
@@ -1935,7 +1935,7 @@ pub fn cImport(comp: *Compilation, c_src: []const u8) !CImportResult {
"o", &digest, cimport_zig_basename,
});
if (comp.verbose_cimport) {
- log.info("C import output: {s}\n", .{out_zig_path});
+ log.info("C import output: {s}", .{out_zig_path});
}
return CImportResult{
.out_zig_path = out_zig_path,
@@ -2999,7 +2999,7 @@ pub fn updateSubCompilation(sub_compilation: *Compilation) !void {
for (errors.list) |full_err_msg| {
switch (full_err_msg) {
.src => |src| {
- log.err("{s}:{d}:{d}: {s}\n", .{
+ log.err("{s}:{d}:{d}: {s}", .{
src.src_path,
src.line + 1,
src.column + 1,
diff --git a/src/Module.zig b/src/Module.zig
index 8f2ac3721e..9a918321c4 100644
--- a/src/Module.zig
+++ b/src/Module.zig
@@ -924,7 +924,7 @@ pub fn ensureDeclAnalyzed(mod: *Module, decl: *Decl) InnerError!void {
.complete => return,
.outdated => blk: {
- log.debug("re-analyzing {s}\n", .{decl.name});
+ log.debug("re-analyzing {s}", .{decl.name});
// The exports this Decl performs will be re-discovered, so we remove them here
// prior to re-analysis.
@@ -1943,7 +1943,7 @@ pub fn analyzeContainer(mod: *Module, container_scope: *Scope.Container) !void {
// Handle explicitly deleted decls from the source code. Not to be confused
// with when we delete decls because they are no longer referenced.
for (deleted_decls.items()) |entry| {
- log.debug("noticed '{s}' deleted from source\n", .{entry.key.name});
+ log.debug("noticed '{s}' deleted from source", .{entry.key.name});
try mod.deleteDecl(entry.key);
}
}
@@ -2087,7 +2087,7 @@ pub fn deleteDecl(self: *Module, decl: *Decl) !void {
// not be present in the set, and this does nothing.
decl.container.removeDecl(decl);
- log.debug("deleting decl '{s}'\n", .{decl.name});
+ log.debug("deleting decl '{s}'", .{decl.name});
const name_hash = decl.fullyQualifiedNameHash();
self.decl_table.removeAssertDiscard(name_hash);
// Remove itself from its dependencies, because we are about to destroy the decl pointer.
@@ -2189,18 +2189,18 @@ pub fn analyzeFnBody(self: *Module, decl: *Decl, func: *Fn) !void {
defer inner_block.instructions.deinit(self.gpa);
func.state = .in_progress;
- log.debug("set {s} to in_progress\n", .{decl.name});
+ log.debug("set {s} to in_progress", .{decl.name});
try zir_sema.analyzeBody(self, &inner_block, func.zir);
const instructions = try arena.allocator.dupe(*Inst, inner_block.instructions.items);
func.state = .success;
func.body = .{ .instructions = instructions };
- log.debug("set {s} to success\n", .{decl.name});
+ log.debug("set {s} to success", .{decl.name});
}
fn markOutdatedDecl(self: *Module, decl: *Decl) !void {
- log.debug("mark {s} outdated\n", .{decl.name});
+ log.debug("mark {s} outdated", .{decl.name});
try self.comp.work_queue.writeItem(.{ .analyze_decl = decl });
if (self.failed_decls.swapRemove(decl)) |entry| {
entry.value.destroy(self.gpa);