aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/backend
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/rust/backend')
-rw-r--r--gcc/rust/backend/rust-compile-fnparam.h2
-rw-r--r--gcc/rust/backend/rust-compile-var-decl.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/gcc/rust/backend/rust-compile-fnparam.h b/gcc/rust/backend/rust-compile-fnparam.h
index e3f9558..9ef72ef 100644
--- a/gcc/rust/backend/rust-compile-fnparam.h
+++ b/gcc/rust/backend/rust-compile-fnparam.h
@@ -40,7 +40,7 @@ public:
void visit (HIR::IdentifierPattern &pattern) override
{
- if (!pattern.is_mut)
+ if (!pattern.is_mut ())
decl_type = ctx->get_backend ()->immutable_type (decl_type);
translated
diff --git a/gcc/rust/backend/rust-compile-var-decl.h b/gcc/rust/backend/rust-compile-var-decl.h
index ee4e65b..bd15a0c 100644
--- a/gcc/rust/backend/rust-compile-var-decl.h
+++ b/gcc/rust/backend/rust-compile-var-decl.h
@@ -54,7 +54,7 @@ public:
void visit (HIR::IdentifierPattern &pattern) override
{
- if (!pattern.is_mut)
+ if (!pattern.is_mut ())
translated_type = ctx->get_backend ()->immutable_type (translated_type);
translated