File tree Expand file tree Collapse file tree 2 files changed +11
-6
lines changed Expand file tree Collapse file tree 2 files changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -141,11 +141,6 @@ struct Capture {
141
141
frames : Vec < BacktraceFrame > ,
142
142
}
143
143
144
- fn _assert_send_sync ( ) {
145
- fn _assert < T : Send + Sync > ( ) { }
146
- _assert :: < Backtrace > ( ) ;
147
- }
148
-
149
144
/// A single frame of a backtrace.
150
145
#[ unstable( feature = "backtrace_frames" , issue = "79676" ) ]
151
146
pub struct BacktraceFrame {
@@ -428,7 +423,7 @@ impl fmt::Display for Backtrace {
428
423
}
429
424
}
430
425
431
- type LazyResolve = impl ( FnOnce ( ) -> Capture ) + Send + Sync + UnwindSafe ;
426
+ type LazyResolve = impl FnOnce ( ) -> Capture + UnwindSafe ;
432
427
433
428
fn lazy_resolve ( mut capture : Capture ) -> LazyResolve {
434
429
move || {
Original file line number Diff line number Diff line change
1
+ use std:: backtrace:: Backtrace ;
2
+
3
+ // Unfortunately, this cannot be a unit test because that causes problems
4
+ // with type-alias-impl-trait (the assert counts as a defining use).
5
+ #[ test]
6
+ fn assert_send_sync ( ) {
7
+ fn assert < T : Send + Sync > ( ) { }
8
+
9
+ assert :: < Backtrace > ( ) ;
10
+ }
You can’t perform that action at this time.
0 commit comments