diff options
| author | Jeffrey Seyfried <jeffrey.seyfried@gmail.com> | 2016-06-26 02:18:04 +0000 |
|---|---|---|
| committer | Jeffrey Seyfried <jeffrey.seyfried@gmail.com> | 2016-06-26 02:18:43 +0000 |
| commit | 8eddf0280014972e051856dfe949054acf53c043 (patch) | |
| tree | 8d4523f2bd6a218c75b5a602fa30d5cd85d8184c /src/libsyntax/parse/mod.rs | |
| parent | 8748cd92d06328af657934f6728183c10f92eefe (diff) | |
| parent | 5033eca65f1dd9585aafa9cddd9d4bfd71b820c1 (diff) | |
| download | rust-8eddf0280014972e051856dfe949054acf53c043.tar.gz rust-8eddf0280014972e051856dfe949054acf53c043.zip | |
Rollup merge of #34339 - jseyfried:thin_vec, r=petrochenkov,Manishearth
Generalize and abstract `ThinAttributes` to `ThinVec<Attribute>`.
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 28555dc89bc..0c5a672dfbc 100644 --- a/src/libsyntax/parse/mod.rs +++ b/src/libsyntax/parse/mod.rs @@ -675,6 +675,7 @@ mod tests { use tokenstream::{self, TokenTree}; 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 syntax_pos::span fn sp(a: u32, b: u32) -> Span { @@ -696,7 +697,7 @@ mod tests { ), }), span: sp(0, 1), - attrs: None, + attrs: ThinVec::new(), })) } @@ -719,7 +720,7 @@ mod tests { ) }), span: sp(0, 6), - attrs: None, + attrs: ThinVec::new(), })) } @@ -835,10 +836,10 @@ mod tests { ), }), span:sp(7,8), - attrs: None, + attrs: ThinVec::new(), }))), span:sp(0,8), - attrs: None, + attrs: ThinVec::new(), })) } @@ -858,7 +859,7 @@ mod tests { ), }), span: sp(0,1), - attrs: None})), + attrs: ThinVec::new()})), id: ast::DUMMY_NODE_ID, span: sp(0,1)})) @@ -953,7 +954,7 @@ mod tests { ), }), span: sp(17,18), - attrs: None,})), + attrs: ThinVec::new()})), id: ast::DUMMY_NODE_ID, span: sp(17,19)}), expr: None, |
