Add FIXMEs relating to caching of projection results

This commit is contained in:
Niko Matsakis 2014-12-29 11:03:04 -05:00
parent 97d8a668f6
commit 00cf176a5e
2 changed files with 3 additions and 1 deletions

View File

@ -115,6 +115,8 @@ impl<'tcx> FulfillmentContext<'tcx> {
assert!(!trait_ref.has_escaping_regions());
// FIXME(#20304) -- cache
let ty_var = infcx.next_ty_var();
let projection =
ty::Binder(ty::ProjectionPredicate {

View File

@ -319,7 +319,7 @@ pub fn normalize_associated_type<'tcx,T>(tcx: &ty::ctxt<'tcx>, t: &T) -> T
return t.clone();
}
// TODO cache
// FIXME(#20304) -- cache
let infcx = infer::new_infer_ctxt(tcx);
let param_env = ty::empty_parameter_environment();