Add a cache for rustc_legacy_const_generics
This commit is contained in:
parent
cccd77955b
commit
22184a0f5d
2 changed files with 31 additions and 16 deletions
|
@ -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>;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue