rustc_metadata: Switch all decoder methods from vectors to iterators
Also remove unnecessary `is_proc_macro_crate` checks from decoder
This commit is contained in:
parent
a0984b4e4c
commit
4549b13571
5 changed files with 66 additions and 87 deletions
|
@ -3442,7 +3442,6 @@ impl<'a> Resolver<'a> {
|
|||
let attr = self
|
||||
.cstore()
|
||||
.item_attrs_untracked(def_id, self.session)
|
||||
.into_iter()
|
||||
.find(|a| a.has_name(sym::rustc_legacy_const_generics))?;
|
||||
let mut ret = Vec::new();
|
||||
for meta in attr.meta_item_list()? {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue