Rollup merge of #42466 - wesleywiser:fix_42407, r=arielb1
syntax_pos::Symbol should not implement Sync Fixes #42407
This commit is contained in:
commit
bedead25fe
1 changed files with 1 additions and 0 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue