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:
parent
bf42fe1c48
commit
7a884f9561
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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. [1m<p>"Hello Joe!"</p>[0m
|
||||
--> $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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue