mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 04:19:13 +00:00
Split change_ and fix_ visibility assists
This commit is contained in:
parent
e3373629cd
commit
cec773926f
5 changed files with 603 additions and 506 deletions
|
@ -331,6 +331,28 @@ fn handle(action: Action) {
|
|||
}
|
||||
```
|
||||
|
||||
## `fix_visibility`
|
||||
|
||||
Makes inaccessible item public.
|
||||
|
||||
```rust
|
||||
// BEFORE
|
||||
mod m {
|
||||
fn frobnicate() {}
|
||||
}
|
||||
fn main() {
|
||||
m::frobnicate┃() {}
|
||||
}
|
||||
|
||||
// AFTER
|
||||
mod m {
|
||||
pub(crate) fn frobnicate() {}
|
||||
}
|
||||
fn main() {
|
||||
m::frobnicate() {}
|
||||
}
|
||||
```
|
||||
|
||||
## `flip_binexpr`
|
||||
|
||||
Flips operands of a binary expression.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue