Remove location support from error (#5837)

Location support was probably there for explorer, which is deleted.
Remove support as a simplification.
This commit is contained in:
Jon Ross-Perkins
2025-07-25 15:00:33 +00:00
committed by GitHub
parent 8ea92b728c
commit bcfaf1044e
3 changed files with 9 additions and 41 deletions
-7
View File
@@ -36,13 +36,6 @@ TEST(ErrorTest, ErrorBuilderOperatorImplicitCast) {
EXPECT_THAT(result, IsError("msg"));
}
TEST(ErrorTest, StreamError) {
Error result = ErrorBuilder("TestFunc") << "msg";
RawStringOstream result_stream;
result_stream << result;
EXPECT_EQ(result_stream.TakeStr(), "TestFunc: msg");
}
class CustomError : public ErrorBase<CustomError> {
public:
auto Print(llvm::raw_ostream& os) const -> void {