Rollup merge of #119141 - celinval:smir-instance-args, r=compiler-errors
Add method to get instance instantiation arguments Add a method to get the instance instantiation arguments, and include that information in the instance debug.
This commit is contained in:
commit
f6a04f693b
3 changed files with 15 additions and 0 deletions
|
@ -341,6 +341,12 @@ impl<'tcx> Context for TablesWrapper<'tcx> {
|
|||
instance.ty(tables.tcx, ParamEnv::reveal_all()).stable(&mut *tables)
|
||||
}
|
||||
|
||||
fn instance_args(&self, def: InstanceDef) -> GenericArgs {
|
||||
let mut tables = self.0.borrow_mut();
|
||||
let instance = tables.instances[def];
|
||||
instance.args.stable(&mut *tables)
|
||||
}
|
||||
|
||||
fn instance_abi(&self, def: InstanceDef) -> Result<FnAbi, Error> {
|
||||
let mut tables = self.0.borrow_mut();
|
||||
let instance = tables.instances[def];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue