From e66adaa60f44b7c426d2256f2e5f4ac51910d469 Mon Sep 17 00:00:00 2001 From: J Henry Waugh Date: Thu, 27 Aug 2020 23:33:42 -0500 Subject: [PATCH] Revert diagnostic tests which trigger trybuild path bug --- .../ui_tests/rhai_fn_non_clonable_return.rs | 27 ----------------- .../rhai_fn_non_clonable_return.stderr | 10 ------- .../ui_tests/rhai_mod_non_clonable_return.rs | 29 ------------------- .../rhai_mod_non_clonable_return.stderr | 10 ------- 4 files changed, 76 deletions(-) delete mode 100644 codegen/ui_tests/rhai_fn_non_clonable_return.rs delete mode 100644 codegen/ui_tests/rhai_fn_non_clonable_return.stderr delete mode 100644 codegen/ui_tests/rhai_mod_non_clonable_return.rs delete mode 100644 codegen/ui_tests/rhai_mod_non_clonable_return.stderr diff --git a/codegen/ui_tests/rhai_fn_non_clonable_return.rs b/codegen/ui_tests/rhai_fn_non_clonable_return.rs deleted file mode 100644 index e2e2d788..00000000 --- a/codegen/ui_tests/rhai_fn_non_clonable_return.rs +++ /dev/null @@ -1,27 +0,0 @@ -use rhai::plugin::*; - -struct NonClonable { - a: f32, - b: u32, - c: char, - d: bool, -} - -#[export_fn] -pub fn test_fn(input: f32) -> NonClonable { - NonClonable { - a: input, - b: 10, - c: 'a', - d: true, - } -} - -fn main() { - let n = test_fn(20.0); - if n.c == 'a' { - println!("yes"); - } else { - println!("no"); - } -} diff --git a/codegen/ui_tests/rhai_fn_non_clonable_return.stderr b/codegen/ui_tests/rhai_fn_non_clonable_return.stderr deleted file mode 100644 index 6184fd24..00000000 --- a/codegen/ui_tests/rhai_fn_non_clonable_return.stderr +++ /dev/null @@ -1,10 +0,0 @@ -error[E0277]: the trait bound `NonClonable: std::clone::Clone` is not satisfied - --> $DIR/rhai_fn_non_clonable_return.rs:11:8 - | -11 | pub fn test_fn(input: f32) -> NonClonable { - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `std::clone::Clone` is not implemented for `NonClonable` - | - ::: /home/cryptkeeper/Desktop/Software/ytdl-replacement/rhai/src/any.rs:537:30 - | -537 | pub fn from(value: T) -> Self { - | ----- required by this bound in `rhai::Dynamic::from` diff --git a/codegen/ui_tests/rhai_mod_non_clonable_return.rs b/codegen/ui_tests/rhai_mod_non_clonable_return.rs deleted file mode 100644 index fe8f5fff..00000000 --- a/codegen/ui_tests/rhai_mod_non_clonable_return.rs +++ /dev/null @@ -1,29 +0,0 @@ -use rhai::plugin::*; - -struct NonClonable { - a: f32, - b: u32, - c: char, - d: bool, -} - -#[export_module] -pub mod test_mod { - pub fn test_fn(input: f32) -> NonClonable { - NonClonable { - a: input, - b: 10, - c: 'a', - d: true, - } - } -} - -fn main() { - let n = test_mod::test_fn(20.0); - if n.c == 'a' { - println!("yes"); - } else { - println!("no"); - } -} diff --git a/codegen/ui_tests/rhai_mod_non_clonable_return.stderr b/codegen/ui_tests/rhai_mod_non_clonable_return.stderr deleted file mode 100644 index db880026..00000000 --- a/codegen/ui_tests/rhai_mod_non_clonable_return.stderr +++ /dev/null @@ -1,10 +0,0 @@ -error[E0277]: the trait bound `NonClonable: std::clone::Clone` is not satisfied - --> $DIR/rhai_mod_non_clonable_return.rs:12:12 - | -12 | pub fn test_fn(input: f32) -> NonClonable { - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `std::clone::Clone` is not implemented for `NonClonable` - | - ::: /home/cryptkeeper/Desktop/Software/ytdl-replacement/rhai/src/any.rs:537:30 - | -537 | pub fn from(value: T) -> Self { - | ----- required by this bound in `rhai::Dynamic::from`