about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMazdak Farrokhzad <twingoow@gmail.com>2019-08-10 17:40:35 +0200
committerMazdak Farrokhzad <twingoow@gmail.com>2019-08-10 20:24:43 +0200
commit93570b02bdf0f4f21ed07865a6acce333134ef5b (patch)
tree5bc73a52fd393f733ce04058815d8631239733ae
parent29e9b5ddd49dffbdee8b8ad6aa1cbc090db1cbf1 (diff)
lowering: move field -> expr.rs
-rw-r--r--src/librustc/hir/lowering.rs10
-rw-r--r--src/librustc/hir/lowering/expr.rs10
2 files changed, 10 insertions, 10 deletions
diff --git a/src/librustc/hir/lowering.rs b/src/librustc/hir/lowering.rs
index 1ada058a8bc..8a39f412aaa 100644
--- a/src/librustc/hir/lowering.rs
+++ b/src/librustc/hir/lowering.rs
@@ -4483,16 +4483,6 @@ impl<'a> LoweringContext<'a> {
         }
     }
 
-    fn field(&mut self, ident: Ident, expr: P<hir::Expr>, span: Span) -> hir::Field {
-        hir::Field {
-            hir_id: self.next_id(),
-            ident,
-            span,
-            expr,
-            is_shorthand: false,
-        }
-    }
-
     fn stmt(&mut self, span: Span, node: hir::StmtKind) -> hir::Stmt {
         hir::Stmt { span, node, hir_id: self.next_id() }
     }
diff --git a/src/librustc/hir/lowering/expr.rs b/src/librustc/hir/lowering/expr.rs
index a1c8af8c80d..57e7feaedc7 100644
--- a/src/librustc/hir/lowering/expr.rs
+++ b/src/librustc/hir/lowering/expr.rs
@@ -1350,4 +1350,14 @@ impl LoweringContext<'_> {
             attrs,
         }
     }
+
+    fn field(&mut self, ident: Ident, expr: P<hir::Expr>, span: Span) -> hir::Field {
+        hir::Field {
+            hir_id: self.next_id(),
+            ident,
+            span,
+            expr,
+            is_shorthand: false,
+        }
+    }
 }