mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2026-03-21 20:34:07 +00:00
Rename ra_syntax -> syntax
This commit is contained in:
@@ -92,7 +92,7 @@ This is primarily useful for performance optimizations, or for bug minimization.
|
||||
|
||||
## Parser Tests
|
||||
|
||||
Tests for the parser (`parser`) live in the `ra_syntax` crate (see `test_data` directory).
|
||||
Tests for the parser (`parser`) live in the `syntax` crate (see `test_data` directory).
|
||||
There are two kinds of tests:
|
||||
|
||||
* Manually written test cases in `parser/ok` and `parser/err`
|
||||
|
||||
@@ -97,13 +97,13 @@ Qualify items from `hir` and `ast`.
|
||||
|
||||
```rust
|
||||
// Good
|
||||
use ra_syntax::ast;
|
||||
use syntax::ast;
|
||||
|
||||
fn frobnicate(func: hir::Function, strukt: ast::StructDef) {}
|
||||
|
||||
// Not as good
|
||||
use hir::Function;
|
||||
use ra_syntax::ast::StructDef;
|
||||
use syntax::ast::StructDef;
|
||||
|
||||
fn frobnicate(func: Function, strukt: StructDef) {}
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user