From e07c53eafe45bd997240432d2b607a31f85b9a83 Mon Sep 17 00:00:00 2001 From: Alex Orlenko Date: Mon, 27 Jul 2020 13:51:21 +0100 Subject: [PATCH] Update compile tests (2) --- tests/compile/lua_norefunwindsafe.stderr | 5 ----- tests/compile/ref_nounwindsafe.stderr | 5 ----- 2 files changed, 10 deletions(-) diff --git a/tests/compile/lua_norefunwindsafe.stderr b/tests/compile/lua_norefunwindsafe.stderr index 0d69ba5..6dff810 100644 --- a/tests/compile/lua_norefunwindsafe.stderr +++ b/tests/compile/lua_norefunwindsafe.stderr @@ -4,11 +4,6 @@ error[E0277]: the type `std::cell::UnsafeCell<()>` may contain interior mutabili 7 | catch_unwind(|| lua.create_table().unwrap()); | ^^^^^^^^^^^^ `std::cell::UnsafeCell<()>` may contain interior mutability and a reference may not be safely transferrable across a catch_unwind boundary | - ::: $RUST/src/libstd/panic.rs:393:40 - | -393 | pub fn catch_unwind R + UnwindSafe, R>(f: F) -> Result { - | ---------- required by this bound in `std::panic::catch_unwind` - | = help: within `mlua::lua::Lua`, the trait `std::panic::RefUnwindSafe` is not implemented for `std::cell::UnsafeCell<()>` = note: required because it appears within the type `std::marker::PhantomData>` = note: required because it appears within the type `mlua::lua::Lua` diff --git a/tests/compile/ref_nounwindsafe.stderr b/tests/compile/ref_nounwindsafe.stderr index 5134aac..0b1b649 100644 --- a/tests/compile/ref_nounwindsafe.stderr +++ b/tests/compile/ref_nounwindsafe.stderr @@ -4,11 +4,6 @@ error[E0277]: the type `std::cell::UnsafeCell<()>` may contain interior mutabili 8 | catch_unwind(move || table.set("a", "b").unwrap()); | ^^^^^^^^^^^^ `std::cell::UnsafeCell<()>` may contain interior mutability and a reference may not be safely transferrable across a catch_unwind boundary | - ::: $RUST/src/libstd/panic.rs:393:40 - | -393 | pub fn catch_unwind R + UnwindSafe, R>(f: F) -> Result { - | ---------- required by this bound in `std::panic::catch_unwind` - | = help: within `mlua::lua::Lua`, the trait `std::panic::RefUnwindSafe` is not implemented for `std::cell::UnsafeCell<()>` = note: required because it appears within the type `std::marker::PhantomData>` = note: required because it appears within the type `mlua::lua::Lua`