Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to Rust v1.43.0 #1123

Merged
merged 1 commit into from Apr 24, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug_report.md
Expand Up @@ -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]
Expand Down
7 changes: 5 additions & 2 deletions yew-macro/tests/derive_props/fail.stderr
Expand Up @@ -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<t3::PropsBuilderStep_missing_required_prop_value>` in the current scope
--> $DIR/fail.rs:35:26
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion 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");
Expand Down
3 changes: 3 additions & 0 deletions yew-macro/tests/macro/html-block-fail.stderr
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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<yew::virtual_dom::vnode::VNode>` for `()`
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
18 changes: 9 additions & 9 deletions yew-macro/tests/macro/html-component-fail-unimplemented.stderr
@@ -1,17 +1,17 @@
error[E0599]: no function or associated item named `new` found for struct `yew::virtual_dom::vcomp::VChild<std::string::String>` in the current scope
--> $DIR/html-component-fail-unimplemented.rs:6:5
|
6 | html! { <String /> };
| ^^^^^^^^^^^^^^^^^^^^^ function or associated item not found in `yew::virtual_dom::vcomp::VChild<std::string::String>`
|
= 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! { <String /> };
| ^^^^^^^^^^^^^^^^^^^^^ function or associated item not found in `yew::virtual_dom::vcomp::VChild<std::string::String>`
|
= 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
|
6 | html! { <String /> };
| ^^^^^^^^^^^^^^^^^^^^^ 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)