We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3bfc18a commit 8ed83f4Copy full SHA for 8ed83f4
src/libstd/sys/redox/fast_thread_local.rs
@@ -57,7 +57,7 @@ impl<T> Key<T> {
57
}
58
59
60
-unsafe fn register_dtor(t: *mut u8, dtor: unsafe extern fn(*mut u8)) {
+pub unsafe fn register_dtor(t: *mut u8, dtor: unsafe extern fn(*mut u8)) {
61
// The fallback implementation uses a vanilla OS-based TLS key to track
62
// the list of destructors that need to be run for this thread. The key
63
// then has its own destructor which runs all the other destructors.
@@ -115,3 +115,7 @@ pub unsafe extern fn destroy_value<T>(ptr: *mut u8) {
115
ptr::drop_in_place((*ptr).inner.get());
116
117
118
+
119
+pub fn requires_move_before_drop() -> bool {
120
+ false
121
+}
0 commit comments