File tree 2 files changed +0
-19
lines changed
2 files changed +0
-19
lines changed Original file line number Diff line number Diff line change 59
59
TokenStream : Send + Sync ,
60
60
{ }
61
61
62
- // These are safe since we ensure that they hold for all fields in the `_dummy` function.
63
- //
64
- // These impls are only here because the compiler takes forever to compute the Send and Sync
65
- // bounds without them.
66
- // FIXME: Remove these impls when the compiler can compute the bounds quickly again.
67
- // See https://github.com/rust-lang/rust/issues/60846
68
- #[ cfg( parallel_compiler) ]
69
- unsafe impl Send for TokenTree { }
70
- #[ cfg( parallel_compiler) ]
71
- unsafe impl Sync for TokenTree { }
72
-
73
62
impl TokenTree {
74
63
/// Use this token tree as a matcher to parse given tts.
75
64
pub fn parse ( cx : & base:: ExtCtxt < ' _ > , mtch : & [ quoted:: TokenTree ] , tts : TokenStream )
Original file line number Diff line number Diff line change @@ -227,14 +227,6 @@ impl SpanData {
227
227
}
228
228
}
229
229
230
- // The interner is pointed to by a thread local value which is only set on the main thread
231
- // with parallelization is disabled. So we don't allow `Span` to transfer between threads
232
- // to avoid panics and other errors, even though it would be memory safe to do so.
233
- #[ cfg( not( parallel_compiler) ) ]
234
- impl !Send for Span { }
235
- #[ cfg( not( parallel_compiler) ) ]
236
- impl !Sync for Span { }
237
-
238
230
impl PartialOrd for Span {
239
231
fn partial_cmp ( & self , rhs : & Self ) -> Option < Ordering > {
240
232
PartialOrd :: partial_cmp ( & self . data ( ) , & rhs. data ( ) )
You can’t perform that action at this time.
0 commit comments