aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/hir/rust-ast-lower-struct-field-expr.h
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/rust/hir/rust-ast-lower-struct-field-expr.h')
-rw-r--r--gcc/rust/hir/rust-ast-lower-struct-field-expr.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/gcc/rust/hir/rust-ast-lower-struct-field-expr.h b/gcc/rust/hir/rust-ast-lower-struct-field-expr.h
index e89eed3..dadf359 100644
--- a/gcc/rust/hir/rust-ast-lower-struct-field-expr.h
+++ b/gcc/rust/hir/rust-ast-lower-struct-field-expr.h
@@ -36,11 +36,8 @@ public:
field->accept_vis (compiler);
rust_assert (compiler.translated != nullptr);
- compiler.mappings->insert_hir_struct_field (
- compiler.translated->get_mappings ().get_crate_num (),
- compiler.translated->get_mappings ().get_hirid (), compiler.translated);
+ compiler.mappings->insert_hir_struct_field (compiler.translated);
compiler.mappings->insert_location (
- compiler.translated->get_mappings ().get_crate_num (),
compiler.translated->get_mappings ().get_hirid (), field->get_locus ());
return compiler.translated;