Sema: implement reference trace with called from here notes

Closes #15124
This commit is contained in:
Jacob Young
2023-08-27 16:18:51 -04:00
committed by Andrew Kelley
parent ff61c42879
commit c6024691cf
2 changed files with 2 additions and 9 deletions

View File

@@ -1566,12 +1566,6 @@ pub const ErrorMsg = struct {
gpa.free(err_msg.reference_trace);
err_msg.* = undefined;
}
pub fn clearTrace(err_msg: *ErrorMsg, gpa: Allocator) void {
if (err_msg.reference_trace.len == 0) return;
gpa.free(err_msg.reference_trace);
err_msg.reference_trace = &.{};
}
};
/// Canonical reference to a position within a source file.