diff options
| author | Jeffrey Seyfried <jeffrey.seyfried@gmail.com> | 2016-06-18 04:01:57 +0000 |
|---|---|---|
| committer | Jeffrey Seyfried <jeffrey.seyfried@gmail.com> | 2016-06-19 00:01:55 +0000 |
| commit | 5033eca65f1dd9585aafa9cddd9d4bfd71b820c1 (patch) | |
| tree | a5490b012b6243d778e9f1ac4a3b3010b1447ca8 /src/libsyntax/parse/mod.rs | |
| parent | 114be1e9f0db2c84e38b5ed96d4e4450771e8a44 (diff) | |
| download | rust-5033eca65f1dd9585aafa9cddd9d4bfd71b820c1.tar.gz rust-5033eca65f1dd9585aafa9cddd9d4bfd71b820c1.zip | |
Generalize and abstract `ThinAttributes`
Diffstat (limited to 'src/libsyntax/parse/mod.rs')
| -rw-r--r-- | src/libsyntax/parse/mod.rs | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/libsyntax/parse/mod.rs b/src/libsyntax/parse/mod.rs index 2e4d46bc983..f72fb0dedf8 100644 --- a/src/libsyntax/parse/mod.rs +++ b/src/libsyntax/parse/mod.rs @@ -672,6 +672,7 @@ mod tests { use ptr::P; use util::parser_testing::{string_to_tts, string_to_parser}; use util::parser_testing::{string_to_expr, string_to_item, string_to_stmt}; + use util::ThinVec; // produce a codemap::span fn sp(a: u32, b: u32) -> Span { @@ -693,7 +694,7 @@ mod tests { ), }), span: sp(0, 1), - attrs: None, + attrs: ThinVec::new(), })) } @@ -716,7 +717,7 @@ mod tests { ) }), span: sp(0, 6), - attrs: None, + attrs: ThinVec::new(), })) } @@ -832,10 +833,10 @@ mod tests { ), }), span:sp(7,8), - attrs: None, + attrs: ThinVec::new(), }))), span:sp(0,8), - attrs: None, + attrs: ThinVec::new(), })) } @@ -855,7 +856,7 @@ mod tests { ), }), span: sp(0,1), - attrs: None}), + attrs: ThinVec::new()}), ast::DUMMY_NODE_ID), span: sp(0,1)})) @@ -950,7 +951,7 @@ mod tests { ), }), span: sp(17,18), - attrs: None,}), + attrs: ThinVec::new(),}), ast::DUMMY_NODE_ID), span: sp(17,19)}), expr: None, |
