Address review comments
This commit is contained in:
parent
00eca69bff
commit
2451f124c9
6 changed files with 78 additions and 90 deletions
|
@ -175,7 +175,7 @@ pub trait ResolverAstLowering {
|
|||
|
||||
fn item_generics_num_lifetimes(&self, def: DefId, sess: &Session) -> usize;
|
||||
|
||||
fn item_attrs(&self, def_id: DefId, sess: &Session) -> Vec<ast::Attribute>;
|
||||
fn legacy_const_generic_args(&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>;
|
||||
|
@ -2828,16 +2828,6 @@ impl<'a, 'hir> LoweringContext<'a, 'hir> {
|
|||
)
|
||||
}
|
||||
}
|
||||
|
||||
fn item_attrs(&self, def_id: DefId) -> Vec<ast::Attribute> {
|
||||
if let Some(_local_def_id) = def_id.as_local() {
|
||||
// FIXME: This doesn't actually work, items doesn't include everything?
|
||||
//self.items[&hir::ItemId { def_id: local_def_id }].attrs.into()
|
||||
Vec::new()
|
||||
} else {
|
||||
self.resolver.item_attrs(def_id, self.sess)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
fn body_ids(bodies: &BTreeMap<hir::BodyId, hir::Body<'_>>) -> Vec<hir::BodyId> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue