aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc')
-rw-r--r--gcc/rust/typecheck/rust-autoderef.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/rust/typecheck/rust-autoderef.h b/gcc/rust/typecheck/rust-autoderef.h
index 7a9083d..3604910 100644
--- a/gcc/rust/typecheck/rust-autoderef.h
+++ b/gcc/rust/typecheck/rust-autoderef.h
@@ -34,13 +34,13 @@ public:
DEREF_REF
};
- Adjustment (AdjustmentType type, TyTy::BaseType *expected)
+ Adjustment (AdjustmentType type, const TyTy::BaseType *expected)
: type (type), expected (expected)
{}
AdjustmentType get_type () const { return type; }
- TyTy::BaseType *get_expected () const { return expected; }
+ const TyTy::BaseType *get_expected () const { return expected; }
std::string as_string () const
{
@@ -65,7 +65,7 @@ public:
private:
AdjustmentType type;
- TyTy::BaseType *expected;
+ const TyTy::BaseType *expected;
};
} // namespace Resolver