diff options
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.h | 6 |
1 files changed, 3 insertions, 3 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 933347a..2beba05 100644 --- a/gcc/rust/hir/rust-ast-lower-struct-field-expr.h +++ b/gcc/rust/hir/rust-ast-lower-struct-field-expr.h @@ -30,15 +30,15 @@ class ASTLowerStructExprField : public ASTLoweringBase using Rust::HIR::ASTLoweringBase::visit; public: - static HIR::StructExprField *translate (AST::StructExprField *field) + static HIR::StructExprField *translate (AST::StructExprField &field) { ASTLowerStructExprField compiler; - field->accept_vis (compiler); + field.accept_vis (compiler); rust_assert (compiler.translated != nullptr); compiler.mappings->insert_hir_struct_field (compiler.translated); compiler.mappings->insert_location ( - compiler.translated->get_mappings ().get_hirid (), field->get_locus ()); + compiler.translated->get_mappings ().get_hirid (), field.get_locus ()); return compiler.translated; } |