@@ -7,17 +7,57 @@ error[E0277]: the type `UnsafeCell<mlua::lua::ExtraData>` may contain interior m
77 | required by a bound introduced by this call
88 |
99 = help: within `Lua`, the trait `RefUnwindSafe` is not implemented for `UnsafeCell<mlua::lua::ExtraData>`
10- = note: required because it appears within the type `ArcInner<UnsafeCell<ExtraData>>`
11- = note: required because it appears within the type `PhantomData<ArcInner<UnsafeCell<ExtraData>>>`
12- = note: required because it appears within the type `Arc<UnsafeCell<ExtraData>>`
13- = note: required because it appears within the type `LuaInner`
14- = note: required because it appears within the type `ArcInner<LuaInner>`
15- = note: required because it appears within the type `PhantomData<ArcInner<LuaInner>>`
16- = note: required because it appears within the type `Arc<LuaInner>`
17- = note: required because it appears within the type `Lua`
10+ note: required because it appears within the type `ArcInner<UnsafeCell<ExtraData>>`
11+ --> $RUST/alloc/src/sync.rs
12+ |
13+ | struct ArcInner<T: ?Sized> {
14+ | ^^^^^^^^
15+ note: required because it appears within the type `PhantomData<ArcInner<UnsafeCell<ExtraData>>>`
16+ --> $RUST/core/src/marker.rs
17+ |
18+ | pub struct PhantomData<T: ?Sized>;
19+ | ^^^^^^^^^^^
20+ note: required because it appears within the type `Arc<UnsafeCell<ExtraData>>`
21+ --> $RUST/alloc/src/sync.rs
22+ |
23+ | pub struct Arc<
24+ | ^^^
25+ note: required because it appears within the type `LuaInner`
26+ --> src/lua.rs
27+ |
28+ | pub struct LuaInner {
29+ | ^^^^^^^^
30+ note: required because it appears within the type `ArcInner<LuaInner>`
31+ --> $RUST/alloc/src/sync.rs
32+ |
33+ | struct ArcInner<T: ?Sized> {
34+ | ^^^^^^^^
35+ note: required because it appears within the type `PhantomData<ArcInner<LuaInner>>`
36+ --> $RUST/core/src/marker.rs
37+ |
38+ | pub struct PhantomData<T: ?Sized>;
39+ | ^^^^^^^^^^^
40+ note: required because it appears within the type `Arc<LuaInner>`
41+ --> $RUST/alloc/src/sync.rs
42+ |
43+ | pub struct Arc<
44+ | ^^^
45+ note: required because it appears within the type `Lua`
46+ --> src/lua.rs
47+ |
48+ | pub struct Lua(Arc<LuaInner>);
49+ | ^^^
1850 = note: required for `&Lua` to implement `UnwindSafe`
19- = note: required because it appears within the type `LuaRef<'_>`
20- = note: required because it appears within the type `Table<'_>`
51+ note: required because it appears within the type `LuaRef<'_>`
52+ --> src/types.rs
53+ |
54+ | pub(crate) struct LuaRef<'lua> {
55+ | ^^^^^^
56+ note: required because it appears within the type `Table<'_>`
57+ --> src/table.rs
58+ |
59+ | pub struct Table<'lua>(pub(crate) LuaRef<'lua>);
60+ | ^^^^^
2161note: required because it's used within this closure
2262 --> tests/compile/ref_nounwindsafe.rs:8:18
2363 |
0 commit comments