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/diagnostics/plugin.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/diagnostics/plugin.rs')
| -rw-r--r-- | src/libsyntax/diagnostics/plugin.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/diagnostics/plugin.rs b/src/libsyntax/diagnostics/plugin.rs index 4e50299e836..81c8e0bdb82 100644 --- a/src/libsyntax/diagnostics/plugin.rs +++ b/src/libsyntax/diagnostics/plugin.rs @@ -215,7 +215,7 @@ pub fn expand_build_diagnostic_array<'cx>(ecx: &'cx mut ExtCtxt, let ty = ecx.ty( span, - ast::TyKind::FixedLengthVec( + ast::TyKind::Array( ecx.ty( span, ast::TyKind::Tup(vec![ty_str.clone(), ty_str]) |
