From 93f5bbaf95b6b32fc9d68e2685c7fd14eaa2f753 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Thu, 19 Sep 2019 07:03:03 -0700 Subject: [PATCH] Update async-errors test for nightly --- crates/macro/ui-tests/async-errors.rs | 1 + crates/macro/ui-tests/async-errors.stderr | 16 ++++++++-------- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/crates/macro/ui-tests/async-errors.rs b/crates/macro/ui-tests/async-errors.rs index 5c0016ce5..22c5107e4 100644 --- a/crates/macro/ui-tests/async-errors.rs +++ b/crates/macro/ui-tests/async-errors.rs @@ -1,3 +1,4 @@ +#![allow(unreachable_code)] use wasm_bindgen::prelude::*; #[wasm_bindgen] diff --git a/crates/macro/ui-tests/async-errors.stderr b/crates/macro/ui-tests/async-errors.stderr index 708bc5693..02775ce37 100644 --- a/crates/macro/ui-tests/async-errors.stderr +++ b/crates/macro/ui-tests/async-errors.stderr @@ -1,7 +1,7 @@ error[E0277]: the trait bound `std::result::Result<(), ()>: wasm_bindgen::__rt::IntoJsResult` is not satisfied - --> $DIR/async-errors.rs:29:1 + --> $DIR/async-errors.rs:30:1 | -29 | #[wasm_bindgen] +30 | #[wasm_bindgen] | ^^^^^^^^^^^^^^^ the trait `wasm_bindgen::__rt::IntoJsResult` is not implemented for `std::result::Result<(), ()>` | = help: the following implementations were found: @@ -10,9 +10,9 @@ error[E0277]: the trait bound `std::result::Result<(), ()>: wasm_bindgen::__rt:: = note: required by `wasm_bindgen::__rt::IntoJsResult::into_js_result` error[E0277]: the trait bound `std::result::Result<(), BadType>: wasm_bindgen::__rt::IntoJsResult` is not satisfied - --> $DIR/async-errors.rs:31:1 + --> $DIR/async-errors.rs:32:1 | -31 | #[wasm_bindgen] +32 | #[wasm_bindgen] | ^^^^^^^^^^^^^^^ the trait `wasm_bindgen::__rt::IntoJsResult` is not implemented for `std::result::Result<(), BadType>` | = help: the following implementations were found: @@ -21,9 +21,9 @@ error[E0277]: the trait bound `std::result::Result<(), BadType>: wasm_bindgen::_ = note: required by `wasm_bindgen::__rt::IntoJsResult::into_js_result` error[E0277]: the trait bound `wasm_bindgen::JsValue: std::convert::From` is not satisfied - --> $DIR/async-errors.rs:33:1 + --> $DIR/async-errors.rs:34:1 | -33 | #[wasm_bindgen] +34 | #[wasm_bindgen] | ^^^^^^^^^^^^^^^ the trait `std::convert::From` is not implemented for `wasm_bindgen::JsValue` | = help: the following implementations were found: @@ -37,9 +37,9 @@ error[E0277]: the trait bound `wasm_bindgen::JsValue: std::convert::From: wasm_bindgen::__rt::IntoJsResult` is not satisfied - --> $DIR/async-errors.rs:35:1 + --> $DIR/async-errors.rs:36:1 | -35 | #[wasm_bindgen] +36 | #[wasm_bindgen] | ^^^^^^^^^^^^^^^ the trait `wasm_bindgen::__rt::IntoJsResult` is not implemented for `std::result::Result` | = help: the following implementations were found: