Use pattern_single instead of pattern in mbe pat
This commit is contained in:
@@ -55,7 +55,7 @@ pub(crate) mod fragments {
|
||||
use super::*;
|
||||
|
||||
pub(crate) use super::{
|
||||
expressions::block_expr, paths::type_path as path, patterns::pattern, types::type_,
|
||||
expressions::block_expr, paths::type_path as path, patterns::pattern_single, types::type_,
|
||||
};
|
||||
|
||||
pub(crate) fn expr(p: &mut Parser) {
|
||||
|
||||
@@ -112,7 +112,7 @@ pub fn parse_fragment(
|
||||
FragmentKind::Path => grammar::fragments::path,
|
||||
FragmentKind::Expr => grammar::fragments::expr,
|
||||
FragmentKind::Type => grammar::fragments::type_,
|
||||
FragmentKind::Pattern => grammar::fragments::pattern,
|
||||
FragmentKind::Pattern => grammar::fragments::pattern_single,
|
||||
FragmentKind::Item => grammar::fragments::item,
|
||||
FragmentKind::Block => grammar::fragments::block_expr,
|
||||
FragmentKind::Visibility => grammar::fragments::opt_visibility,
|
||||
|
||||
Reference in New Issue
Block a user