about summary refs log tree commit diff
path: root/src/libsyntax/parse
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2018-08-14 15:09:37 +0000
committerbors <bors@rust-lang.org>2018-08-14 15:09:37 +0000
commit23f09bbed4ef12c5f9db198c22f50b608ea6c6d5 (patch)
tree547c1cea1a62ace01f8cef6c8120612596208083 /src/libsyntax/parse
parentf45f52532a394d2d607fc5693364ad820049376d (diff)
parente5e6375352636360add297c1f5a1f37ce71506e9 (diff)
downloadrust-23f09bbed4ef12c5f9db198c22f50b608ea6c6d5.tar.gz
rust-23f09bbed4ef12c5f9db198c22f50b608ea6c6d5.zip
Auto merge of #53085 - ljedrz:cleanup_syntax_structures, r=ljedrz
Move SmallVector and ThinVec out of libsyntax

- move `libsyntax::util::SmallVector` tests to `librustc_data_structures::small_vec`
- remove `libsyntax::util::SmallVector`
- move `libsyntax::util::thin_vec` to `librustc_data_structures::thin_vec`

Other than moving these data structures where they belong it allows modules using `SmallVector<T>` (`SmallVec<[T; 1]>`) to specify their own length (e.g. 8 or 32) independently from `libsyntax`.
Diffstat (limited to 'src/libsyntax/parse')
-rw-r--r--src/libsyntax/parse/parser.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs
index 746e03d771a..0e45cacaf38 100644
--- a/src/libsyntax/parse/parser.rs
+++ b/src/libsyntax/parse/parser.rs
@@ -53,9 +53,9 @@ use util::parser::{AssocOp, Fixity};
 use print::pprust;
 use ptr::P;
 use parse::PResult;
+use ThinVec;
 use tokenstream::{self, Delimited, ThinTokenStream, TokenTree, TokenStream};
 use symbol::{Symbol, keywords};
-use util::ThinVec;
 
 use std::borrow::Cow;
 use std::cmp;