mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-04 12:44:40 +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());
|
assert!(!trait_ref.has_escaping_regions());
|
||||||
|
|
||||||
|
// FIXME(#20304) -- cache
|
||||||
|
|
||||||
let ty_var = infcx.next_ty_var();
|
let ty_var = infcx.next_ty_var();
|
||||||
let projection =
|
let projection =
|
||||||
ty::Binder(ty::ProjectionPredicate {
|
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();
|
return t.clone();
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO cache
|
// FIXME(#20304) -- cache
|
||||||
|
|
||||||
let infcx = infer::new_infer_ctxt(tcx);
|
let infcx = infer::new_infer_ctxt(tcx);
|
||||||
let param_env = ty::empty_parameter_environment();
|
let param_env = ty::empty_parameter_environment();
|
||||||
|
Loading…
Reference in New Issue
Block a user