mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 05:45:12 +00:00
Don't parse source files to generate macro completion details
This commit is contained in:
parent
b1ab5770c9
commit
6c8c02f625
15 changed files with 157 additions and 204 deletions
|
@ -4102,16 +4102,16 @@ identity!{
|
|||
}
|
||||
"#,
|
||||
expect![[r#"
|
||||
*Copy*
|
||||
*Copy*
|
||||
|
||||
```rust
|
||||
test
|
||||
```
|
||||
```rust
|
||||
test
|
||||
```
|
||||
|
||||
```rust
|
||||
pub macro Copy
|
||||
```
|
||||
"#]],
|
||||
```rust
|
||||
macro Copy
|
||||
```
|
||||
"#]],
|
||||
);
|
||||
}
|
||||
|
||||
|
@ -4126,16 +4126,16 @@ pub macro Copy {}
|
|||
struct Foo;
|
||||
"#,
|
||||
expect![[r#"
|
||||
*Copy*
|
||||
*Copy*
|
||||
|
||||
```rust
|
||||
test
|
||||
```
|
||||
```rust
|
||||
test
|
||||
```
|
||||
|
||||
```rust
|
||||
pub macro Copy
|
||||
```
|
||||
"#]],
|
||||
```rust
|
||||
macro Copy
|
||||
```
|
||||
"#]],
|
||||
);
|
||||
check(
|
||||
r#"
|
||||
|
@ -4148,16 +4148,16 @@ mod foo {
|
|||
struct Foo;
|
||||
"#,
|
||||
expect![[r#"
|
||||
*Copy*
|
||||
*Copy*
|
||||
|
||||
```rust
|
||||
test::foo
|
||||
```
|
||||
```rust
|
||||
test::foo
|
||||
```
|
||||
|
||||
```rust
|
||||
pub macro Copy
|
||||
```
|
||||
"#]],
|
||||
```rust
|
||||
macro Copy
|
||||
```
|
||||
"#]],
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue