1
Fork 0

Plumb dyn trait representation through ty::Dynamic

This commit is contained in:
Eric Holk 2022-04-13 16:11:28 -07:00
parent eff35e59c6
commit 6c01273a15
29 changed files with 110 additions and 57 deletions

View file

@ -627,7 +627,7 @@ fn encode_ty<'tcx>(
}
// Trait types
ty::Dynamic(predicates, region) => {
ty::Dynamic(predicates, region, _repr) => {
// u3dynI<element-type1[..element-typeN]>E, where <element-type> is <predicate>, as
// vendor extended type.
let mut s = String::from("u3dynI");

View file

@ -479,7 +479,7 @@ impl<'tcx> Printer<'tcx> for &mut SymbolMangler<'tcx> {
})?;
}
ty::Dynamic(predicates, r) => {
ty::Dynamic(predicates, r, _repr) => {
self.push("D");
self = self.print_dyn_existential(predicates)?;
self = r.print(self)?;