We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f74a0c8 commit 5b79d92Copy full SHA for 5b79d92
crates/hir-ty/src/tests/macros.rs
@@ -1498,6 +1498,11 @@ fn main() {
1498
43..44 '1': i32
1499
58..63 'mut o': i32
1500
66..67 '0': i32
1501
+ !95..104 'thread_id': usize
1502
+ !103..107 '&foo': &'? i32
1503
+ !104..107 'foo': i32
1504
+ !115..120 '&muto': &'? mut i32
1505
+ !119..120 'o': i32
1506
293..294 'o': i32
1507
308..317 'thread_id': usize
1508
"#]],
crates/parser/src/grammar/expressions/atom.rs
@@ -434,6 +434,7 @@ fn parse_options(p: &mut Parser<'_>) {
434
let m = p.start();
435
if !OPTIONS.iter().any(|&syntax| p.eat_contextual_kw(syntax)) {
436
p.err_and_bump("expected asm option");
437
+ m.abandon(p);
438
continue;
439
}
440
m.complete(p, ASM_OPTION);
0 commit comments