1
Fork 0

Add a cache for rustc_legacy_const_generics

This commit is contained in:
Amanieu d'Antras 2021-02-25 00:37:56 +00:00
parent cccd77955b
commit 22184a0f5d
2 changed files with 31 additions and 16 deletions

View file

@ -175,7 +175,7 @@ pub trait ResolverAstLowering {
fn item_generics_num_lifetimes(&self, def: DefId, sess: &Session) -> usize;
fn legacy_const_generic_args(&self, expr: &Expr) -> Option<Vec<usize>>;
fn legacy_const_generic_args(&mut self, expr: &Expr) -> Option<Vec<usize>>;
/// Obtains resolution for a `NodeId` with a single resolution.
fn get_partial_res(&mut self, id: NodeId) -> Option<PartialRes>;