]> git.lizzy.rs Git - rust.git/commit
Auto merge of #53085 - ljedrz:cleanup_syntax_structures, r=ljedrz
authorbors <bors@rust-lang.org>
Tue, 14 Aug 2018 15:09:37 +0000 (15:09 +0000)
committerbors <bors@rust-lang.org>
Tue, 14 Aug 2018 15:09:37 +0000 (15:09 +0000)
commit23f09bbed4ef12c5f9db198c22f50b608ea6c6d5
tree547c1cea1a62ace01f8cef6c8120612596208083
parentf45f52532a394d2d607fc5693364ad820049376d
parente5e6375352636360add297c1f5a1f37ce71506e9
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`.
src/libsyntax/ast.rs