Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hygiene for 3 kinds of args #15425

Merged
merged 13 commits into from
Jul 5, 2014
Prev Previous commit
Next Next commit
comments only
  • Loading branch information
jbclements committed Jul 4, 2014
commit 63fb7c6f4049ba33cb2fcd5d5d117a3e484bd181
5 changes: 2 additions & 3 deletions src/libsyntax/ext/expand.rs
Original file line number Diff line number Diff line change
@@ -1377,10 +1377,9 @@ mod test {
// but *shouldn't* bind because it was inserted by a different macro....
// can't write this test case until we have macro-generating macros.

// lambda var hygiene
// item fn hygiene
// expands to fn q(x_1:int){fn g(x_2:int){x_2 + x_1};}
#[test]
fn issue_9383(){
#[test] fn issue_9383(){
run_renaming_test(
&("macro_rules! bad_macro (($ex:expr) => (fn g(x:int){ x + $ex }))
fn q(x:int) { bad_macro!(x); }",