Revert "rustc_middle: parallel: TyCtxt: remove "unsafe impl DynSend/DynSync""
This reverts commit 8eba29ac10
.
This commit is contained in:
parent
30f168ef81
commit
ca64815c70
1 changed files with 3 additions and 0 deletions
|
@ -1327,6 +1327,9 @@ pub struct TyCtxt<'tcx> {
|
|||
gcx: &'tcx GlobalCtxt<'tcx>,
|
||||
}
|
||||
|
||||
// Explicitly implement `DynSync` and `DynSend` for `TyCtxt` to short circuit trait resolution.
|
||||
unsafe impl DynSend for TyCtxt<'_> {}
|
||||
unsafe impl DynSync for TyCtxt<'_> {}
|
||||
fn _assert_tcx_fields() {
|
||||
sync::assert_dyn_sync::<&'_ GlobalCtxt<'_>>();
|
||||
sync::assert_dyn_send::<&'_ GlobalCtxt<'_>>();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue