From 9bd6d6fa92c4dc53771e434845c43dc1ffe73e7d Mon Sep 17 00:00:00 2001 From: Alex Orlenko Date: Sun, 9 Feb 2020 22:09:42 +0000 Subject: Fix compile fail tests --- tests/compile_fail/lua_norefunwindsafe.stderr | 6 ++++-- tests/compile_fail/ref_nounwindsafe.stderr | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/tests/compile_fail/lua_norefunwindsafe.stderr b/tests/compile_fail/lua_norefunwindsafe.stderr index 8a1309f..1cf48ad 100644 --- a/tests/compile_fail/lua_norefunwindsafe.stderr +++ b/tests/compile_fail/lua_norefunwindsafe.stderr @@ -18,7 +18,8 @@ error[E0277]: the type `std::cell::UnsafeCell` may contain | = 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::cell::RefCell` - = note: required because it appears within the type `std::marker::PhantomData>` + = note: required because it appears within the type `alloc::sync::ArcInner>` + = note: required because it appears within the type `std::marker::PhantomData>>` = note: required because it appears within the type `std::sync::Arc>` = note: required because it appears within the type `mlua::lua::Lua` = note: required because of the requirements on the impl of `std::panic::UnwindSafe` for `&mlua::lua::Lua` @@ -33,7 +34,8 @@ error[E0277]: the type `std::cell::UnsafeCell` may contain interior mutab = 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::cell::Cell` = note: required because it appears within the type `std::cell::RefCell` - = note: required because it appears within the type `std::marker::PhantomData>` + = note: required because it appears within the type `alloc::sync::ArcInner>` + = note: required because it appears within the type `std::marker::PhantomData>>` = note: required because it appears within the type `std::sync::Arc>` = note: required because it appears within the type `mlua::lua::Lua` = note: required because of the requirements on the impl of `std::panic::UnwindSafe` for `&mlua::lua::Lua` diff --git a/tests/compile_fail/ref_nounwindsafe.stderr b/tests/compile_fail/ref_nounwindsafe.stderr index 644a2d8..46f8352 100644 --- a/tests/compile_fail/ref_nounwindsafe.stderr +++ b/tests/compile_fail/ref_nounwindsafe.stderr @@ -20,7 +20,8 @@ error[E0277]: the type `std::cell::UnsafeCell` may contain | = 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::cell::RefCell` - = note: required because it appears within the type `std::marker::PhantomData>` + = note: required because it appears within the type `alloc::sync::ArcInner>` + = note: required because it appears within the type `std::marker::PhantomData>>` = note: required because it appears within the type `std::sync::Arc>` = note: required because it appears within the type `mlua::lua::Lua` = note: required because of the requirements on the impl of `std::panic::UnwindSafe` for `&mlua::lua::Lua` @@ -37,7 +38,8 @@ error[E0277]: the type `std::cell::UnsafeCell` may contain interior mutab = 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::cell::Cell` = note: required because it appears within the type `std::cell::RefCell` - = note: required because it appears within the type `std::marker::PhantomData>` + = note: required because it appears within the type `alloc::sync::ArcInner>` + = note: required because it appears within the type `std::marker::PhantomData>>` = note: required because it appears within the type `std::sync::Arc>` = note: required because it appears within the type `mlua::lua::Lua` = note: required because of the requirements on the impl of `std::panic::UnwindSafe` for `&mlua::lua::Lua` -- cgit v1.2.3