aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/backend/rust-compile-context.h
diff options
context:
space:
mode:
authorPhilip Herron <philip.herron@embecosm.com>2021-03-25 16:24:59 +0000
committerPhilip Herron <herron.philip@googlemail.com>2021-03-27 18:55:14 +0000
commit573120551a0bc6813f32ed371df65311724e96dd (patch)
treed4262132bacfd6a705078f4e64973a5b8cfbe1c4 /gcc/rust/backend/rust-compile-context.h
parente9bb91b4a7caaab185d029d9c093c520366462d8 (diff)
downloadgcc-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.h3
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 &param) 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