-
Notifications
You must be signed in to change notification settings - Fork 12.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Misc changes from my parallel rustc branch #49030
Conversation
"Make Span and Symbol implement Send and Sync" (04e2088) is the only change that worries me a little. Since #48811 landed, it should be correct to share these between threads (with and without |
@michaelwoerister It is always memory-safe to share them between threads. However it only actually works properly if you use them with the same interner and point the scoped thread local to the right interner on other threads. With |
Can you add a comment that explains why the Ideally we'll have lifetimes on everything that's interned. That would make us not depend on runtime errors. |
85d6ee8
to
d1fae9b
Compare
@michaelwoerister I added comment about that. I also removed a change which caused a panic on Travis. I couldn't reproduce it locally so I just removed it for now. |
Thanks, @Zoxc, I'll re-review asap. |
📌 Commit e09c2ff has been approved by |
Misc changes from my parallel rustc branch r? @michaelwoerister
r? @michaelwoerister