You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tests/compile/lua_norefunwindsafe.stderr
+51-29Lines changed: 51 additions & 29 deletions
Original file line number
Diff line number
Diff line change
@@ -1,28 +1,32 @@
1
-
error[E0277]: the type `UnsafeCell<*mut lua_State>` may contain interior mutability and a reference may not be safely transferrable across a catch_unwind boundary
1
+
error[E0277]: the type `UnsafeCell<mlua::state::raw::RawLua>` may contain interior mutability and a reference may not be safely transferable across a catch_unwind boundary
2
2
--> tests/compile/lua_norefunwindsafe.rs:7:18
3
3
|
4
4
7 | catch_unwind(|| lua.create_table().unwrap());
5
-
| ------------ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `UnsafeCell<*mut lua_State>` may contain interior mutability and a reference may not be safely transferrable across a catch_unwind boundary
5
+
| ------------ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `UnsafeCell<mlua::state::raw::RawLua>` may contain interior mutability and a reference may not be safely transferable across a catch_unwind boundary
6
6
| |
7
7
| required by a bound introduced by this call
8
8
|
9
-
= help: within `mlua::types::sync::inner::ReentrantMutex<mlua::state::raw::RawLua>`, the trait `RefUnwindSafe` is not implemented for `UnsafeCell<*mut lua_State>`
10
-
note: required because it appears within the type `Cell<*mut lua_State>`
11
-
--> $RUST/core/src/cell.rs
9
+
= help: within `Lua`, the trait `RefUnwindSafe` is not implemented for `UnsafeCell<mlua::state::raw::RawLua>`
10
+
note: required because it appears within the type `lock_api::remutex::ReentrantMutex<parking_lot::raw_mutex::RawMutex, parking_lot::remutex::RawThreadId, mlua::state::raw::RawLua>`
11
+
--> $CARGO/lock_api-$VERSION/src/remutex.rs
12
12
|
13
-
| pub struct Cell<T: ?Sized> {
14
-
| ^^^^
15
-
note: required because it appears within the type `mlua::state::raw::RawLua`
16
-
--> src/state/raw.rs
13
+
| pub struct ReentrantMutex<R, G, T: ?Sized> {
14
+
| ^^^^^^^^^^^^^^
15
+
note: required because it appears within the type `alloc::sync::ArcInner<lock_api::remutex::ReentrantMutex<parking_lot::raw_mutex::RawMutex, parking_lot::remutex::RawThreadId, mlua::state::raw::RawLua>>`
16
+
--> $RUST/alloc/src/sync.rs
17
+
|
18
+
| struct ArcInner<T: ?Sized> {
19
+
| ^^^^^^^^
20
+
note: required because it appears within the type `PhantomData<alloc::sync::ArcInner<lock_api::remutex::ReentrantMutex<parking_lot::raw_mutex::RawMutex, parking_lot::remutex::RawThreadId, mlua::state::raw::RawLua>>>`
21
+
--> $RUST/core/src/marker.rs
17
22
|
18
-
| pub struct RawLua {
19
-
| ^^^^^^
20
-
note: required because it appears within the type `mlua::types::sync::inner::ReentrantMutex<mlua::state::raw::RawLua>`
21
-
--> src/types/sync.rs
23
+
| pub struct PhantomData<T: PointeeSized>;
24
+
| ^^^^^^^^^^^
25
+
note: required because it appears within the type `Arc<lock_api::remutex::ReentrantMutex<parking_lot::raw_mutex::RawMutex, parking_lot::remutex::RawThreadId, mlua::state::raw::RawLua>>`
26
+
--> $RUST/alloc/src/sync.rs
22
27
|
23
-
| pub(crate) struct ReentrantMutex<T>(T);
24
-
| ^^^^^^^^^^^^^^
25
-
= note: required for `Rc<mlua::types::sync::inner::ReentrantMutex<mlua::state::raw::RawLua>>` to implement `RefUnwindSafe`
28
+
| pub struct Arc<
29
+
| ^^^
26
30
note: required because it appears within the type `Lua`
27
31
--> src/state.rs
28
32
|
@@ -40,27 +44,45 @@ note: required by a bound in `std::panic::catch_unwind`
| ^^^^^^^^^^ required by this bound in `catch_unwind`
42
46
43
-
error[E0277]: the type `UnsafeCell<mlua::state::extra::ExtraData>` may contain interior mutability and a reference may not be safely transferrable across a catch_unwind boundary
47
+
error[E0277]: the type `UnsafeCell<usize>` may contain interior mutability and a reference may not be safely transferable across a catch_unwind boundary
44
48
--> tests/compile/lua_norefunwindsafe.rs:7:18
45
49
|
46
50
7 | catch_unwind(|| lua.create_table().unwrap());
47
-
| ------------ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `UnsafeCell<mlua::state::extra::ExtraData>` may contain interior mutability and a reference may not be safely transferrable across a catch_unwind boundary
51
+
| ------------ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `UnsafeCell<usize>` may contain interior mutability and a reference may not be safely transferable across a catch_unwind boundary
48
52
| |
49
53
| required by a bound introduced by this call
50
54
|
51
-
= help: the trait `RefUnwindSafe` is not implemented for `UnsafeCell<mlua::state::extra::ExtraData>`
52
-
= note: required for `Rc<UnsafeCell<mlua::state::extra::ExtraData>>` to implement `RefUnwindSafe`
53
-
note: required because it appears within the type `mlua::state::raw::RawLua`
54
-
--> src/state/raw.rs
55
+
= help: within `Lua`, the trait `RefUnwindSafe` is not implemented for `UnsafeCell<usize>`
56
+
note: required because it appears within the type `Cell<usize>`
57
+
--> $RUST/core/src/cell.rs
55
58
|
56
-
| pub struct RawLua {
57
-
| ^^^^^^
58
-
note: required because it appears within the type `mlua::types::sync::inner::ReentrantMutex<mlua::state::raw::RawLua>`
59
-
--> src/types/sync.rs
59
+
| pub struct Cell<T: ?Sized> {
60
+
| ^^^^
61
+
note: required because it appears within the type `lock_api::remutex::RawReentrantMutex<parking_lot::raw_mutex::RawMutex, parking_lot::remutex::RawThreadId>`
62
+
--> $CARGO/lock_api-$VERSION/src/remutex.rs
63
+
|
64
+
| pub struct RawReentrantMutex<R, G> {
65
+
| ^^^^^^^^^^^^^^^^^
66
+
note: required because it appears within the type `lock_api::remutex::ReentrantMutex<parking_lot::raw_mutex::RawMutex, parking_lot::remutex::RawThreadId, mlua::state::raw::RawLua>`
67
+
--> $CARGO/lock_api-$VERSION/src/remutex.rs
68
+
|
69
+
| pub struct ReentrantMutex<R, G, T: ?Sized> {
70
+
| ^^^^^^^^^^^^^^
71
+
note: required because it appears within the type `alloc::sync::ArcInner<lock_api::remutex::ReentrantMutex<parking_lot::raw_mutex::RawMutex, parking_lot::remutex::RawThreadId, mlua::state::raw::RawLua>>`
72
+
--> $RUST/alloc/src/sync.rs
60
73
|
61
-
| pub(crate) struct ReentrantMutex<T>(T);
62
-
| ^^^^^^^^^^^^^^
63
-
= note: required for `Rc<mlua::types::sync::inner::ReentrantMutex<mlua::state::raw::RawLua>>` to implement `RefUnwindSafe`
74
+
| struct ArcInner<T: ?Sized> {
75
+
| ^^^^^^^^
76
+
note: required because it appears within the type `PhantomData<alloc::sync::ArcInner<lock_api::remutex::ReentrantMutex<parking_lot::raw_mutex::RawMutex, parking_lot::remutex::RawThreadId, mlua::state::raw::RawLua>>>`
77
+
--> $RUST/core/src/marker.rs
78
+
|
79
+
| pub struct PhantomData<T: PointeeSized>;
80
+
| ^^^^^^^^^^^
81
+
note: required because it appears within the type `Arc<lock_api::remutex::ReentrantMutex<parking_lot::raw_mutex::RawMutex, parking_lot::remutex::RawThreadId, mlua::state::raw::RawLua>>`
82
+
--> $RUST/alloc/src/sync.rs
83
+
|
84
+
| pub struct Arc<
85
+
| ^^^
64
86
note: required because it appears within the type `Lua`
0 commit comments