We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6776af5 commit 29e3f8bCopy full SHA for 29e3f8b
library/std/src/backtrace.rs
@@ -140,6 +140,11 @@ struct Capture {
140
frames: Vec<BacktraceFrame>,
141
}
142
143
+fn _assert_send_sync() {
144
+ fn _assert<T: Send + Sync>() {}
145
+ _assert::<Backtrace>();
146
+}
147
+
148
/// A single frame of a backtrace.
149
#[unstable(feature = "backtrace_frames", issue = "79676")]
150
pub struct BacktraceFrame {
@@ -422,7 +427,7 @@ impl fmt::Display for Backtrace {
422
427
423
428
424
429
425
-type LazyResolve = impl FnOnce() -> Capture;
430
+type LazyResolve = impl (FnOnce() -> Capture) + Send + Sync;
426
431
432
fn lazy_resolve(mut capture: Capture) -> LazyResolve {
433
move || {
library/std/tests/backtrace.rs
0 commit comments