about summary refs log tree commit diff
path: root/src/libsyntax/tokenstream.rs
diff options
context:
space:
mode:
authorNiko Matsakis <niko@alum.mit.edu>2019-06-11 19:09:15 -0400
committerNiko Matsakis <niko@alum.mit.edu>2019-06-12 13:56:29 -0400
commit6fdcc8281a93c3aa032df245ca5d0342adcb01b1 (patch)
tree2dc1e74504816299eddbffa203ccefa7bfb44f2e /src/libsyntax/tokenstream.rs
parent9639d8ec34ac5bd7920951087c168decc799723c (diff)
downloadrust-6fdcc8281a93c3aa032df245ca5d0342adcb01b1.tar.gz
rust-6fdcc8281a93c3aa032df245ca5d0342adcb01b1.zip
remove hacks that are no longer needed
Diffstat (limited to 'src/libsyntax/tokenstream.rs')
-rw-r--r--src/libsyntax/tokenstream.rs11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/libsyntax/tokenstream.rs b/src/libsyntax/tokenstream.rs
index 2daec970279..b32049b1da8 100644
--- a/src/libsyntax/tokenstream.rs
+++ b/src/libsyntax/tokenstream.rs
@@ -59,17 +59,6 @@ where
     TokenStream: Send + Sync,
 {}
 
-// These are safe since we ensure that they hold for all fields in the `_dummy` function.
-//
-// These impls are only here because the compiler takes forever to compute the Send and Sync
-// bounds without them.
-// FIXME: Remove these impls when the compiler can compute the bounds quickly again.
-// See https://github.com/rust-lang/rust/issues/60846
-#[cfg(parallel_compiler)]
-unsafe impl Send for TokenTree {}
-#[cfg(parallel_compiler)]
-unsafe impl Sync for TokenTree {}
-
 impl TokenTree {
     /// Use this token tree as a matcher to parse given tts.
     pub fn parse(cx: &base::ExtCtxt<'_>, mtch: &[quoted::TokenTree], tts: TokenStream)