diff options
author | Philip Herron <philip.herron@embecosm.com> | 2021-09-17 16:41:25 +0100 |
---|---|---|
committer | Philip Herron <philip.herron@embecosm.com> | 2021-09-17 16:41:25 +0100 |
commit | d9a0a5f864b69c68d410a14e0aa7ccbaae7eb144 (patch) | |
tree | 590ca34cd83110c08f0d04c29ba41b3d0561e092 /gcc/rust/backend/rust-compile-context.h | |
parent | d144eea86290e8efc700d8042e9b517158b9f916 (diff) | |
download | gcc-d9a0a5f864b69c68d410a14e0aa7ccbaae7eb144.zip gcc-d9a0a5f864b69c68d410a14e0aa7ccbaae7eb144.tar.gz gcc-d9a0a5f864b69c68d410a14e0aa7ccbaae7eb144.tar.bz2 |
Allow for coercion of structures over to dynamic objects in type system
This is the initial support for allowing a coercion of something like:
```rust
let a = Foo(123);
let b:&dyn Bound = &a;
```
The coercion will need to ensure that 'a' meets the specified bounds of the
dynamic object.
Addresses #197
Diffstat (limited to 'gcc/rust/backend/rust-compile-context.h')
0 files changed, 0 insertions, 0 deletions