mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-26 20:09:19 +00:00
Only parse safe
as contextual kw in extern blocks
I don't like the party of `bool`s that is becoming, but two isn't worth a refactoring yet IMO.
This commit is contained in:
parent
cd206f5c9b
commit
3a8dc27e72
7 changed files with 47 additions and 8 deletions
|
@ -527,6 +527,10 @@ mod ok {
|
|||
run_and_expect_no_errors("test_data/parser/inline/ok/return_type_syntax_in_path.rs");
|
||||
}
|
||||
#[test]
|
||||
fn safe_outside_of_extern() {
|
||||
run_and_expect_no_errors("test_data/parser/inline/ok/safe_outside_of_extern.rs");
|
||||
}
|
||||
#[test]
|
||||
fn self_param() { run_and_expect_no_errors("test_data/parser/inline/ok/self_param.rs"); }
|
||||
#[test]
|
||||
fn self_param_outer_attr() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue