@@ -154,15 +154,15 @@ impl<'a, 'tcx> EvalContext<'a, 'tcx> {
154154 }
155155 }
156156
157- pub fn memory ( & self ) -> & Memory {
157+ pub fn memory ( & self ) -> & Memory < ' a , ' tcx > {
158158 & self . memory
159159 }
160160
161161 pub fn memory_mut ( & mut self ) -> & mut Memory < ' a , ' tcx > {
162162 & mut self . memory
163163 }
164164
165- pub fn stack ( & self ) -> & [ Frame ] {
165+ pub fn stack ( & self ) -> & [ Frame < ' a , ' tcx > ] {
166166 & self . stack
167167 }
168168
@@ -235,7 +235,7 @@ impl<'a, 'tcx> EvalContext<'a, 'tcx> {
235235 ty. is_sized ( self . tcx , & self . tcx . empty_parameter_environment ( ) , DUMMY_SP )
236236 }
237237
238- fn load_mir ( & self , def_id : DefId ) -> CachedMir < ' a , ' tcx > {
238+ pub fn load_mir ( & self , def_id : DefId ) -> CachedMir < ' a , ' tcx > {
239239 match self . tcx . map . as_local_node_id ( def_id) {
240240 Some ( node_id) => CachedMir :: Ref ( self . mir_map . map . get ( & node_id) . unwrap ( ) ) ,
241241 None => {
@@ -255,7 +255,7 @@ impl<'a, 'tcx> EvalContext<'a, 'tcx> {
255255 }
256256 }
257257
258- fn monomorphize ( & self , ty : Ty < ' tcx > , substs : & ' tcx Substs < ' tcx > ) -> Ty < ' tcx > {
258+ pub fn monomorphize ( & self , ty : Ty < ' tcx > , substs : & ' tcx Substs < ' tcx > ) -> Ty < ' tcx > {
259259 let substituted = ty. subst ( self . tcx , substs) ;
260260 self . tcx . normalize_associated_type ( & substituted)
261261 }
0 commit comments