diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md index 0b9ab3afb68..15df23446cc 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.40.0] + - Rust version [e.g. 1.41.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/tests/derive_props/fail.stderr b/tests/derive_props/fail.stderr index 69173dc50d9..97569e3d98c 100644 --- a/tests/derive_props/fail.stderr +++ b/tests/derive_props/fail.stderr @@ -47,7 +47,7 @@ error[E0599]: no method named `build` found for type `t3::PropsBuilder $DIR/fail.rs:35:26 | 28 | #[derive(Clone, Properties)] - | - method `build` not found for this + | ---------- method `build` not found for this ... 35 | Props::builder().build(); | ^^^^^ method not found in `t3::PropsBuilder` @@ -56,7 +56,7 @@ error[E0599]: no method named `b` found for type `t4::PropsBuilder $DIR/fail.rs:49:26 | 41 | #[derive(Clone, Properties)] - | - method `b` not found for this + | ---------- method `b` not found for this ... 49 | Props::builder().b(1).a(2).build(); | ^ help: there is a method with a similar name: `a` @@ -76,9 +76,7 @@ error[E0308]: match arms have incompatible types 112 | #[props(default = "foo")] | ^^^^^ | | - | expected struct `std::string::String`, found i32 + | expected struct `std::string::String`, found `i32` | `match` arms have incompatible types | this is found to be of type `std::string::String` - | - = note: expected type `std::string::String` - found type `i32` + | help: try using a conversion method: `"foo".to_string()` diff --git a/tests/derive_props_test.rs b/tests/derive_props_test.rs index 82774383256..897d62412c5 100644 --- a/tests/derive_props_test.rs +++ b/tests/derive_props_test.rs @@ -1,5 +1,5 @@ #[allow(dead_code)] -#[rustversion::attr(stable(1.40.0), cfg_attr(not(feature = "web_test"), test))] +#[rustversion::attr(stable(1.41.0), cfg_attr(not(feature = "web_test"), test))] fn tests() { let t = trybuild::TestCases::new(); t.pass("tests/derive_props/pass.rs"); diff --git a/tests/macro/html-component-fail.stderr b/tests/macro/html-component-fail.stderr index 24fcb2989c8..49d6cc305ef 100644 --- a/tests/macro/html-component-fail.stderr +++ b/tests/macro/html-component-fail.stderr @@ -122,7 +122,7 @@ error[E0599]: no method named `unknown` found for type `ChildPropertiesBuilder $DIR/html-component-fail.rs:64:20 | 6 | #[derive(Clone, Properties, PartialEq)] - | - method `unknown` not found for this + | ---------- method `unknown` not found for this ... 64 | html! { }; | ^^^^^^^ method not found in `ChildPropertiesBuilder` @@ -173,10 +173,7 @@ error[E0308]: mismatched types --> $DIR/html-component-fail.rs:69:30 | 69 | html! { }; - | ^^ expected struct `yew::html::NodeRef`, found () - | - = note: expected type `yew::html::NodeRef` - found type `()` + | ^^ expected struct `yew::html::NodeRef`, found `()` error[E0277]: the trait bound `yew::virtual_dom::vcomp::VComp: yew::virtual_dom::Transformer` is not satisfied --> $DIR/html-component-fail.rs:71:24 @@ -196,7 +193,7 @@ error[E0599]: no method named `string` found for type `ChildPropertiesBuilder $DIR/html-component-fail.rs:72:20 | 6 | #[derive(Clone, Properties, PartialEq)] - | - method `string` not found for this + | ---------- method `string` not found for this ... 72 | html! { }; | ^^^^^^ method not found in `ChildPropertiesBuilder` @@ -205,7 +202,7 @@ error[E0599]: no method named `children` found for type `ChildPropertiesBuilder< --> $DIR/html-component-fail.rs:76:5 | 6 | #[derive(Clone, Properties, PartialEq)] - | - method `children` not found for this + | ---------- method `children` not found for this ... 76 | html! { { "Not allowed" } }; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ method not found in `ChildPropertiesBuilder` @@ -216,7 +213,7 @@ error[E0599]: no method named `build` found for type `ChildContainerPropertiesBu --> $DIR/html-component-fail.rs:78:5 | 23 | #[derive(Clone, Properties)] - | - method `build` not found for this + | ---------- method `build` not found for this ... 78 | html! { }; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ method not found in `ChildContainerPropertiesBuilder` @@ -227,7 +224,7 @@ error[E0599]: no method named `build` found for type `ChildContainerPropertiesBu --> $DIR/html-component-fail.rs:79:5 | 23 | #[derive(Clone, Properties)] - | - method `build` not found for this + | ---------- method `build` not found for this ... 79 | html! { }; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ method not found in `ChildContainerPropertiesBuilder` diff --git a/tests/macro/html-tag-fail.stderr b/tests/macro/html-tag-fail.stderr index 9258e21f025..c736d40206e 100644 --- a/tests/macro/html-tag-fail.stderr +++ b/tests/macro/html-tag-fail.stderr @@ -110,28 +110,19 @@ error[E0308]: mismatched types --> $DIR/html-tag-fail.rs:25:28 | 25 | html! { }; - | ^ expected bool, found integer - | - = note: expected type `bool` - found type `{integer}` + | ^ expected `bool`, found integer error[E0308]: mismatched types --> $DIR/html-tag-fail.rs:26:29 | 26 | html! { }; - | ^ expected bool, found integer - | - = note: expected type `bool` - found type `{integer}` + | ^ expected `bool`, found integer error[E0308]: mismatched types --> $DIR/html-tag-fail.rs:27:30 | 27 | html! {