diff options
| author | Florian Hahn <flo@fhahn.com> | 2014-10-01 11:38:54 +0200 |
|---|---|---|
| committer | Florian Hahn <flo@fhahn.com> | 2014-10-01 11:46:04 +0200 |
| commit | 49e976d771d9a3282bb0f58f28e5e92d10c2e4c6 (patch) | |
| tree | 26080db909dc531efc47abbcbc0efe10ec7aef12 /src/libsyntax/ext/expand.rs | |
| parent | 60e7317345f246a8169bbfe721473f693d54cade (diff) | |
| download | rust-49e976d771d9a3282bb0f58f28e5e92d10c2e4c6.tar.gz rust-49e976d771d9a3282bb0f58f28e5e92d10c2e4c6.zip | |
Limit recursion depth for macro expansions, closes #17628
Diffstat (limited to 'src/libsyntax/ext/expand.rs')
| -rw-r--r-- | src/libsyntax/ext/expand.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libsyntax/ext/expand.rs b/src/libsyntax/ext/expand.rs index fa3ccc8cf32..efe4b76354f 100644 --- a/src/libsyntax/ext/expand.rs +++ b/src/libsyntax/ext/expand.rs @@ -1069,6 +1069,7 @@ pub struct ExpansionConfig { pub crate_name: String, pub deriving_hash_type_parameter: bool, pub enable_quotes: bool, + pub recursion_limit: uint, } impl ExpansionConfig { @@ -1077,6 +1078,7 @@ impl ExpansionConfig { crate_name: crate_name, deriving_hash_type_parameter: false, enable_quotes: false, + recursion_limit: 64, } } } |
