about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorMichael Sullivan <sully@msully.net>2012-05-22 11:52:22 -0700
committerMichael Sullivan <sully@msully.net>2012-05-22 11:52:22 -0700
commit8d7f3bd1ca622e6ddc03f4592eb8a451fbf850ab (patch)
tree0909445eb789c58e0b23b0107b2fd295c162703f /src
parentf2ad7c34267c5d0b030fa6f80e08939e3ce48267 (diff)
downloadrust-8d7f3bd1ca622e6ddc03f4592eb8a451fbf850ab.tar.gz
rust-8d7f3bd1ca622e6ddc03f4592eb8a451fbf850ab.zip
Disallow type parameters to self. Closes #2422.
Diffstat (limited to 'src')
-rw-r--r--src/rustc/middle/typeck/astconv.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/rustc/middle/typeck/astconv.rs b/src/rustc/middle/typeck/astconv.rs
index 2810c6b8c8d..0ba90e07984 100644
--- a/src/rustc/middle/typeck/astconv.rs
+++ b/src/rustc/middle/typeck/astconv.rs
@@ -302,6 +302,7 @@ fn ast_ty_to_ty<AC: ast_conv, RS: region_scope copy>(
             // n.b.: resolve guarantees that the self type only appears in an
             // iface, which we rely upon in various places when creating
             // substs
+            check_path_args(tcx, path, NO_TPS | NO_REGIONS);
             ty::mk_self(tcx)
           }
           _ {