rust-analyzer guided enum variant structification
This commit is contained in:
parent
35d06f9c74
commit
b08a557f80
16 changed files with 36 additions and 25 deletions
|
@ -623,7 +623,12 @@ impl<'a> ExtCtxt<'a> {
|
|||
mutbl: ast::Mutability,
|
||||
expr: P<ast::Expr>,
|
||||
) -> P<ast::Item> {
|
||||
self.item(span, name, AttrVec::new(), ast::ItemKind::Static(ty, mutbl, Some(expr)))
|
||||
self.item(
|
||||
span,
|
||||
name,
|
||||
AttrVec::new(),
|
||||
ast::ItemKind::Static(ast::Static(ty, mutbl, Some(expr))),
|
||||
)
|
||||
}
|
||||
|
||||
pub fn item_const(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue