Skip to content

Commit 2d3112a

Browse files
committed
Make Span and Symbol implement Send and Sync
1 parent 868dda0 commit 2d3112a

File tree

2 files changed

+0
-8
lines changed

2 files changed

+0
-8
lines changed

src/libsyntax_pos/lib.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,10 +92,6 @@ impl SpanData {
9292
}
9393
}
9494

95-
// The interner in thread-local, so `Span` shouldn't move between threads.
96-
impl !Send for Span {}
97-
impl !Sync for Span {}
98-
9995
impl PartialOrd for Span {
10096
fn partial_cmp(&self, rhs: &Self) -> Option<Ordering> {
10197
PartialOrd::partial_cmp(&self.data(), &rhs.data())

src/libsyntax_pos/symbol.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,6 @@ impl Decodable for Ident {
8383
#[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)]
8484
pub struct Symbol(u32);
8585

86-
// The interner in thread-local, so `Symbol` shouldn't move between threads.
87-
impl !Send for Symbol { }
88-
impl !Sync for Symbol { }
89-
9086
impl Symbol {
9187
/// Maps a string to its interned representation.
9288
pub fn intern(string: &str) -> Self {

0 commit comments

Comments
 (0)