mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-11-01 12:24:29 +00:00
Merge pull request #19657 from ChayimFriedman2/better-offset-of
feat: Better support `offset_of!()`
This commit is contained in:
commit
1c68d83569
9 changed files with 230 additions and 3 deletions
|
|
@ -422,6 +422,10 @@ mod ok {
|
|||
run_and_expect_no_errors("test_data/parser/inline/ok/nocontentexpr_after_item.rs");
|
||||
}
|
||||
#[test]
|
||||
fn offset_of_parens() {
|
||||
run_and_expect_no_errors("test_data/parser/inline/ok/offset_of_parens.rs");
|
||||
}
|
||||
#[test]
|
||||
fn or_pattern() { run_and_expect_no_errors("test_data/parser/inline/ok/or_pattern.rs"); }
|
||||
#[test]
|
||||
fn param_list() { run_and_expect_no_errors("test_data/parser/inline/ok/param_list.rs"); }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue