We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8a6ffad commit b841796Copy full SHA for b841796
src/raw.rs
@@ -34,6 +34,12 @@ pub(crate) struct TaskVTable {
34
35
/// Creates a new waker associated with the task.
36
pub(crate) clone_waker: unsafe fn(ptr: *const ()) -> RawWaker,
37
+
38
+ /// The memory layout of the task. This information enables
39
+ /// debuggers to decode raw task memory blobs. Do not remove
40
+ /// the field, even if it appears to be unused.
41
+ #[allow(unused)]
42
+ pub(crate) layout_info: &'static Option<TaskLayout>,
43
}
44
45
/// Memory layout of a task.
@@ -155,6 +161,7 @@ where
155
161
destroy: Self::destroy,
156
162
run: Self::run,
157
163
clone_waker: Self::clone_waker,
164
+ layout_info: &Self::TASK_LAYOUT,
158
165
},
159
166
});
160
167
0 commit comments