diff options
| author | Caio <c410.f3r@gmail.com> | 2019-06-09 07:58:40 -0300 | 
|---|---|---|
| committer | Caio <c410.f3r@gmail.com> | 2019-06-09 07:58:40 -0300 | 
| commit | 1eaaf440d5173f090d6e937f4b4cffec6c038984 (patch) | |
| tree | 9f0beed7bc92e5815b4db44b8e32973678140fcc /src/libsyntax/parse/mod.rs | |
| parent | 5c45343f11fbf93cf4e15568aee3ff3f2f287466 (diff) | |
| download | rust-1eaaf440d5173f090d6e937f4b4cffec6c038984.tar.gz rust-1eaaf440d5173f090d6e937f4b4cffec6c038984.zip | |
Allow attributes in formal function parameters
Diffstat (limited to 'src/libsyntax/parse/mod.rs')
| -rw-r--r-- | src/libsyntax/parse/mod.rs | 2 | 
1 files changed, 2 insertions, 0 deletions
| diff --git a/src/libsyntax/parse/mod.rs b/src/libsyntax/parse/mod.rs index 1d708d39a13..c4da876a2e7 100644 --- a/src/libsyntax/parse/mod.rs +++ b/src/libsyntax/parse/mod.rs @@ -54,6 +54,7 @@ pub struct ParseSess { /// operation token that followed it, but that the parser cannot identify without further /// analysis. pub ambiguous_block_expr_parse: Lock<FxHashMap<Span, Span>>, + pub param_attr_spans: Lock<Vec<Span>> } impl ParseSess { @@ -79,6 +80,7 @@ impl ParseSess { buffered_lints: Lock::new(vec![]), edition: Edition::from_session(), ambiguous_block_expr_parse: Lock::new(FxHashMap::default()), + param_attr_spans: Lock::new(Vec::new()), } } | 
