From 1728de7dcd44b037de1d44321dc14f562f7f88dd Mon Sep 17 00:00:00 2001 From: Stephen Chung Date: Thu, 15 Jun 2023 11:06:14 +0800 Subject: [PATCH] Fix tests output. --- codegen/ui_tests/non_clonable.stderr | 3 ++- codegen/ui_tests/non_clonable_second.stderr | 3 ++- codegen/ui_tests/rhai_fn_non_clonable_return.stderr | 3 ++- codegen/ui_tests/rhai_mod_non_clonable_return.stderr | 3 ++- codegen/ui_tests/rhai_mod_unknown_type.stderr | 6 +++--- 5 files changed, 11 insertions(+), 7 deletions(-) diff --git a/codegen/ui_tests/non_clonable.stderr b/codegen/ui_tests/non_clonable.stderr index a8a642fb7..0c526578e 100644 --- a/codegen/ui_tests/non_clonable.stderr +++ b/codegen/ui_tests/non_clonable.stderr @@ -11,5 +11,6 @@ note: required by a bound in `rhai::Dynamic::cast` | ^^^^^ required by this bound in `Dynamic::cast` help: consider annotating `NonClonable` with `#[derive(Clone)]` | -3 | #[derive(Clone)] +3 + #[derive(Clone)] +4 | struct NonClonable { | diff --git a/codegen/ui_tests/non_clonable_second.stderr b/codegen/ui_tests/non_clonable_second.stderr index f764e8a85..5948b9244 100644 --- a/codegen/ui_tests/non_clonable_second.stderr +++ b/codegen/ui_tests/non_clonable_second.stderr @@ -11,5 +11,6 @@ note: required by a bound in `rhai::Dynamic::cast` | ^^^^^ required by this bound in `Dynamic::cast` help: consider annotating `NonClonable` with `#[derive(Clone)]` | -3 | #[derive(Clone)] +3 + #[derive(Clone)] +4 | struct NonClonable { | diff --git a/codegen/ui_tests/rhai_fn_non_clonable_return.stderr b/codegen/ui_tests/rhai_fn_non_clonable_return.stderr index e4a8897ee..48184f5af 100644 --- a/codegen/ui_tests/rhai_fn_non_clonable_return.stderr +++ b/codegen/ui_tests/rhai_fn_non_clonable_return.stderr @@ -14,5 +14,6 @@ note: required by a bound in `rhai::Dynamic::from` = note: this error originates in the attribute macro `export_fn` (in Nightly builds, run with -Z macro-backtrace for more info) help: consider annotating `NonClonable` with `#[derive(Clone)]` | -3 | #[derive(Clone)] +3 + #[derive(Clone)] +4 | struct NonClonable { | diff --git a/codegen/ui_tests/rhai_mod_non_clonable_return.stderr b/codegen/ui_tests/rhai_mod_non_clonable_return.stderr index 185d1678d..97e0c117c 100644 --- a/codegen/ui_tests/rhai_mod_non_clonable_return.stderr +++ b/codegen/ui_tests/rhai_mod_non_clonable_return.stderr @@ -15,5 +15,6 @@ note: required by a bound in `rhai::Dynamic::from` = note: this error originates in the attribute macro `export_module` (in Nightly builds, run with -Z macro-backtrace for more info) help: consider annotating `NonClonable` with `#[derive(Clone)]` | -3 | #[derive(Clone)] +3 + #[derive(Clone)] +4 | struct NonClonable { | diff --git a/codegen/ui_tests/rhai_mod_unknown_type.stderr b/codegen/ui_tests/rhai_mod_unknown_type.stderr index 2cc0103fb..f6b0ec8ae 100644 --- a/codegen/ui_tests/rhai_mod_unknown_type.stderr +++ b/codegen/ui_tests/rhai_mod_unknown_type.stderr @@ -13,9 +13,9 @@ help: a struct with a similar name exists | ~~~~~ help: consider importing one of these items | -11 | use core::fmt::Pointer; +11 + use core::fmt::Pointer; | -11 | use std::fmt::Pointer; +11 + use std::fmt::Pointer; | -11 | use syn::__private::fmt::Pointer; +11 + use syn::__private::fmt::Pointer; |