Remove defaultness from ImplItem.
This commit is contained in:
parent
686663a49e
commit
710662c8ac
8 changed files with 11 additions and 21 deletions
|
@ -896,9 +896,6 @@ impl<'hir> LoweringContext<'_, 'hir> {
|
|||
AssocItemKind::MacCall(..) => panic!("`TyMac` should have been expanded by now"),
|
||||
};
|
||||
|
||||
// Since `default impl` is not yet implemented, this is always true in impls.
|
||||
let has_value = true;
|
||||
let (defaultness, _) = self.lower_defaultness(i.kind.defaultness(), has_value);
|
||||
let hir_id = self.lower_node_id(i.id);
|
||||
self.lower_attrs(hir_id, &i.attrs);
|
||||
let item = hir::ImplItem {
|
||||
|
@ -906,7 +903,6 @@ impl<'hir> LoweringContext<'_, 'hir> {
|
|||
ident: self.lower_ident(i.ident),
|
||||
generics,
|
||||
vis: self.lower_visibility(&i.vis),
|
||||
defaultness,
|
||||
kind,
|
||||
span: self.lower_span(i.span),
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue