lowering: move lower_arg -> item.rs
This commit is contained in:
parent
28af53367a
commit
eb229bca0d
2 changed files with 9 additions and 9 deletions
|
|
@ -2101,15 +2101,6 @@ impl<'a> LoweringContext<'a> {
|
|||
}
|
||||
}
|
||||
|
||||
fn lower_arg(&mut self, arg: &Arg) -> hir::Arg {
|
||||
hir::Arg {
|
||||
attrs: self.lower_attrs(&arg.attrs),
|
||||
hir_id: self.lower_node_id(arg.id),
|
||||
pat: self.lower_pat(&arg.pat),
|
||||
span: arg.span,
|
||||
}
|
||||
}
|
||||
|
||||
fn lower_fn_args_to_names(&mut self, decl: &FnDecl) -> hir::HirVec<Ident> {
|
||||
decl.inputs
|
||||
.iter()
|
||||
|
|
|
|||
|
|
@ -1031,6 +1031,15 @@ impl LoweringContext<'_> {
|
|||
body_id
|
||||
}
|
||||
|
||||
fn lower_arg(&mut self, arg: &Arg) -> hir::Arg {
|
||||
hir::Arg {
|
||||
attrs: self.lower_attrs(&arg.attrs),
|
||||
hir_id: self.lower_node_id(arg.id),
|
||||
pat: self.lower_pat(&arg.pat),
|
||||
span: arg.span,
|
||||
}
|
||||
}
|
||||
|
||||
pub(super) fn lower_fn_body(
|
||||
&mut self,
|
||||
decl: &FnDecl,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue