Use ThinVec
in ast::Block
.
This commit is contained in:
parent
4143b101f9
commit
b14b7ba5dd
18 changed files with 92 additions and 81 deletions
|
@ -375,7 +375,7 @@ fn mk_decls(cx: &mut ExtCtxt<'_>, macros: &[ProcMacro]) -> P<ast::Item> {
|
|||
});
|
||||
|
||||
let block = cx.expr_block(
|
||||
cx.block(span, vec![cx.stmt_item(span, krate), cx.stmt_item(span, decls_static)]),
|
||||
cx.block(span, thin_vec![cx.stmt_item(span, krate), cx.stmt_item(span, decls_static)]),
|
||||
);
|
||||
|
||||
let anon_constant = cx.item_const(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue