Skip to content

Commit c47df30

Browse files
committed
syntax_pos::Symbol should not implement Sync
Fixes #42407
1 parent ae79201 commit c47df30

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/libsyntax_pos/symbol.rs

+1
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ pub struct Symbol(u32);
8181

8282
// The interner in thread-local, so `Symbol` shouldn't move between threads.
8383
impl !Send for Symbol { }
84+
impl !Sync for Symbol { }
8485

8586
impl Symbol {
8687
/// Maps a string to its interned representation.

0 commit comments

Comments
 (0)