diff options
-rw-r--r-- | gcc/rust/typecheck/rust-tyty.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/gcc/rust/typecheck/rust-tyty.h b/gcc/rust/typecheck/rust-tyty.h index bdf85a9..f2c250f 100644 --- a/gcc/rust/typecheck/rust-tyty.h +++ b/gcc/rust/typecheck/rust-tyty.h @@ -1930,7 +1930,10 @@ public: std::string as_string () const override; - std::string get_name () const override final { return as_string (); } + std::string get_name () const override final + { + return "&" + get_base ()->get_name (); + } BaseType *unify (BaseType *other) override; bool can_eq (const BaseType *other, bool emit_errors, @@ -1978,7 +1981,10 @@ public: std::string as_string () const override; - std::string get_name () const override final { return as_string (); } + std::string get_name () const override final + { + return "*" + get_base ()->get_name (); + } BaseType *unify (BaseType *other) override; bool can_eq (const BaseType *other, bool emit_errors, |