]> git.lizzy.rs Git - rust.git/commitdiff
syntax_pos::Symbol should not implement Sync
authorWesley Wiser <wwiser@gmail.com>
Tue, 6 Jun 2017 01:52:34 +0000 (21:52 -0400)
committerWesley Wiser <wwiser@gmail.com>
Tue, 6 Jun 2017 01:52:34 +0000 (21:52 -0400)
Fixes #42407

src/libsyntax_pos/symbol.rs

index 73c0256f2c1f50babdde07d8a7a5c8c6e0e8f196..6b5caff27e8f020b7fdfcd74e199c7ebd29ac2b9 100644 (file)
@@ -81,6 +81,7 @@ fn decode<D: Decoder>(d: &mut D) -> Result<Ident, D::Error> {
 
 // The interner in thread-local, so `Symbol` shouldn't move between threads.
 impl !Send for Symbol { }
+impl !Sync for Symbol { }
 
 impl Symbol {
     /// Maps a string to its interned representation.