@@ -41,6 +41,7 @@ use crate::ty::{ExistentialPredicate, InferTy, ParamTy, PolyFnSig, Predicate, Pr
4141use crate :: ty:: { InferConst , ParamConst } ;
4242use crate :: ty:: { List , TyKind , TyS } ;
4343use crate :: util:: common:: ErrorReported ;
44+ use rustc_data_structures:: sync;
4445use rustc_hir as hir;
4546use rustc_hir:: def:: { DefKind , Res } ;
4647use rustc_hir:: def_id:: { CrateNum , DefId , DefIdMap , DefIdSet , DefIndex , LOCAL_CRATE } ;
@@ -951,7 +952,7 @@ pub struct GlobalCtxt<'tcx> {
951952 ///
952953 /// FIXME(Centril): consider `dyn LintStoreMarker` once
953954 /// 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 > ,
955956
956957 pub dep_graph : DepGraph ,
957958
@@ -1120,7 +1121,7 @@ impl<'tcx> TyCtxt<'tcx> {
11201121 /// reference to the context, to allow formatting values that need it.
11211122 pub fn create_global_ctxt (
11221123 s : & ' tcx Session ,
1123- lint_store : Lrc < dyn Any > ,
1124+ lint_store : Lrc < dyn Any + sync :: Send + sync :: Sync > ,
11241125 local_providers : ty:: query:: Providers < ' tcx > ,
11251126 extern_providers : ty:: query:: Providers < ' tcx > ,
11261127 arenas : & ' tcx AllArenas ,
0 commit comments