Rollup merge of #36599 - jonas-schievink:whats-a-pirates-favorite-data-structure, r=pnkfelix
Contains a syntax-[breaking-change] as a separate commit (cc #31645).nnAlso renames slice patterns from `PatKind::Vec` to `PatKind::Slice`.
This commit is contained in:
commit
259d1fcd47
42 changed files with 121 additions and 156 deletions
|
@ -572,7 +572,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 = &[...];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue