Currently trans uses Vec<ty::t> to represent substitutions instead of a proper

ty::substs struct. This is a holdover from the olden days of yore. This patch
removes the last vestiges of that practice. This is part of the work
I was doing on #5527.
This commit is contained in:
Niko Matsakis 2014-05-07 07:20:15 -04:00
parent b6c9dbd3e4
commit ed7c849057
18 changed files with 392 additions and 353 deletions

View file

@ -561,6 +561,12 @@ impl Repr for ty::substs {
}
}
impl Repr for ty::ItemSubsts {
fn repr(&self, tcx: &ctxt) -> ~str {
format!("ItemSubsts({})", self.substs.repr(tcx))
}
}
impl Repr for ty::RegionSubsts {
fn repr(&self, tcx: &ctxt) -> ~str {
match *self {