diff options
Diffstat (limited to 'gcc/rust/backend/rust-compile-struct-field-expr.cc')
-rw-r--r-- | gcc/rust/backend/rust-compile-struct-field-expr.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/rust/backend/rust-compile-struct-field-expr.cc b/gcc/rust/backend/rust-compile-struct-field-expr.cc index f2f243b..ca14bff 100644 --- a/gcc/rust/backend/rust-compile-struct-field-expr.cc +++ b/gcc/rust/backend/rust-compile-struct-field-expr.cc @@ -69,7 +69,7 @@ CompileStructExprField::visit (HIR::StructExprFieldIdentifier &field) Analysis::NodeMapping mappings_copy1 = field.get_mappings (); Analysis::NodeMapping mappings_copy2 = field.get_mappings (); - HIR::PathIdentSegment ident_seg (field.get_field_name ()); + HIR::PathIdentSegment ident_seg (field.get_field_name ().as_string ()); HIR::PathExprSegment seg (mappings_copy1, ident_seg, field.get_locus (), HIR::GenericArgs::create_empty ()); HIR::PathInExpression expr (mappings_copy2, {seg}, field.get_locus (), false, |