diff options
author | Philip Herron <philip.herron@embecosm.com> | 2021-10-21 22:48:18 +0100 |
---|---|---|
committer | Philip Herron <philip.herron@embecosm.com> | 2021-10-22 11:48:43 +0100 |
commit | 92a31969774e1e9b46800c6475d1a58ccc5ca436 (patch) | |
tree | e7c9a6d82870937b5b0bc17a036cb00a93b35828 /gcc/rust/rust-lang.cc | |
parent | f3bd3f0dd8d145469598dcccc597ae69500369ae (diff) | |
download | gcc-92a31969774e1e9b46800c6475d1a58ccc5ca436.zip gcc-92a31969774e1e9b46800c6475d1a58ccc5ca436.tar.gz gcc-92a31969774e1e9b46800c6475d1a58ccc5ca436.tar.bz2 |
Support generic arguments on TypeBounds
This adds support to managing generic arguments within type bounds. Such
as:
```rust
fn test<T: GenericBound<i32>>(a:T) { ... }
```
The interesting piece here is that for any usage of the bounds on T the
items must be substituted with the inherited arguments specified within
the bound.
This fixes the test case from #743 by removing the lifetimes and where
constraint which needs to be implemented in #442. This associated test
case will fail the rust borrow checker but we need a way to work though
bugs in the short term in some senario's.
Fixes #743
Diffstat (limited to 'gcc/rust/rust-lang.cc')
0 files changed, 0 insertions, 0 deletions