about summary refs log tree commit diff
path: root/src/rustc/util
diff options
context:
space:
mode:
authorBrian Anderson <banderson@mozilla.com>2012-09-11 16:20:31 -0700
committerBrian Anderson <banderson@mozilla.com>2012-09-11 17:15:33 -0700
commit27cc0a36b689bcbc58117450330f6fa4ebd35c9b (patch)
treeed332e3b1efbb66981f485ccf75f04d592dd51ab /src/rustc/util
parent1203da3b9ddbf6af343fdb826b899b55a7bda053 (diff)
downloadrust-27cc0a36b689bcbc58117450330f6fa4ebd35c9b.tar.gz
rust-27cc0a36b689bcbc58117450330f6fa4ebd35c9b.zip
Promote 'struct' from a restricted keyword to a strict keyword
Diffstat (limited to 'src/rustc/util')
-rw-r--r--src/rustc/util/ppaux.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rustc/util/ppaux.rs b/src/rustc/util/ppaux.rs
index f58ed10a408..a9363f0f1da 100644
--- a/src/rustc/util/ppaux.rs
+++ b/src/rustc/util/ppaux.rs
@@ -284,7 +284,7 @@ fn ty_to_str(cx: ctxt, typ: t) -> ~str {
         for inputs.each |a| { vec::push(strs, fn_input_to_str(cx, a)); }
         s += str::connect(strs, ~", ");
         s += ~")";
-        if ty::get(output).struct != ty_nil {
+        if ty::get(output).sty != ty_nil {
             s += ~" -> ";
             match cf {
               ast::noreturn => { s += ~"!"; }
@@ -310,7 +310,7 @@ fn ty_to_str(cx: ctxt, typ: t) -> ~str {
     }
 
     // pretty print the structural type representation:
-    return match ty::get(typ).struct {
+    return match ty::get(typ).sty {
       ty_nil => ~"()",
       ty_bot => ~"_|_",
       ty_bool => ~"bool",