Revert "Include package root dir in stage2 error messages"

This reverts commit 15a030ef3d.

ast-check started crashing after this commit. Needs more QA before
merging.
This commit is contained in:
Andrew Kelley
2021-06-27 17:28:59 -07:00
parent 15a030ef3d
commit 6d47b4f39e
2 changed files with 6 additions and 10 deletions

View File

@@ -1111,10 +1111,6 @@ pub const Scope = struct {
return buf.toOwnedSliceSentinel(0);
}
pub fn fullPath(file: File, ally: *Allocator) ![]u8 {
return file.pkg.root_src_directory.join(ally, &[_][]const u8{file.sub_file_path});
}
pub fn dumpSrc(file: *File, src: LazySrcLoc) void {
const loc = std.zig.findLineColumn(file.source.bytes, src);
std.debug.print("{s}:{d}:{d}\n", .{ file.sub_file_path, loc.line + 1, loc.column + 1 });