From 604af3f6c0be6ea428a55cfcb303fa1cd1c7958d Mon Sep 17 00:00:00 2001 From: Patrick Walton Date: Mon, 11 Aug 2014 09:32:26 -0700 Subject: librustc: Implement simple `where` clauses. These `where` clauses are accepted everywhere generics are currently accepted and desugar during type collection to the type parameter bounds we have today. A new keyword, `where`, has been added. Therefore, this is a breaking change. Change uses of `where` to other identifiers. [breaking-change] --- src/libsyntax/parse/token.rs | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) (limited to 'src/libsyntax/parse/token.rs') diff --git a/src/libsyntax/parse/token.rs b/src/libsyntax/parse/token.rs index f1ef7980151..4c959932f41 100644 --- a/src/libsyntax/parse/token.rs +++ b/src/libsyntax/parse/token.rs @@ -499,18 +499,19 @@ declare_special_idents_and_keywords! { (41, Proc, "proc"); (42, Box, "box"); (43, Const, "const"); + (44, Where, "where"); 'reserved: - (44, Alignof, "alignof"); - (45, Be, "be"); - (46, Offsetof, "offsetof"); - (47, Priv, "priv"); - (48, Pure, "pure"); - (49, Sizeof, "sizeof"); - (50, Typeof, "typeof"); - (51, Unsized, "unsized"); - (52, Yield, "yield"); - (53, Do, "do"); + (45, Alignof, "alignof"); + (46, Be, "be"); + (47, Offsetof, "offsetof"); + (48, Priv, "priv"); + (49, Pure, "pure"); + (50, Sizeof, "sizeof"); + (51, Typeof, "typeof"); + (52, Unsized, "unsized"); + (53, Yield, "yield"); + (54, Do, "do"); } } -- cgit 1.4.1-3-g733a5