mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 10:51:06 +01:00
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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user