diag: Remove ICE bug report message

We're about to go into a Chrome Origin Trial, and crbug.com/tint is not the correct place to file Chrome related bugs.
Move this message to the tint executable, which is code not used by chrome.

Change-Id: Ib33630164fa5d7bec3c581e5eca6ff188921eef8
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/60562
Auto-Submit: Ben Clayton <bclayton@google.com>
Reviewed-by: James Price <jrprice@google.com>
Commit-Queue: Ben Clayton <bclayton@google.com>
Kokoro: Ben Clayton <bclayton@google.com>
This commit is contained in:
Ben Clayton
2021-08-04 20:19:28 +00:00
committed by Tint LUCI CQ
parent ecadfc111b
commit 63e7ad699c
3 changed files with 10 additions and 30 deletions

View File

@@ -112,7 +112,6 @@ Formatter::Formatter(const Style& style) : style_(style) {}
void Formatter::format(const List& list, Printer* printer) const {
State state{printer};
bool please_report_bug = false;
bool first = true;
for (auto diag : list) {
state.set_style({});
@@ -121,21 +120,6 @@ void Formatter::format(const List& list, Printer* printer) const {
}
format(diag, state);
first = false;
if (static_cast<int>(diag.severity) > static_cast<int>(Severity::Error)) {
please_report_bug = true;
}
}
if (please_report_bug) {
state.set_style({Color::kRed, true});
state << R"(
********************************************************************
* The tint shader compiler has encountered an unexpected error. *
* *
* Please help us fix this issue by submitting a bug report at *
* crbug.com/tint with the source program that triggered the bug. *
********************************************************************
)";
}
if (style_.print_newline_at_end) {

View File

@@ -188,13 +188,6 @@ TEST_F(DiagFormatterTest, ICE) {
the snail says ???
^^^
********************************************************************
* The tint shader compiler has encountered an unexpected error. *
* *
* Please help us fix this issue by submitting a bug report at *
* crbug.com/tint with the source program that triggered the bug. *
********************************************************************
)";
ASSERT_EQ(expect, got);
}
@@ -206,13 +199,6 @@ TEST_F(DiagFormatterTest, Fatal) {
the snail says ???
^^^
********************************************************************
* The tint shader compiler has encountered an unexpected error. *
* *
* Please help us fix this issue by submitting a bug report at *
* crbug.com/tint with the source program that triggered the bug. *
********************************************************************
)";
ASSERT_EQ(expect, got);
}