From dabd4762037baab06603fe76dd59795e4d415334 Mon Sep 17 00:00:00 2001 From: Daniel Micay Date: Wed, 31 Jul 2013 17:59:59 -0400 Subject: make `in` and `foreach` get treated as keywords --- src/libsyntax/ext/asm.rs | 4 ++-- src/libsyntax/ext/expand.rs | 12 ++++++------ 2 files changed, 8 insertions(+), 8 deletions(-) (limited to 'src/libsyntax/ext') diff --git a/src/libsyntax/ext/asm.rs b/src/libsyntax/ext/asm.rs index bf7cccdc9ef..ee0ec664e1b 100644 --- a/src/libsyntax/ext/asm.rs +++ b/src/libsyntax/ext/asm.rs @@ -95,10 +95,10 @@ pub fn expand_asm(cx: @ExtCtxt, sp: span, tts: &[ast::token_tree]) let constraint = p.parse_str(); p.expect(&token::LPAREN); - let in = p.parse_expr(); + let input = p.parse_expr(); p.expect(&token::RPAREN); - inputs.push((constraint, in)); + inputs.push((constraint, input)); } } Clobbers => { diff --git a/src/libsyntax/ext/expand.rs b/src/libsyntax/ext/expand.rs index 72bbc4a96c5..adf014b3a29 100644 --- a/src/libsyntax/ext/expand.rs +++ b/src/libsyntax/ext/expand.rs @@ -750,16 +750,16 @@ pub fn std_macros() -> @str { macro_rules! condition ( - { pub $c:ident: $in:ty -> $out:ty; } => { + { pub $c:ident: $input:ty -> $out:ty; } => { pub mod $c { #[allow(non_uppercase_statics)]; static key: ::std::local_data::Key< - @::std::condition::Handler<$in, $out>> = + @::std::condition::Handler<$input, $out>> = &::std::local_data::Key; pub static cond : - ::std::condition::Condition<$in,$out> = + ::std::condition::Condition<$input,$out> = ::std::condition::Condition { name: stringify!($c), key: key @@ -767,17 +767,17 @@ pub fn std_macros() -> @str { } }; - { $c:ident: $in:ty -> $out:ty; } => { + { $c:ident: $input:ty -> $out:ty; } => { // FIXME (#6009): remove mod's `pub` below once variant above lands. pub mod $c { #[allow(non_uppercase_statics)]; static key: ::std::local_data::Key< - @::std::condition::Handler<$in, $out>> = + @::std::condition::Handler<$input, $out>> = &::std::local_data::Key; pub static cond : - ::std::condition::Condition<$in,$out> = + ::std::condition::Condition<$input,$out> = ::std::condition::Condition { name: stringify!($c), key: key -- cgit 1.4.1-3-g733a5