syntax_pos::Symbol should not implement Sync

Fixes #42407
This commit is contained in:
Wesley Wiser 2017-06-05 21:52:34 -04:00
parent ae79201533
commit c47df30a0b
1 changed files with 1 additions and 0 deletions

View File

@ -81,6 +81,7 @@ pub struct Symbol(u32);
// 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.