diff options
Diffstat (limited to 'gcc/rust/hir/rust-ast-lower-extern.h')
-rw-r--r-- | gcc/rust/hir/rust-ast-lower-extern.h | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/gcc/rust/hir/rust-ast-lower-extern.h b/gcc/rust/hir/rust-ast-lower-extern.h index 4ea0019..80852cf 100644 --- a/gcc/rust/hir/rust-ast-lower-extern.h +++ b/gcc/rust/hir/rust-ast-lower-extern.h @@ -48,12 +48,10 @@ public: mappings->get_next_hir_id (crate_num), mappings->get_next_localdef_id (crate_num)); - HIR::ExternalStaticItem *static_item - = new HIR::ExternalStaticItem (mapping, item.get_identifier (), - std::unique_ptr<HIR::Type> (static_type), - item.is_mut (), std::move (vis), - item.get_outer_attrs (), - item.get_locus ()); + HIR::ExternalStaticItem *static_item = new HIR::ExternalStaticItem ( + mapping, item.get_identifier (), std::unique_ptr<HIR::Type> (static_type), + item.is_mut () ? Mutability::Mut : Mutability::Imm, std::move (vis), + item.get_outer_attrs (), item.get_locus ()); translated = static_item; |