Skip to content

Commit 00cbb85

Browse files
committed
Add FIXMEs relating to caching of projection results
1 parent 45a3c2f commit 00cbb85

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/librustc/middle/traits/fulfill.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,8 @@ impl<'tcx> FulfillmentContext<'tcx> {
115115

116116
assert!(!trait_ref.has_escaping_regions());
117117

118+
// FIXME(#20304) -- cache
119+
118120
let ty_var = infcx.next_ty_var();
119121
let projection =
120122
ty::Binder(ty::ProjectionPredicate {

src/librustc_trans/trans/monomorphize.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ pub fn normalize_associated_type<'tcx,T>(tcx: &ty::ctxt<'tcx>, t: &T) -> T
319319
return t.clone();
320320
}
321321

322-
// TODO cache
322+
// FIXME(#20304) -- cache
323323

324324
let infcx = infer::new_infer_ctxt(tcx);
325325
let param_env = ty::empty_parameter_environment();

0 commit comments

Comments
 (0)