Skip to content

Commit eb229bc

Browse files
committed
lowering: move lower_arg -> item.rs
1 parent 28af533 commit eb229bc

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

Diff for: src/librustc/hir/lowering.rs

-9
Original file line numberDiff line numberDiff line change
@@ -2101,15 +2101,6 @@ impl<'a> LoweringContext<'a> {
21012101
}
21022102
}
21032103

2104-
fn lower_arg(&mut self, arg: &Arg) -> hir::Arg {
2105-
hir::Arg {
2106-
attrs: self.lower_attrs(&arg.attrs),
2107-
hir_id: self.lower_node_id(arg.id),
2108-
pat: self.lower_pat(&arg.pat),
2109-
span: arg.span,
2110-
}
2111-
}
2112-
21132104
fn lower_fn_args_to_names(&mut self, decl: &FnDecl) -> hir::HirVec<Ident> {
21142105
decl.inputs
21152106
.iter()

Diff for: src/librustc/hir/lowering/item.rs

+9
Original file line numberDiff line numberDiff line change
@@ -1031,6 +1031,15 @@ impl LoweringContext<'_> {
10311031
body_id
10321032
}
10331033

1034+
fn lower_arg(&mut self, arg: &Arg) -> hir::Arg {
1035+
hir::Arg {
1036+
attrs: self.lower_attrs(&arg.attrs),
1037+
hir_id: self.lower_node_id(arg.id),
1038+
pat: self.lower_pat(&arg.pat),
1039+
span: arg.span,
1040+
}
1041+
}
1042+
10341043
pub(super) fn lower_fn_body(
10351044
&mut self,
10361045
decl: &FnDecl,

0 commit comments

Comments
 (0)