diff options
| author | Jonas Schievink <jonasschievink@gmail.com> | 2016-09-20 16:54:24 +0200 |
|---|---|---|
| committer | Jonas Schievink <jonasschievink@gmail.com> | 2016-09-28 22:31:18 +0200 |
| commit | 48e5199de366ed2945d1103f0b6c8aa542604ebb (patch) | |
| tree | d5386e43fc15642d98058fa10a7fa29843237f93 /src/libsyntax/test.rs | |
| parent | cf0b7bdd0c2920fcf77da6608d4829945a110b7e (diff) | |
| download | rust-48e5199de366ed2945d1103f0b6c8aa542604ebb.tar.gz rust-48e5199de366ed2945d1103f0b6c8aa542604ebb.zip | |
libsyntax: clearer names for some AST parts
This applies the HIR changes from the previous commits to the AST, and is thus a syntax-[breaking-change] Renames `PatKind::Vec` to `PatKind::Slice`, since these are called slice patterns, not vec patterns. Renames `TyKind::Vec`, which represents the type `[T]`, to `TyKind::Slice`. Renames `TyKind::FixedLengthVec` to `TyKind::Array`.
Diffstat (limited to 'src/libsyntax/test.rs')
| -rw-r--r-- | src/libsyntax/test.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/test.rs b/src/libsyntax/test.rs index e4510520a55..2bc5447cccc 100644 --- a/src/libsyntax/test.rs +++ b/src/libsyntax/test.rs @@ -564,7 +564,7 @@ fn mk_tests(cx: &TestCtxt) -> P<ast::Item> { let static_lt = ecx.lifetime(sp, keywords::StaticLifetime.name()); // &'static [self::test::TestDescAndFn] let static_type = ecx.ty_rptr(sp, - ecx.ty(sp, ast::TyKind::Vec(struct_type)), + ecx.ty(sp, ast::TyKind::Slice(struct_type)), Some(static_lt), ast::Mutability::Immutable); // static TESTS: $static_type = &[...]; |
