Add #[rustc_legacy_const_generics]
This commit is contained in:
parent
9b471a3f5f
commit
d87eec1bf6
11 changed files with 310 additions and 2 deletions
|
@ -468,6 +468,10 @@ impl CStore {
|
|||
pub fn num_def_ids(&self, cnum: CrateNum) -> usize {
|
||||
self.get_crate_data(cnum).num_def_ids()
|
||||
}
|
||||
|
||||
pub fn item_attrs(&self, def_id: DefId, sess: &Session) -> Vec<ast::Attribute> {
|
||||
self.get_crate_data(def_id.krate).get_item_attrs(def_id.index, sess).collect()
|
||||
}
|
||||
}
|
||||
|
||||
impl CrateStore for CStore {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue