From 33d1006d28dfe71e66fc48c1c0d9ece92605aa77 Mon Sep 17 00:00:00 2001 From: Stephen Chung Date: Sat, 21 Aug 2021 11:51:45 +0800 Subject: [PATCH] Fix test output. --- .github/workflows/build.yml | 1 + codegen/ui_tests/rhai_fn_non_clonable_return.stderr | 7 ++++--- codegen/ui_tests/rhai_mod_non_clonable_return.stderr | 7 ++++--- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 01204a70..8e97e90a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -4,6 +4,7 @@ on: push: branches: - master + - bug-fixes pull_request: {} jobs: diff --git a/codegen/ui_tests/rhai_fn_non_clonable_return.stderr b/codegen/ui_tests/rhai_fn_non_clonable_return.stderr index 28d43e99..f5a3d29c 100644 --- a/codegen/ui_tests/rhai_fn_non_clonable_return.stderr +++ b/codegen/ui_tests/rhai_fn_non_clonable_return.stderr @@ -4,7 +4,8 @@ error[E0277]: the trait bound `NonClonable: Clone` is not satisfied 11 | pub fn test_fn(input: f32) -> NonClonable { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Clone` is not implemented for `NonClonable` | - ::: $WORKSPACE/src/dynamic.rs +note: required by a bound in `rhai::Dynamic::from` + --> $DIR/dynamic.rs:1127:30 | - | pub fn from(mut value: T) -> Self { - | ----- required by this bound in `rhai::Dynamic::from` +1127 | pub fn from(mut value: T) -> Self { + | ^^^^^ required by this bound in `rhai::Dynamic::from` diff --git a/codegen/ui_tests/rhai_mod_non_clonable_return.stderr b/codegen/ui_tests/rhai_mod_non_clonable_return.stderr index 73ba7569..17e1ae0e 100644 --- a/codegen/ui_tests/rhai_mod_non_clonable_return.stderr +++ b/codegen/ui_tests/rhai_mod_non_clonable_return.stderr @@ -4,7 +4,8 @@ error[E0277]: the trait bound `NonClonable: Clone` is not satisfied 12 | pub fn test_fn(input: f32) -> NonClonable { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Clone` is not implemented for `NonClonable` | - ::: $WORKSPACE/src/dynamic.rs +note: required by a bound in `rhai::Dynamic::from` + --> $DIR/dynamic.rs:1127:30 | - | pub fn from(mut value: T) -> Self { - | ----- required by this bound in `rhai::Dynamic::from` +1127 | pub fn from(mut value: T) -> Self { + | ^^^^^ required by this bound in `rhai::Dynamic::from`