rustc_middle: parallel: TyCtxt: remove "unsafe impl DynSend/DynSync"
We don't need to "short circuit trait resolution", because DynSend and DynSync are auto traits and thus coinductive
This commit is contained in:
parent
a9e7b30487
commit
8eba29ac10
1 changed files with 0 additions and 3 deletions
|
|
@ -1290,9 +1290,6 @@ 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