Rollup merge of #42466 - wesleywiser:fix_42407, r=arielb1

syntax_pos::Symbol should not implement Sync

Fixes #42407
This commit is contained in:
Corey Farwell
2017-06-06 22:36:35 -04:00
committed by GitHub
+1
View 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.