-
Notifications
You must be signed in to change notification settings - Fork 13.8k
Resolve: (Ref)Cell wrappers to deny mutation during spec resolution. #146283
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
Conversation
This is the most botched code I have ever written, but it should work in #145108. |
@rustbot ready |
r=me after addressing the remaining comments and squashing commits. |
Reminder, once the PR becomes ready for a review, use |
dbcb9dd
to
0374df1
Compare
Unfortunately, I don't have those powers, you have delegated those to me :). @rustbot ready |
@bors r+ |
…r=petrochenkov Resolve: (Ref)Cell wrappers to deny mutation during spec resolution. Introduces wrappers around `Cell` and `RefCell` that only allow mutation when we are not in speculative resolution. This is preparatory work for rust-lang#145108. It would allow us to make `ImportData` and `ModuleData` sync and send safe. r? `@petrochenkov`
Rollup of 8 pull requests Successful merges: - #146283 (Resolve: (Ref)Cell wrappers to deny mutation during spec resolution.) - #146453 (Add general arm-linux.md platform doc.) - #146991 (const_caller_location to use real Span instead of `DUMMY_SP`) - #146994 (Add `clippy::unconditional_recursion` to `./x clippy ci`) - #147027 (Add new `tyalias` intra-doc link disambiguator) - #147038 (Rename verbosity functions in bootstrap) - #147047 (rustdoc: put the toolbar on the all item index) - #147049 (std: fix warning in VEXos stdio module) r? `@ghost` `@rustbot` modify labels: rollup
Rollup of 7 pull requests Successful merges: - #146283 (Resolve: (Ref)Cell wrappers to deny mutation during spec resolution.) - #146453 (Add general arm-linux.md platform doc.) - #146991 (const_caller_location to use real Span instead of `DUMMY_SP`) - #146994 (Add `clippy::unconditional_recursion` to `./x clippy ci`) - #147038 (Rename verbosity functions in bootstrap) - #147047 (rustdoc: put the toolbar on the all item index) - #147049 (std: fix warning in VEXos stdio module) r? `@ghost` `@rustbot` modify labels: rollup
Rollup merge of #146283 - LorrensP-2158466:resolve-cm-cell, r=petrochenkov Resolve: (Ref)Cell wrappers to deny mutation during spec resolution. Introduces wrappers around `Cell` and `RefCell` that only allow mutation when we are not in speculative resolution. This is preparatory work for #145108. It would allow us to make `ImportData` and `ModuleData` sync and send safe. r? ``@petrochenkov``
Introduces wrappers around
Cell
andRefCell
that only allow mutation when we are not in speculative resolution. This is preparatory work for #145108.It would allow us to make
ImportData
andModuleData
sync and send safe.r? @petrochenkov