mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-27 18:26:19 +00:00
Use HIR unsafety information for unsafe syntax highlightng
This commit is contained in:
parent
071eda7d91
commit
9fc0ffe008
37 changed files with 550 additions and 540 deletions
|
|
@ -443,7 +443,7 @@ fn main() {
|
|||
|
||||
|
||||
### `convert_closure_to_fn`
|
||||
**Source:** [convert_closure_to_fn.rs](https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-assists/src/handlers/convert_closure_to_fn.rs#L27)
|
||||
**Source:** [convert_closure_to_fn.rs](https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-assists/src/handlers/convert_closure_to_fn.rs#L25)
|
||||
|
||||
This converts a closure to a freestanding function, changing all captures to parameters.
|
||||
|
||||
|
|
@ -1348,7 +1348,7 @@ fn main() {
|
|||
### `flip_or_pattern`
|
||||
**Source:** [flip_or_pattern.rs](https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-assists/src/handlers/flip_or_pattern.rs#L9)
|
||||
|
||||
Flips two trait bounds.
|
||||
Flips two patterns in an or-pattern.
|
||||
|
||||
#### Before
|
||||
```rust
|
||||
|
|
@ -2278,7 +2278,7 @@ fn bar() {
|
|||
|
||||
|
||||
### `inline_local_variable`
|
||||
**Source:** [inline_local_variable.rs](https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-assists/src/handlers/inline_local_variable.rs#L21)
|
||||
**Source:** [inline_local_variable.rs](https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-assists/src/handlers/inline_local_variable.rs#L17)
|
||||
|
||||
Inlines a local variable.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue