ui: Acknowledge added and changed compiler output about errors in macros

Recent Rust versions give "this error originates in a macro" more
frequently, and on one occasion removed the "outside of the current
crate" remark.

This acknowledges the change in the stderr of the test cases, given the
information makes sense and does not deteriorate user experience.
This commit is contained in:
chrysn 2020-04-22 15:12:53 +02:00 committed by Bodil Stokke
parent bf42fe1c48
commit 7a884f9561
5 changed files with 13 additions and 1 deletions

View File

@ -3,6 +3,8 @@ error: expected identifier
|
10 | <@>
| ^
|
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
error: aborting due to previous error

View File

@ -3,6 +3,8 @@ error: <html> requires 2 children but there are only 1
|
10 | <html>
| ^^^^
|
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
error: aborting due to previous error

View File

@ -3,12 +3,16 @@ error: expected closing tag '</html>', found '</head>'
|
10 | <html></head>
| ^^^^
|
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
error: unclosed tag
--> $DIR/tag-mismatch.rs:10:10
|
10 | <html></head>
| ^^^^
|
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
error: aborting due to 2 previous errors

View File

@ -3,12 +3,16 @@ error: expected "<", code block or literal
|
10 | <title>unquoted</title>
| ^^^^^^^^
|
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
error: text nodes need to be quoted, eg. <p>"Hello Joe!"</p>
--> $DIR/text-nodes-need-to-be-quoted.rs:10:16
|
10 | <title>unquoted</title>
| ^^^^^^^^
|
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
error: aborting due to 2 previous errors

View File

@ -7,7 +7,7 @@ error: unexpected end of macro; missing "<", code block or literal
11 | | };
| |_____^
|
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
error: aborting due to previous error