Merge pull request #19657 from ChayimFriedman2/better-offset-of

feat: Better support `offset_of!()`
This commit is contained in:
Lukas Wirth 2025-04-22 13:28:34 +00:00 committed by GitHub
commit 1c68d83569
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 230 additions and 3 deletions

View file

@ -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"); }