@@ -41,6 +41,7 @@ use crate::ty::{ExistentialPredicate, InferTy, ParamTy, PolyFnSig, Predicate, Pr
41
41
use crate :: ty:: { InferConst , ParamConst } ;
42
42
use crate :: ty:: { List , TyKind , TyS } ;
43
43
use crate :: util:: common:: ErrorReported ;
44
+ use rustc_data_structures:: sync;
44
45
use rustc_hir as hir;
45
46
use rustc_hir:: def:: { DefKind , Res } ;
46
47
use rustc_hir:: def_id:: { CrateNum , DefId , DefIdMap , DefIdSet , DefIndex , LOCAL_CRATE } ;
@@ -951,7 +952,7 @@ pub struct GlobalCtxt<'tcx> {
951
952
///
952
953
/// FIXME(Centril): consider `dyn LintStoreMarker` once
953
954
/// we can upcast to `Any` for some additional type safety.
954
- pub lint_store : Lrc < dyn Any > ,
955
+ pub lint_store : Lrc < dyn Any + sync :: Sync + sync :: Send > ,
955
956
956
957
pub dep_graph : DepGraph ,
957
958
@@ -1120,7 +1121,7 @@ impl<'tcx> TyCtxt<'tcx> {
1120
1121
/// reference to the context, to allow formatting values that need it.
1121
1122
pub fn create_global_ctxt (
1122
1123
s : & ' tcx Session ,
1123
- lint_store : Lrc < dyn Any > ,
1124
+ lint_store : Lrc < dyn Any + sync :: Send + sync :: Sync > ,
1124
1125
local_providers : ty:: query:: Providers < ' tcx > ,
1125
1126
extern_providers : ty:: query:: Providers < ' tcx > ,
1126
1127
arenas : & ' tcx AllArenas ,
0 commit comments