resolve: Remove item_attrs_untracked
This commit is contained in:
parent
f28f77f2d9
commit
d99e01fa7e
2 changed files with 1 additions and 12 deletions
|
@ -1906,10 +1906,7 @@ impl<'a, 'tcx> Resolver<'a, 'tcx> {
|
|||
return v.clone();
|
||||
}
|
||||
|
||||
let attr = self
|
||||
.cstore()
|
||||
.item_attrs_untracked(def_id, self.tcx.sess)
|
||||
.find(|a| a.has_name(sym::rustc_legacy_const_generics))?;
|
||||
let attr = self.tcx.get_attr(def_id, sym::rustc_legacy_const_generics)?;
|
||||
let mut ret = Vec::new();
|
||||
for meta in attr.meta_item_list()? {
|
||||
match meta.lit()?.kind {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue