diff options
author | Philip Herron <philip.herron@embecosm.com> | 2021-03-25 16:24:59 +0000 |
---|---|---|
committer | Philip Herron <herron.philip@googlemail.com> | 2021-03-27 18:55:14 +0000 |
commit | 573120551a0bc6813f32ed371df65311724e96dd (patch) | |
tree | d4262132bacfd6a705078f4e64973a5b8cfbe1c4 /gcc/rust/backend/rust-compile-context.h | |
parent | e9bb91b4a7caaab185d029d9c093c520366462d8 (diff) | |
download | gcc-573120551a0bc6813f32ed371df65311724e96dd.zip gcc-573120551a0bc6813f32ed371df65311724e96dd.tar.gz gcc-573120551a0bc6813f32ed371df65311724e96dd.tar.bz2 |
Add generics for impl blocks
Generics paramters to impl blocks allows each impl-item to inherit these
and get handled in a similar way as to normal functions.
Fixes #237
Diffstat (limited to 'gcc/rust/backend/rust-compile-context.h')
-rw-r--r-- | gcc/rust/backend/rust-compile-context.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/rust/backend/rust-compile-context.h b/gcc/rust/backend/rust-compile-context.h index 6347464..8866575 100644 --- a/gcc/rust/backend/rust-compile-context.h +++ b/gcc/rust/backend/rust-compile-context.h @@ -297,8 +297,7 @@ public: void visit (TyTy::ParamType ¶m) override { - TyTy::TyVar var (param.get_ty_ref ()); - var.get_tyty ()->accept_vis (*this); + param.resolve ()->accept_vis (*this); } void visit (TyTy::FnType &type) override |