Add stable Instance::body() and RustcInternal trait
The `Instance::body()` returns a monomorphized body. For that, we had to implement visitor that monomorphize types and constants. We are also introducing the RustcInternal trait that will allow us to convert back from Stable to Internal. Note that this trait is not yet visible for our users as it depends on Tables. We should probably add a new trait that can be exposed.
This commit is contained in:
parent
cc705b8012
commit
6ed2a76bcc
10 changed files with 218 additions and 7 deletions
|
@ -225,6 +225,8 @@ pub struct ImplDef(pub DefId);
|
|||
#[derive(Clone, PartialEq, Eq, Debug)]
|
||||
pub struct RegionDef(pub DefId);
|
||||
|
||||
/// A list of generic arguments.
|
||||
/// The second field is for internal usage to allow retrieving the internal representation.
|
||||
#[derive(Clone, Debug)]
|
||||
pub struct GenericArgs(pub Vec<GenericArgKind>);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue