Skip to content

Commit 11524d5

Browse files
committed
Assert that GlobalCtxt is Sync
1 parent 79ff212 commit 11524d5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/librustc/ty/context.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1079,6 +1079,8 @@ impl<'a, 'gcx, 'tcx> TyCtxt<'a, 'gcx, 'tcx> {
10791079
Rc::get_mut(map).unwrap().insert(hir_id.local_id, Rc::new(v));
10801080
}
10811081

1082+
::rustc_data_structures::sync::assert_sync::<GlobalCtxt>();
1083+
10821084
tls::enter_global(GlobalCtxt {
10831085
sess: s,
10841086
cstore,

0 commit comments

Comments
 (0)