We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
TyCtxt
DynSync
DynSend
1 parent ca64815 commit 59645fcCopy full SHA for 59645fc
compiler/rustc_middle/src/ty/context.rs
@@ -1327,7 +1327,9 @@ pub struct TyCtxt<'tcx> {
1327
gcx: &'tcx GlobalCtxt<'tcx>,
1328
}
1329
1330
-// Explicitly implement `DynSync` and `DynSend` for `TyCtxt` to short circuit trait resolution.
+// Explicitly implement `DynSync` and `DynSend` for `TyCtxt` to short circuit trait resolution. Its
1331
+// field are asserted to implement these traits below, so this is trivially safe, and it greatly
1332
+// speeds-up compilation of this crate.
1333
unsafe impl DynSend for TyCtxt<'_> {}
1334
unsafe impl DynSync for TyCtxt<'_> {}
1335
fn _assert_tcx_fields() {
0 commit comments