mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-26 21:13:37 +00:00
Fix test
This commit is contained in:
parent
5916da2c29
commit
76c67dd229
5 changed files with 18 additions and 16 deletions
|
@ -60,7 +60,6 @@ pub(super) fn item_or_macro(p: &mut Parser<'_>, stop_on_r_curly: bool) {
|
|||
|
||||
// test macro_rules_as_macro_name
|
||||
// macro_rules! {}
|
||||
// macro_rules! {};
|
||||
// macro_rules! ();
|
||||
// macro_rules! [];
|
||||
// fn main() {
|
||||
|
@ -68,6 +67,7 @@ pub(super) fn item_or_macro(p: &mut Parser<'_>, stop_on_r_curly: bool) {
|
|||
// }
|
||||
|
||||
// test_err macro_rules_as_macro_name
|
||||
// macro_rules! {};
|
||||
// macro_rules! ()
|
||||
// macro_rules! []
|
||||
if paths::is_use_path_start(p)
|
||||
|
|
|
@ -1,4 +1,17 @@
|
|||
SOURCE_FILE
|
||||
MACRO_CALL
|
||||
PATH
|
||||
PATH_SEGMENT
|
||||
NAME_REF
|
||||
IDENT "macro_rules"
|
||||
BANG "!"
|
||||
WHITESPACE " "
|
||||
TOKEN_TREE
|
||||
L_CURLY "{"
|
||||
R_CURLY "}"
|
||||
ERROR
|
||||
SEMICOLON ";"
|
||||
WHITESPACE "\n"
|
||||
MACRO_CALL
|
||||
PATH
|
||||
PATH_SEGMENT
|
||||
|
@ -21,5 +34,6 @@ SOURCE_FILE
|
|||
L_BRACK "["
|
||||
R_BRACK "]"
|
||||
WHITESPACE "\n"
|
||||
error 15: expected SEMICOLON
|
||||
error 31: expected SEMICOLON
|
||||
error 15: expected an item
|
||||
error 32: expected SEMICOLON
|
||||
error 48: expected SEMICOLON
|
||||
|
|
|
@ -1,2 +1,3 @@
|
|||
macro_rules! {};
|
||||
macro_rules! ()
|
||||
macro_rules! []
|
||||
|
|
|
@ -10,18 +10,6 @@ SOURCE_FILE
|
|||
L_CURLY "{"
|
||||
R_CURLY "}"
|
||||
WHITESPACE "\n"
|
||||
MACRO_CALL
|
||||
PATH
|
||||
PATH_SEGMENT
|
||||
NAME_REF
|
||||
IDENT "macro_rules"
|
||||
BANG "!"
|
||||
WHITESPACE " "
|
||||
TOKEN_TREE
|
||||
L_CURLY "{"
|
||||
R_CURLY "}"
|
||||
SEMICOLON ";"
|
||||
WHITESPACE "\n"
|
||||
MACRO_CALL
|
||||
PATH
|
||||
PATH_SEGMENT
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
macro_rules! {}
|
||||
macro_rules! {};
|
||||
macro_rules! ();
|
||||
macro_rules! [];
|
||||
fn main() {
|
||||
|
|
Loading…
Reference in a new issue