From 47e8a80c1cbc6b76a341029df5555aa098ce4816 Mon Sep 17 00:00:00 2001 From: Alex Orlenko Date: Fri, 17 Apr 2020 22:38:01 +0100 Subject: v0.3.0-alpha.1 with async support Squashed commit of the async branch. --- tests/compile_fail/lua_norefunwindsafe.stderr | 27 +++++++++++++++++++++------ 1 file changed, 21 insertions(+), 6 deletions(-) (limited to 'tests/compile_fail/lua_norefunwindsafe.stderr') diff --git a/tests/compile_fail/lua_norefunwindsafe.stderr b/tests/compile_fail/lua_norefunwindsafe.stderr index 1cf48ad..edd2803 100644 --- a/tests/compile_fail/lua_norefunwindsafe.stderr +++ b/tests/compile_fail/lua_norefunwindsafe.stderr @@ -10,6 +10,21 @@ error[E0277]: the type `std::cell::UnsafeCell<()>` may contain interior mutabili = note: required because of the requirements on the impl of `std::panic::UnwindSafe` for `&mlua::lua::Lua` = note: required because it appears within the type `[closure@$DIR/tests/compile_fail/lua_norefunwindsafe.rs:7:18: 7:48 lua:&mlua::lua::Lua]` +error[E0277]: the type `std::cell::UnsafeCell` may contain interior mutability and a reference may not be safely transferrable across a catch_unwind boundary + --> $DIR/lua_norefunwindsafe.rs:7:5 + | +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 + | + = 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::rc::RcBox>` + = note: required because it appears within the type `std::marker::PhantomData>>` + = note: required because it appears within the type `std::rc::Rc>` + = 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` + = note: required because it appears within the type `[closure@$DIR/tests/compile_fail/lua_norefunwindsafe.rs:7:18: 7:48 lua:&mlua::lua::Lua]` + error[E0277]: the type `std::cell::UnsafeCell` may contain interior mutability and a reference may not be safely transferrable across a catch_unwind boundary --> $DIR/lua_norefunwindsafe.rs:7:5 | @@ -18,9 +33,9 @@ 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 `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 `std::rc::RcBox>` + = note: required because it appears within the type `std::marker::PhantomData>>` + = note: required because it appears within the type `std::rc::Rc>` = 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` = note: required because it appears within the type `[closure@$DIR/tests/compile_fail/lua_norefunwindsafe.rs:7:18: 7:48 lua:&mlua::lua::Lua]` @@ -34,9 +49,9 @@ 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 `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 `std::rc::RcBox>` + = note: required because it appears within the type `std::marker::PhantomData>>` + = note: required because it appears within the type `std::rc::Rc>` = 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` = note: required because it appears within the type `[closure@$DIR/tests/compile_fail/lua_norefunwindsafe.rs:7:18: 7:48 lua:&mlua::lua::Lua]` -- cgit v1.2.3