Copy ty::AssocItem
all other the place
This commit is contained in:
parent
236ddf36b3
commit
a32d392741
17 changed files with 89 additions and 96 deletions
|
@ -423,7 +423,7 @@ impl<'a, 'tcx> WrongNumberOfGenericArgs<'a, 'tcx> {
|
|||
|
||||
fn get_unbound_associated_types(&self) -> Vec<String> {
|
||||
if self.tcx.is_trait(self.def_id) {
|
||||
let items: &AssocItems<'_> = self.tcx.associated_items(self.def_id);
|
||||
let items: &AssocItems = self.tcx.associated_items(self.def_id);
|
||||
items
|
||||
.in_definition_order()
|
||||
.filter(|item| item.kind == AssocKind::Type)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue