mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-03 20:23:59 +00:00
Add FIXMEs relating to caching of projection results
This commit is contained in:
parent
97d8a668f6
commit
00cf176a5e
@ -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 {
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user