File tree Expand file tree Collapse file tree 1 file changed +6
-9
lines changed Expand file tree Collapse file tree 1 file changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -1172,7 +1172,6 @@ mod test {
1172
1172
name_finder. ident_accumulator
1173
1173
}
1174
1174
1175
-
1176
1175
//fn expand_and_resolve(crate_str: @str) -> ast::crate {
1177
1176
//let expanded_ast = expand_crate_str(crate_str);
1178
1177
// println!("expanded: {:?}\n",expanded_ast);
@@ -1299,17 +1298,15 @@ mod test {
1299
1298
// can't write this test case until we have macro-generating macros.
1300
1299
1301
1300
// FIXME #9383 : lambda var hygiene
1302
- // interesting... can't even write this test, yet, because the name-finder
1303
- // only finds pattern vars. Time to upgrade test framework.
1304
- /*#[test]
1301
+ // expands to fn q(x_1:int){fn g(x_2:int){x_2 + x_1};}
1302
+ #[ test]
1305
1303
fn issue_9383 ( ) {
1306
1304
run_renaming_test (
1307
- &("macro_rules! bad_macro (($ex:expr) => ({(|_x| { $ex }) (9) }))
1308
- fn takes_x(_x : int) { assert_eq!(bad_macro!(_x),8); }
1309
- fn main() { takes_x(8); }",
1310
- vec!(vec!()),false),
1305
+ & ( "macro_rules! bad_macro (($ex:expr) => (fn g(x:int){ x + $ex }))
1306
+ fn q(x:int) { bad_macro!(x); }" ,
1307
+ vec ! ( vec!( 1 ) , vec!( 0 ) ) , true ) ,
1311
1308
0 )
1312
- }*/
1309
+ }
1313
1310
1314
1311
// run one of the renaming tests
1315
1312
fn run_renaming_test ( t : & RenamingTest , test_idx : uint ) {
You can’t perform that action at this time.
0 commit comments