about summary refs log tree commit diff
path: root/src/libsyntax_pos/lib.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_pos/lib.rs
parent9639d8ec34ac5bd7920951087c168decc799723c (diff)
downloadrust-6fdcc8281a93c3aa032df245ca5d0342adcb01b1.tar.gz
rust-6fdcc8281a93c3aa032df245ca5d0342adcb01b1.zip
remove hacks that are no longer needed
Diffstat (limited to 'src/libsyntax_pos/lib.rs')
-rw-r--r--src/libsyntax_pos/lib.rs8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/libsyntax_pos/lib.rs b/src/libsyntax_pos/lib.rs
index 8f5595968a7..d81cb756b02 100644
--- a/src/libsyntax_pos/lib.rs
+++ b/src/libsyntax_pos/lib.rs
@@ -227,14 +227,6 @@ impl SpanData {
     }
 }
 
-// The interner is pointed to by a thread local value which is only set on the main thread
-// with parallelization is disabled. So we don't allow `Span` to transfer between threads
-// to avoid panics and other errors, even though it would be memory safe to do so.
-#[cfg(not(parallel_compiler))]
-impl !Send for Span {}
-#[cfg(not(parallel_compiler))]
-impl !Sync for Span {}
-
 impl PartialOrd for Span {
     fn partial_cmp(&self, rhs: &Self) -> Option<Ordering> {
         PartialOrd::partial_cmp(&self.data(), &rhs.data())