From 755f01944acff6e0628336f0c0b162f7814e6931 Mon Sep 17 00:00:00 2001 From: Justin Starry Date: Thu, 23 Apr 2020 23:43:12 +0800 Subject: [PATCH] Update to Rust v1.43.0 --- .github/ISSUE_TEMPLATE/bug_report.md | 2 +- yew-macro/tests/derive_props/fail.stderr | 7 +- yew-macro/tests/derive_props_test.rs | 2 +- yew-macro/tests/macro/html-block-fail.stderr | 3 + .../html-component-fail-unimplemented.stderr | 18 ++--- .../tests/macro/html-component-fail.stderr | 72 ++++++++++++++++--- .../tests/macro/html-iterable-fail.stderr | 7 ++ yew-macro/tests/macro/html-list-fail.stderr | 18 ++++- yew-macro/tests/macro/html-node-fail.stderr | 20 ++++++ yew-macro/tests/macro/html-tag-fail.stderr | 62 ++++++++++++++-- yew-macro/tests/macro_test.rs | 2 +- yew/src/agent.rs | 1 - yew/src/format/bincode.rs | 2 - yew/src/format/toml.rs | 2 - 14 files changed, 185 insertions(+), 33 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md index e514bb02997..b63b155da0b 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -25,7 +25,7 @@ If applicable, add screenshots to help explain your problem. **Environment:** - Yew version [e.g. v0.10, `master`] - - Rust version [e.g. 1.42.0] + - Rust version [e.g. 1.43.0] - Target if relevant [e.g. `wasm32-unknown-emscripten`] - `stdweb` / `web-sys` version [e.g. web-sys v0.3.33] - OS: [e.g. macos] diff --git a/yew-macro/tests/derive_props/fail.stderr b/yew-macro/tests/derive_props/fail.stderr index 7f9b6ecae29..48ffd3bd627 100644 --- a/yew-macro/tests/derive_props/fail.stderr +++ b/yew-macro/tests/derive_props/fail.stderr @@ -30,6 +30,7 @@ error[E0277]: the trait bound `t1::Value: std::default::Default` is not satisfie | ^^^^^^^^^^ the trait `std::default::Default` is not implemented for `t1::Value` | = note: required by `std::default::Default::default` + = note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info) error[E0599]: no method named `build` found for struct `t3::PropsBuilder` in the current scope --> $DIR/fail.rs:35:26 @@ -68,11 +69,13 @@ error[E0618]: expected function, found `{integer}` 77 | #[prop_or_else(123)] | ^^^ call expression requires function -error[E0061]: this function takes 1 parameter but 0 parameters were supplied +error[E0061]: this function takes 1 argument but 0 arguments were supplied --> $DIR/fail.rs:97:24 | 97 | #[prop_or_else(foo)] - | ^^^ expected 1 parameter + | ^^^- supplied 0 arguments + | | + | expected 1 argument ... 101 | fn foo(bar: i32) -> String { | -------------------------- defined here diff --git a/yew-macro/tests/derive_props_test.rs b/yew-macro/tests/derive_props_test.rs index 3af86c866dd..507c1882eac 100644 --- a/yew-macro/tests/derive_props_test.rs +++ b/yew-macro/tests/derive_props_test.rs @@ -1,5 +1,5 @@ #[allow(dead_code)] -#[rustversion::attr(stable(1.42), test)] +#[rustversion::attr(stable(1.43), test)] fn tests() { let t = trybuild::TestCases::new(); t.pass("tests/derive_props/pass.rs"); diff --git a/yew-macro/tests/macro/html-block-fail.stderr b/yew-macro/tests/macro/html-block-fail.stderr index 71aebfff923..c5d845d6b38 100644 --- a/yew-macro/tests/macro/html-block-fail.stderr +++ b/yew-macro/tests/macro/html-block-fail.stderr @@ -9,6 +9,7 @@ error[E0277]: `()` doesn't implement `std::fmt::Display` = note: required because of the requirements on the impl of `std::string::ToString` for `()` = note: required because of the requirements on the impl of `std::convert::From<()>` for `yew::virtual_dom::vnode::VNode` = note: required by `std::convert::From::from` + = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) error[E0277]: `()` doesn't implement `std::fmt::Display` --> $DIR/html-block-fail.rs:12:16 @@ -21,6 +22,7 @@ error[E0277]: `()` doesn't implement `std::fmt::Display` = note: required because of the requirements on the impl of `std::string::ToString` for `()` = note: required because of the requirements on the impl of `std::convert::From<()>` for `yew::virtual_dom::vnode::VNode` = note: required by `std::convert::From::from` + = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) error[E0277]: `()` doesn't implement `std::fmt::Display` --> $DIR/html-block-fail.rs:15:17 @@ -33,3 +35,4 @@ error[E0277]: `()` doesn't implement `std::fmt::Display` = note: required because of the requirements on the impl of `std::string::ToString` for `()` = note: required because of the requirements on the impl of `std::convert::From<()>` for `yew::virtual_dom::vnode::VNode` = note: required because of the requirements on the impl of `std::convert::Into` for `()` + = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) diff --git a/yew-macro/tests/macro/html-component-fail-unimplemented.stderr b/yew-macro/tests/macro/html-component-fail-unimplemented.stderr index a9187d96e00..f282af3ee95 100644 --- a/yew-macro/tests/macro/html-component-fail-unimplemented.stderr +++ b/yew-macro/tests/macro/html-component-fail-unimplemented.stderr @@ -1,12 +1,12 @@ error[E0599]: no function or associated item named `new` found for struct `yew::virtual_dom::vcomp::VChild` in the current scope - --> $DIR/html-component-fail-unimplemented.rs:6:5 - | -6 | html! { }; - | ^^^^^^^^^^^^^^^^^^^^^ function or associated item not found in `yew::virtual_dom::vcomp::VChild` - | - = note: the method `new` exists but the following trait bounds were not satisfied: - `std::string::String : yew::html::Component` - = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) + --> $DIR/html-component-fail-unimplemented.rs:6:5 + | +6 | html! { }; + | ^^^^^^^^^^^^^^^^^^^^^ function or associated item not found in `yew::virtual_dom::vcomp::VChild` + | + = note: the method `new` exists but the following trait bounds were not satisfied: + `std::string::String: yew::html::Component` + = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) error[E0277]: the trait bound `std::string::String: yew::html::Component` is not satisfied --> $DIR/html-component-fail-unimplemented.rs:6:5 @@ -14,4 +14,4 @@ error[E0277]: the trait bound `std::string::String: yew::html::Component` is not 6 | html! { }; | ^^^^^^^^^^^^^^^^^^^^^ the trait `yew::html::Component` is not implemented for `std::string::String` | - = 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) diff --git a/yew-macro/tests/macro/html-component-fail.stderr b/yew-macro/tests/macro/html-component-fail.stderr index d16126cc9f2..12744668add 100644 --- a/yew-macro/tests/macro/html-component-fail.stderr +++ b/yew-macro/tests/macro/html-component-fail.stderr @@ -3,12 +3,16 @@ error: this open tag has no corresponding close tag | 79 | html! { }; | ^^^^^^^ + | + = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) error: expected identifier --> $DIR/html-component-fail.rs:80:22 | 80 | html! { }; | ^ + | + = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) error: unexpected end of input, expected identifier --> $DIR/html-component-fail.rs:81:5 @@ -16,91 +20,119 @@ error: unexpected end of input, expected identifier 81 | html! { }; | ^^^^^^^^^^^^^^^^^^^^^^^^^ | - = 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: unexpected token --> $DIR/html-component-fail.rs:82:20 | 82 | html! { }; | ^^^^^ + | + = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) error: this open tag has no corresponding close tag --> $DIR/html-component-fail.rs:83:13 | 83 | html! { }; | ^^^^^^^^^^^^^^^^^^^ + | + = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) error: too many refs set --> $DIR/html-component-fail.rs:84:38 | 84 | html! { }; | ^^^ + | + = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) error: too many refs set --> $DIR/html-component-fail.rs:85:38 | 85 | html! { }; | ^^^ + | + = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) error: Using special syntax `with props` along with named prop is not allowed. This rule does not apply to special `ref` prop --> $DIR/html-component-fail.rs:86:38 | 86 | html! { }; | ^^^^^ + | + = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) error: Using special syntax `with props` along with named prop is not allowed. This rule does not apply to special `ref` prop --> $DIR/html-component-fail.rs:87:31 | 87 | html! { }; | ^^^^^ + | + = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) error: Using special syntax `with props` along with named prop is not allowed. This rule does not apply to special `ref` prop --> $DIR/html-component-fail.rs:88:28 | 88 | html! { }; | ^^^^ + | + = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) error: Using special syntax `with props` along with named prop is not allowed. This rule does not apply to special `ref` prop --> $DIR/html-component-fail.rs:89:35 | 89 | html! { }; | ^^^^ + | + = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) error: too many refs set --> $DIR/html-component-fail.rs:90:27 | 90 | html! { }; | ^^^ + | + = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) error: unexpected token --> $DIR/html-component-fail.rs:92:31 | 92 | html! { }; | ^^ + | + = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) error: Using special syntax `with props` along with named prop is not allowed. This rule does not apply to special `ref` prop --> $DIR/html-component-fail.rs:93:28 | 93 | html! { }; | ^^^^ + | + = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) error: Using special syntax `with props` along with named prop is not allowed. This rule does not apply to special `ref` prop --> $DIR/html-component-fail.rs:94:31 | 94 | html! { }; | ^^^^^ + | + = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) error: expected identifier --> $DIR/html-component-fail.rs:95:20 | 95 | html! { }; | ^^^^ + | + = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) error: expected identifier --> $DIR/html-component-fail.rs:96:20 | 96 | html! { }; | ^^^^^^^^^^^^^^^^^ + | + = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) error: unexpected end of input, expected expression --> $DIR/html-component-fail.rs:98:5 @@ -108,49 +140,63 @@ error: unexpected end of input, expected expression 98 | html! { }; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | - = 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: too many refs set --> $DIR/html-component-fail.rs:103:33 | 103 | html! { }; | ^^^ + | + = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) error: this close tag has no corresponding open tag --> $DIR/html-component-fail.rs:106:13 | 106 | html! { }; | ^^^^^^^^ + | + = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) error: this open tag has no corresponding close tag --> $DIR/html-component-fail.rs:107:13 | 107 | html! { }; | ^^^^^^^ + | + = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) error: only one root html element allowed --> $DIR/html-component-fail.rs:108:28 | 108 | html! { }; | ^^^^^^^^^^^^^^^ + | + = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) error: this close tag has no corresponding open tag --> $DIR/html-component-fail.rs:117:30 | 117 | html! { > }; | ^^^^^^^^^^ + | + = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) error: this close tag has no corresponding open tag --> $DIR/html-component-fail.rs:118:30 | 118 | html! { >>> }; | ^^^^^^^^^^^^^^^^^^^^^^^ + | + = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) error[E0425]: cannot find value `blah` in this scope --> $DIR/html-component-fail.rs:91:25 | 91 | html! { }; | ^^^^ not found in this scope + | + = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) error[E0609]: no field `unknown` on type `ChildProperties` --> $DIR/html-component-fail.rs:97:20 @@ -159,6 +205,7 @@ error[E0609]: no field `unknown` on type `ChildProperties` | ^^^^^^^ unknown field | = note: available fields are: `string`, `int` + = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) error[E0599]: no method named `unknown` found for struct `ChildPropertiesBuilder` in the current scope --> $DIR/html-component-fail.rs:97:20 @@ -168,6 +215,8 @@ error[E0599]: no method named `unknown` found for struct `ChildPropertiesBuilder ... 97 | html! { }; | ^^^^^^^ method not found in `ChildPropertiesBuilder` + | + = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) error[E0277]: the trait bound `yew::virtual_dom::vcomp::VComp: yew::virtual_dom::Transformer<(), std::string::String>` is not satisfied --> $DIR/html-component-fail.rs:99:33 @@ -182,6 +231,7 @@ error[E0277]: the trait bound `yew::virtual_dom::vcomp::VComp: yew::virtual_dom: > and 3 others = note: required by `yew::virtual_dom::Transformer::transform` + = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) error[E0277]: the trait bound `yew::virtual_dom::vcomp::VComp: yew::virtual_dom::Transformer<{integer}, std::string::String>` is not satisfied --> $DIR/html-component-fail.rs:100:33 @@ -196,6 +246,7 @@ error[E0277]: the trait bound `yew::virtual_dom::vcomp::VComp: yew::virtual_dom: > and 3 others = note: required by `yew::virtual_dom::Transformer::transform` + = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) error[E0277]: the trait bound `yew::virtual_dom::vcomp::VComp: yew::virtual_dom::Transformer<{integer}, std::string::String>` is not satisfied --> $DIR/html-component-fail.rs:101:33 @@ -210,12 +261,15 @@ error[E0277]: the trait bound `yew::virtual_dom::vcomp::VComp: yew::virtual_dom: > and 3 others = note: required by `yew::virtual_dom::Transformer::transform` + = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) error[E0308]: mismatched types --> $DIR/html-component-fail.rs:102:30 | 102 | html! { }; | ^^ expected struct `yew::html::NodeRef`, found `()` + | + = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) error[E0277]: the trait bound `yew::virtual_dom::vcomp::VComp: yew::virtual_dom::Transformer` is not satisfied --> $DIR/html-component-fail.rs:104:24 @@ -230,6 +284,7 @@ error[E0277]: the trait bound `yew::virtual_dom::vcomp::VComp: yew::virtual_dom: > and 3 others = note: required by `yew::virtual_dom::Transformer::transform` + = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) error[E0599]: no method named `string` found for struct `ChildPropertiesBuilder` in the current scope --> $DIR/html-component-fail.rs:105:20 @@ -243,6 +298,7 @@ error[E0599]: no method named `string` found for struct `ChildPropertiesBuilder< = help: items from traits can only be used if the trait is implemented and in scope = note: the following trait defines an item `string`, perhaps you need to implement it: candidate #1: `proc_macro::bridge::server::Literal` + = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) error[E0599]: no method named `children` found for struct `ChildPropertiesBuilder` in the current scope --> $DIR/html-component-fail.rs:109:5 @@ -253,7 +309,7 @@ error[E0599]: no method named `children` found for struct `ChildPropertiesBuilde 109 | html! { { "Not allowed" } }; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ method not found in `ChildPropertiesBuilder` | - = 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[E0599]: no method named `build` found for struct `ChildContainerPropertiesBuilder` in the current scope --> $DIR/html-component-fail.rs:111:5 @@ -267,7 +323,7 @@ error[E0599]: no method named `build` found for struct `ChildContainerProperties = help: items from traits can only be used if the trait is implemented and in scope = note: the following trait defines an item `build`, perhaps you need to implement it: candidate #1: `proc_macro::bridge::server::TokenStreamBuilder` - = 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[E0599]: no method named `build` found for struct `ChildContainerPropertiesBuilder` in the current scope --> $DIR/html-component-fail.rs:112:5 @@ -281,7 +337,7 @@ error[E0599]: no method named `build` found for struct `ChildContainerProperties = help: items from traits can only be used if the trait is implemented and in scope = note: the following trait defines an item `build`, perhaps you need to implement it: candidate #1: `proc_macro::bridge::server::TokenStreamBuilder` - = 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[E0277]: the trait bound `yew::virtual_dom::vcomp::VChild: std::convert::From<&str>` is not satisfied --> $DIR/html-component-fail.rs:113:5 @@ -291,7 +347,7 @@ error[E0277]: the trait bound `yew::virtual_dom::vcomp::VChild: std::conv | = note: required because of the requirements on the impl of `std::convert::Into>` for `&str` = note: required because of the requirements on the impl of `std::iter::IntoIterator` for `yew::utils::NodeSeq<&str, yew::virtual_dom::vcomp::VChild>` - = 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[E0277]: the trait bound `yew::virtual_dom::vcomp::VChild: std::convert::From` is not satisfied --> $DIR/html-component-fail.rs:114:5 @@ -301,7 +357,7 @@ error[E0277]: the trait bound `yew::virtual_dom::vcomp::VChild: std::conv | = note: required because of the requirements on the impl of `std::convert::Into>` for `yew::virtual_dom::vnode::VNode` = note: required because of the requirements on the impl of `std::iter::IntoIterator` for `yew::utils::NodeSeq>` - = 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[E0277]: the trait bound `yew::virtual_dom::vcomp::VChild: std::convert::From` is not satisfied --> $DIR/html-component-fail.rs:115:5 @@ -311,4 +367,4 @@ error[E0277]: the trait bound `yew::virtual_dom::vcomp::VChild: std::conv | = note: required because of the requirements on the impl of `std::convert::Into>` for `yew::virtual_dom::vnode::VNode` = note: required because of the requirements on the impl of `std::iter::IntoIterator` for `yew::utils::NodeSeq>` - = 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) diff --git a/yew-macro/tests/macro/html-iterable-fail.stderr b/yew-macro/tests/macro/html-iterable-fail.stderr index 249a5a08a6b..ce71d45531c 100644 --- a/yew-macro/tests/macro/html-iterable-fail.stderr +++ b/yew-macro/tests/macro/html-iterable-fail.stderr @@ -3,6 +3,8 @@ error: expected expression after `for` | 4 | html! { for }; | ^^^ + | + = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) error[E0277]: `()` is not an iterator --> $DIR/html-iterable-fail.rs:5:17 @@ -12,6 +14,7 @@ error[E0277]: `()` is not an iterator | = help: the trait `std::iter::Iterator` is not implemented for `()` = note: required by `std::iter::IntoIterator::into_iter` + = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) error[E0277]: `()` is not an iterator --> $DIR/html-iterable-fail.rs:6:17 @@ -21,6 +24,7 @@ error[E0277]: `()` is not an iterator | = help: the trait `std::iter::Iterator` is not implemented for `()` = note: required by `std::iter::IntoIterator::into_iter` + = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) error[E0277]: `()` doesn't implement `std::fmt::Display` --> $DIR/html-iterable-fail.rs:7:17 @@ -33,6 +37,7 @@ error[E0277]: `()` doesn't implement `std::fmt::Display` = note: required because of the requirements on the impl of `std::string::ToString` for `()` = note: required because of the requirements on the impl of `std::convert::From<()>` for `yew::virtual_dom::vnode::VNode` = note: required because of the requirements on the impl of `std::convert::Into` for `()` + = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) error[E0277]: `()` doesn't implement `std::fmt::Display` --> $DIR/html-iterable-fail.rs:10:17 @@ -45,6 +50,7 @@ error[E0277]: `()` doesn't implement `std::fmt::Display` = note: required because of the requirements on the impl of `std::string::ToString` for `()` = note: required because of the requirements on the impl of `std::convert::From<()>` for `yew::virtual_dom::vnode::VNode` = note: required because of the requirements on the impl of `std::convert::Into` for `()` + = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) error[E0277]: `()` doesn't implement `std::fmt::Display` --> $DIR/html-iterable-fail.rs:13:17 @@ -58,3 +64,4 @@ error[E0277]: `()` doesn't implement `std::fmt::Display` = note: required because of the requirements on the impl of `std::string::ToString` for `&()` = note: required because of the requirements on the impl of `std::convert::From<&()>` for `yew::virtual_dom::vnode::VNode` = note: required because of the requirements on the impl of `std::convert::Into` for `&()` + = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) diff --git a/yew-macro/tests/macro/html-list-fail.stderr b/yew-macro/tests/macro/html-list-fail.stderr index e8a46d96b1f..a3fea8a6809 100644 --- a/yew-macro/tests/macro/html-list-fail.stderr +++ b/yew-macro/tests/macro/html-list-fail.stderr @@ -3,42 +3,56 @@ error: this open tag has no corresponding close tag | 4 | html! { <> }; | ^^ + | + = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) error: this close tag has no corresponding open tag --> $DIR/html-list-fail.rs:5:13 | 5 | html! { }; | ^^^ + | + = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) error: this open tag has no corresponding close tag --> $DIR/html-list-fail.rs:6:13 | 6 | html! { <><> }; | ^^ + | + = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) error: this close tag has no corresponding open tag --> $DIR/html-list-fail.rs:7:13 | 7 | html! { }; | ^^^ + | + = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) error: this open tag has no corresponding close tag --> $DIR/html-list-fail.rs:8:13 | 8 | html! { <><> }; | ^^ + | + = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) error: only one root html element allowed --> $DIR/html-list-fail.rs:9:18 | 9 | html! { <><> }; | ^^^^^ + | + = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) error: expected valid html element --> $DIR/html-list-fail.rs:10:15 | 10 | html! { <>invalid }; | ^^^^^^^ + | + = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) error: unexpected end of input, expected expression --> $DIR/html-list-fail.rs:11:5 @@ -46,10 +60,12 @@ error: unexpected end of input, expected expression 11 | html! { } | ^^^^^^^^^^^^^^^^^^ | - = 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: this open tag has no corresponding close tag --> $DIR/html-list-fail.rs:12:13 | 12 | html! { invalid} | ^^^^^^^^^^^^^^^^^^^^^^^ + | + = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) diff --git a/yew-macro/tests/macro/html-node-fail.stderr b/yew-macro/tests/macro/html-node-fail.stderr index 2d93d9da1bb..9446d747a0c 100644 --- a/yew-macro/tests/macro/html-node-fail.stderr +++ b/yew-macro/tests/macro/html-node-fail.stderr @@ -3,54 +3,72 @@ error: only one root html element allowed | 4 | html! { "valid" "invalid" }; | ^^^^^^^^^ + | + = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) error: unexpected token --> $DIR/html-node-fail.rs:5:29 | 5 | html! { { "valid" "invalid" } }; | ^^^^^^^^^ + | + = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) error: unsupported type --> $DIR/html-node-fail.rs:10:14 | 10 | html! { b'a' }; | ^^^^ + | + = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) error: unsupported type --> $DIR/html-node-fail.rs:11:14 | 11 | html! { b"str" }; | ^^^^^^ + | + = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) error: integer literal is too large --> $DIR/html-node-fail.rs:12:14 | 12 | html! { 1111111111111111111111111111111111111111111111111111111111111111111111111111 }; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) error: unsupported type --> $DIR/html-node-fail.rs:13:22 | 13 | html! { { b'a' } }; | ^^^^ + | + = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) error: unsupported type --> $DIR/html-node-fail.rs:14:22 | 14 | html! { { b"str" } }; | ^^^^^^ + | + = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) error: integer literal is too large --> $DIR/html-node-fail.rs:15:22 | 15 | html! { { 1111111111111111111111111111111111111111111111111111111111111111111111111111 } }; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) error[E0425]: cannot find value `invalid` in this scope --> $DIR/html-node-fail.rs:7:13 | 7 | html! { invalid }; | ^^^^^^^ not found in this scope + | + = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) error[E0277]: `()` doesn't implement `std::fmt::Display` --> $DIR/html-node-fail.rs:6:13 @@ -63,6 +81,7 @@ error[E0277]: `()` doesn't implement `std::fmt::Display` = note: required because of the requirements on the impl of `std::string::ToString` for `()` = note: required because of the requirements on the impl of `std::convert::From<()>` for `yew::virtual_dom::vnode::VNode` = note: required by `std::convert::From::from` + = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) error[E0277]: `()` doesn't implement `std::fmt::Display` --> $DIR/html-node-fail.rs:19:9 @@ -75,3 +94,4 @@ error[E0277]: `()` doesn't implement `std::fmt::Display` = note: required because of the requirements on the impl of `std::string::ToString` for `()` = note: required because of the requirements on the impl of `std::convert::From<()>` for `yew::virtual_dom::vnode::VNode` = note: required by `std::convert::From::from` + = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) diff --git a/yew-macro/tests/macro/html-tag-fail.stderr b/yew-macro/tests/macro/html-tag-fail.stderr index a27cb4c006a..1571cb83e14 100644 --- a/yew-macro/tests/macro/html-tag-fail.stderr +++ b/yew-macro/tests/macro/html-tag-fail.stderr @@ -3,126 +3,168 @@ error: this open tag has no corresponding close tag | 6 | html! {
}; | ^^^^^ + | + = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) error: this open tag has no corresponding close tag --> $DIR/html-tag-fail.rs:7:18 | 7 | html! {
}; | ^^^^^ + | + = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) error: this close tag has no corresponding open tag --> $DIR/html-tag-fail.rs:8:13 | 8 | html! {
}; | ^^^^^^ + | + = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) error: this open tag has no corresponding close tag --> $DIR/html-tag-fail.rs:9:13 | 9 | html! {
}; | ^^^^^ + | + = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) error: only one root html element allowed --> $DIR/html-tag-fail.rs:10:24 | 10 | html! {
}; | ^^^^^^^^^^^ + | + = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) error: this close tag has no corresponding open tag --> $DIR/html-tag-fail.rs:11:18 | 11 | html! {
}; | ^^^^^^^ + | + = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) error: this close tag has no corresponding open tag --> $DIR/html-tag-fail.rs:12:20 | 12 | html! { }; | ^^^^^^^^ + | + = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) error: this close tag has no corresponding open tag --> $DIR/html-tag-fail.rs:13:18 | 13 | html! {
}; | ^^^^^^^ + | + = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) error: only one root html element allowed --> $DIR/html-tag-fail.rs:14:20 | 14 | html! { }; | ^^^^^^ + | + = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) error: expected valid html element --> $DIR/html-tag-fail.rs:15:18 | 15 | html! {
Invalid
}; | ^^^^^^^ + | + = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) error: only one `attr` attribute allowed --> $DIR/html-tag-fail.rs:17:27 | 17 | html! { }; | ^^^^ + | + = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) error: only one `value` attribute allowed --> $DIR/html-tag-fail.rs:18:32 | 18 | html! { }; | ^^^^^ + | + = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) error: only one `kind` attribute allowed --> $DIR/html-tag-fail.rs:19:36 | 19 | html! { }; | ^^^^ + | + = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) error: only one `checked` attribute allowed --> $DIR/html-tag-fail.rs:20:33 | 20 | html! { }; | ^^^^^^^ + | + = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) error: only one `disabled` attribute allowed --> $DIR/html-tag-fail.rs:21:34 | 21 | html! { }; | ^^^^^^^^ + | + = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) error: only one `selected` attribute allowed --> $DIR/html-tag-fail.rs:22:35 | 22 | html! {