From 73ec2ab184f6d8828ebcdca418a7ae83bb60b0bc Mon Sep 17 00:00:00 2001 From: Emil Lauridsen Date: Fri, 7 Feb 2020 13:51:51 +0100 Subject: Update async unsafe fn ordering. As of rust-lang/rust#61319 the correct order for functions that are both unsafe and async is: `async unsafe fn` and not `unsafe async fn`. This commit updates the parser tests to reflect this, and corrects parsing behavior to accept the correct ordering. Fixes #3025 --- crates/ra_syntax/test_data/parser/inline/ok/0128_combined_fns.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'crates/ra_syntax/test_data/parser/inline/ok/0128_combined_fns.txt') diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0128_combined_fns.txt b/crates/ra_syntax/test_data/parser/inline/ok/0128_combined_fns.txt index cae75c41d..8a972cdb2 100644 --- a/crates/ra_syntax/test_data/parser/inline/ok/0128_combined_fns.txt +++ b/crates/ra_syntax/test_data/parser/inline/ok/0128_combined_fns.txt @@ -1,8 +1,8 @@ SOURCE_FILE@[0; 50) FN_DEF@[0; 24) - UNSAFE_KW@[0; 6) "unsafe" - WHITESPACE@[6; 7) " " - ASYNC_KW@[7; 12) "async" + ASYNC_KW@[0; 5) "async" + WHITESPACE@[5; 6) " " + UNSAFE_KW@[6; 12) "unsafe" WHITESPACE@[12; 13) " " FN_KW@[13; 15) "fn" WHITESPACE@[15; 16) " " -- cgit v1.2.3