From 8d7f3bd1ca622e6ddc03f4592eb8a451fbf850ab Mon Sep 17 00:00:00 2001 From: Michael Sullivan Date: Tue, 22 May 2012 11:52:22 -0700 Subject: [PATCH] Disallow type parameters to self. Closes #2422. --- src/rustc/middle/typeck/astconv.rs | 1 + 1 file changed, 1 insertion(+) 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( // 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) } _ {