Closed
Description
#74113 has some open FIXMEs
- consider caching
opt_const_param_of
on disk (perf) - consider first calling
tcx.def_kind(def_id)
inopt_const_param_of
to improve incremental - add a helper method for
if def.const_param_did.is_none() {
if let const_param_did @ Some(_) = tcx.opt_const_param_of(def.did) {
return tcx.query(ty::WithOptConstParam { const_param_did, ..def });
}
}