Skip to content

Commit

Permalink
Increase the default recursion limit
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcrichton committed Jul 5, 2017
1 parent 1f0ad8b commit de371b4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -614,7 +614,8 @@ impl TestGenerator {
let krate = parse::parse_crate_from_file(krate, Vec::new(), &sess);

// expand macros
let ecfg = expand::ExpansionConfig::default("crate_name".to_string());
let mut ecfg = expand::ExpansionConfig::default("crate_name".to_string());
ecfg.recursion_limit = 128;
let exts = vec![
(intern("macro_rules"), SyntaxExtension::MacroRulesTT),
];
Expand Down

0 comments on commit de371b4

Please sign in to comment.