about summary refs log tree commit diff
path: root/src/librustc/util
diff options
context:
space:
mode:
authorNiko Matsakis <niko@alum.mit.edu>2014-05-07 07:20:15 -0400
committerNiko Matsakis <niko@alum.mit.edu>2014-05-09 05:56:44 -0400
commited7c8490572c8eaacfe2acf459660bd9003e1ba4 (patch)
treee08f5b7070aad04bf7f161dd58d74dc7501a4b2e /src/librustc/util
parentb6c9dbd3e40e9de4a907ce5cb1e5d8ee0b5d6220 (diff)
downloadrust-ed7c8490572c8eaacfe2acf459660bd9003e1ba4.tar.gz
rust-ed7c8490572c8eaacfe2acf459660bd9003e1ba4.zip
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.
Diffstat (limited to 'src/librustc/util')
-rw-r--r--src/librustc/util/ppaux.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/librustc/util/ppaux.rs b/src/librustc/util/ppaux.rs
index 1808c0209b7..94815d0144d 100644
--- a/src/librustc/util/ppaux.rs
+++ b/src/librustc/util/ppaux.rs
@@ -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 {