lowering: move lower_arg -> item.rs

This commit is contained in:
Mazdak Farrokhzad 2019-08-10 20:23:34 +02:00
parent 28af53367a
commit eb229bca0d
2 changed files with 9 additions and 9 deletions

View file

@ -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()

View file

@ -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,