about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/errors.rs
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2023-01-02 15:39:16 -0800
committerGitHub <noreply@github.com>2023-01-02 15:39:16 -0800
commit722bc0c8ee92b391ddf6bd77f43fae1432d9234f (patch)
tree77a4027bd7c35a6a61acba1232d495f6198b5140 /compiler/rustc_codegen_llvm/src/errors.rs
parentd6f99e535a301a421dfee52a7c25bb4bdf420344 (diff)
parent257e766c0c17c1a3561a509c931cf89bce27dcf5 (diff)
downloadrust-722bc0c8ee92b391ddf6bd77f43fae1432d9234f.tar.gz
rust-722bc0c8ee92b391ddf6bd77f43fae1432d9234f.zip
Rollup merge of #95985 - jihiggins:issue-66481, r=dtolnay
Add PhantomData marker to Context to make Context !Send and !Sync

Adds `PhantomData<*mut ()>` to `Context` in order to allow for future `!Send` or `!Sync` additions to `Context`'s fields. This would allow for things like future single threaded async executor optimizations, or (re)adding `LocalWaker`, etc.

Closes #66481.

Per https://github.com/rust-lang/rust/issues/66481#issuecomment-561289725, this is a breaking change that needs a Crater run as the next step.

(So far have tested the change locally with `cargotest` on WSL)
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/errors.rs')
0 files changed, 0 insertions, 0 deletions