Rename ra_syntax -> syntax
This commit is contained in:
parent
3d6889cba7
commit
a1c187eef3
958 changed files with 353 additions and 363 deletions
|
|
@ -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) {}
|
||||
```
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue