Skip to content

Commit 277dda4

Browse files
authored
Rollup merge of rust-lang#136731 - safinaskar:parallel-2025-02-08-07-22, r=SparrowLii
rustc_middle: parallel: TyCtxt: remove "unsafe impl DynSend/DynSync" 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 cc "Parallel Rustc Front-end" rust-lang#113349 r? SparrowLii ``@rustbot`` label: +WG-compiler-parallel (rustbot sometimes ignores me and doesn't attach labels on my behalf. rustbot banned me?)
2 parents ad92b85 + 8eba29a commit 277dda4

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

Diff for: compiler/rustc_middle/src/ty/context.rs

-3
Original file line numberDiff line numberDiff line change
@@ -1301,9 +1301,6 @@ pub struct TyCtxt<'tcx> {
13011301
gcx: &'tcx GlobalCtxt<'tcx>,
13021302
}
13031303

1304-
// Explicitly implement `DynSync` and `DynSend` for `TyCtxt` to short circuit trait resolution.
1305-
unsafe impl DynSend for TyCtxt<'_> {}
1306-
unsafe impl DynSync for TyCtxt<'_> {}
13071304
fn _assert_tcx_fields() {
13081305
sync::assert_dyn_sync::<&'_ GlobalCtxt<'_>>();
13091306
sync::assert_dyn_send::<&'_ GlobalCtxt<'_>>();

0 commit comments

Comments
 (0)