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
+4-13Lines changed: 4 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -1,17 +1,14 @@
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<*mut lua_State>` 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<*mut lua_State>` 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
9
= help: within `mlua::types::sync::inner::ReentrantMutex<mlua::state::raw::RawLua>`, the trait `RefUnwindSafe` is not implemented for `UnsafeCell<*mut lua_State>`
10
10
note: required because it appears within the type `Cell<*mut lua_State>`
11
11
--> $RUST/core/src/cell.rs
12
-
|
13
-
| pub struct Cell<T: ?Sized> {
14
-
| ^^^^
15
12
note: required because it appears within the type `mlua::state::raw::RawLua`
16
13
--> src/state/raw.rs
17
14
|
@@ -36,15 +33,12 @@ note: required because it's used within this closure
36
33
| ^^
37
34
note: required by a bound in `std::panic::catch_unwind`
| ^^^^^^^^^^ required by this bound in `catch_unwind`
42
36
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
37
+
error[E0277]: the type `UnsafeCell<mlua::state::extra::ExtraData>` may contain interior mutability and a reference may not be safely transferable across a catch_unwind boundary
44
38
--> tests/compile/lua_norefunwindsafe.rs:7:18
45
39
|
46
40
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
41
+
| ------------ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `UnsafeCell<mlua::state::extra::ExtraData>` may contain interior mutability and a reference may not be safely transferable across a catch_unwind boundary
48
42
| |
49
43
| required by a bound introduced by this call
50
44
|
@@ -74,6 +68,3 @@ note: required because it's used within this closure
74
68
| ^^
75
69
note: required by a bound in `std::panic::catch_unwind`
Copy file name to clipboardExpand all lines: tests/compile/ref_nounwindsafe.stderr
+6-39Lines changed: 6 additions & 39 deletions
Original file line number
Diff line number
Diff line change
@@ -1,28 +1,19 @@
1
-
error[E0277]: the type `UnsafeCell<usize>` may contain interior mutability and a reference may not be safely transferrable across a catch_unwind boundary
1
+
error[E0277]: the type `UnsafeCell<usize>` may contain interior mutability and a reference may not be safely transferable across a catch_unwind boundary
| ------------ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `UnsafeCell<usize>` may contain interior mutability and a reference may not be safely transferrable across a catch_unwind boundary
5
+
| ------------ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `UnsafeCell<usize>` 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
9
= help: within `rc::RcInner<mlua::types::sync::inner::ReentrantMutex<mlua::state::raw::RawLua>>`, the trait `RefUnwindSafe` is not implemented for `UnsafeCell<usize>`
10
10
note: required because it appears within the type `Cell<usize>`
11
11
--> $RUST/core/src/cell.rs
12
-
|
13
-
| pub struct Cell<T: ?Sized> {
14
-
| ^^^^
15
12
note: required because it appears within the type `rc::RcInner<mlua::types::sync::inner::ReentrantMutex<mlua::state::raw::RawLua>>`
16
13
--> $RUST/alloc/src/rc.rs
17
-
|
18
-
| struct RcInner<T: ?Sized> {
19
-
| ^^^^^^^
20
14
= note: required for `NonNull<rc::RcInner<mlua::types::sync::inner::ReentrantMutex<mlua::state::raw::RawLua>>>` to implement `UnwindSafe`
21
15
note: required because it appears within the type `std::rc::Weak<mlua::types::sync::inner::ReentrantMutex<mlua::state::raw::RawLua>>`
22
16
--> $RUST/alloc/src/rc.rs
23
-
|
24
-
| pub struct Weak<
25
-
| ^^^^
26
17
note: required because it appears within the type `WeakLua`
27
18
--> src/state.rs
28
19
|
@@ -45,24 +36,18 @@ note: required because it's used within this closure
45
36
| ^^^^^^^
46
37
note: required by a bound in `std::panic::catch_unwind`
| ^^^^^^^^^^ required by this bound in `catch_unwind`
51
39
52
-
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
40
+
error[E0277]: the type `UnsafeCell<*mut lua_State>` may contain interior mutability and a reference may not be safely transferable across a catch_unwind boundary
| ------------ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `UnsafeCell<*mut lua_State>` may contain interior mutability and a reference may not be safely transferrable across a catch_unwind boundary
44
+
| ------------ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `UnsafeCell<*mut lua_State>` may contain interior mutability and a reference may not be safely transferable across a catch_unwind boundary
57
45
| |
58
46
| required by a bound introduced by this call
59
47
|
60
48
= help: within `rc::RcInner<mlua::types::sync::inner::ReentrantMutex<mlua::state::raw::RawLua>>`, the trait `RefUnwindSafe` is not implemented for `UnsafeCell<*mut lua_State>`
61
49
note: required because it appears within the type `Cell<*mut lua_State>`
62
50
--> $RUST/core/src/cell.rs
63
-
|
64
-
| pub struct Cell<T: ?Sized> {
65
-
| ^^^^
66
51
note: required because it appears within the type `mlua::state::raw::RawLua`
67
52
--> src/state/raw.rs
68
53
|
@@ -75,15 +60,9 @@ note: required because it appears within the type `mlua::types::sync::inner::Ree
75
60
| ^^^^^^^^^^^^^^
76
61
note: required because it appears within the type `rc::RcInner<mlua::types::sync::inner::ReentrantMutex<mlua::state::raw::RawLua>>`
77
62
--> $RUST/alloc/src/rc.rs
78
-
|
79
-
| struct RcInner<T: ?Sized> {
80
-
| ^^^^^^^
81
63
= note: required for `NonNull<rc::RcInner<mlua::types::sync::inner::ReentrantMutex<mlua::state::raw::RawLua>>>` to implement `UnwindSafe`
82
64
note: required because it appears within the type `std::rc::Weak<mlua::types::sync::inner::ReentrantMutex<mlua::state::raw::RawLua>>`
83
65
--> $RUST/alloc/src/rc.rs
84
-
|
85
-
| pub struct Weak<
86
-
| ^^^^
87
66
note: required because it appears within the type `WeakLua`
88
67
--> src/state.rs
89
68
|
@@ -106,15 +85,12 @@ note: required because it's used within this closure
106
85
| ^^^^^^^
107
86
note: required by a bound in `std::panic::catch_unwind`
| ^^^^^^^^^^ required by this bound in `catch_unwind`
112
88
113
-
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
89
+
error[E0277]: the type `UnsafeCell<mlua::state::extra::ExtraData>` may contain interior mutability and a reference may not be safely transferable across a catch_unwind boundary
| ------------ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `UnsafeCell<mlua::state::extra::ExtraData>` may contain interior mutability and a reference may not be safely transferrable across a catch_unwind boundary
93
+
| ------------ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `UnsafeCell<mlua::state::extra::ExtraData>` may contain interior mutability and a reference may not be safely transferable across a catch_unwind boundary
118
94
| |
119
95
| required by a bound introduced by this call
120
96
|
@@ -132,15 +108,9 @@ note: required because it appears within the type `mlua::types::sync::inner::Ree
132
108
| ^^^^^^^^^^^^^^
133
109
note: required because it appears within the type `rc::RcInner<mlua::types::sync::inner::ReentrantMutex<mlua::state::raw::RawLua>>`
134
110
--> $RUST/alloc/src/rc.rs
135
-
|
136
-
| struct RcInner<T: ?Sized> {
137
-
| ^^^^^^^
138
111
= note: required for `NonNull<rc::RcInner<mlua::types::sync::inner::ReentrantMutex<mlua::state::raw::RawLua>>>` to implement `UnwindSafe`
139
112
note: required because it appears within the type `std::rc::Weak<mlua::types::sync::inner::ReentrantMutex<mlua::state::raw::RawLua>>`
140
113
--> $RUST/alloc/src/rc.rs
141
-
|
142
-
| pub struct Weak<
143
-
| ^^^^
144
114
note: required because it appears within the type `WeakLua`
145
115
--> src/state.rs
146
116
|
@@ -163,6 +133,3 @@ note: required because it's used within this closure
163
133
| ^^^^^^^
164
134
note: required by a bound in `std::panic::catch_unwind`
0 commit comments