mirror of
https://github.com/dense-analysis/ale
synced 2025-01-04 21:19:57 +00:00
Fix Rust linter/fixer listing
This commit is contained in:
parent
9c797961fa
commit
715733f44d
@ -9,7 +9,7 @@ Integration Information
|
|||||||
files for Rust distributed in Vim >=8.0.0501 or upstream:
|
files for Rust distributed in Vim >=8.0.0501 or upstream:
|
||||||
https://github.com/rust-lang/rust.vim
|
https://github.com/rust-lang/rust.vim
|
||||||
|
|
||||||
Note that there are three possible linters for Rust files:
|
Note that there are several possible linters and fixers for Rust files:
|
||||||
|
|
||||||
1. rustc -- The Rust compiler is used to check the currently edited file.
|
1. rustc -- The Rust compiler is used to check the currently edited file.
|
||||||
So, if your project consists of multiple files, you will get some errors
|
So, if your project consists of multiple files, you will get some errors
|
||||||
@ -23,12 +23,12 @@ Integration Information
|
|||||||
over cargo. rls implements the Language Server Protocol for incremental
|
over cargo. rls implements the Language Server Protocol for incremental
|
||||||
compilation of Rust code, and can check Rust files while you type. `rls`
|
compilation of Rust code, and can check Rust files while you type. `rls`
|
||||||
requires Rust files to contained in Cargo projects.
|
requires Rust files to contained in Cargo projects.
|
||||||
3. analyzer -- If you have rust-analyzer installed, you might prefer using
|
4. analyzer -- If you have rust-analyzer installed, you might prefer using
|
||||||
this linter over cargo and rls. rust-analyzer also implements the
|
this linter over cargo and rls. rust-analyzer also implements the
|
||||||
Language Server Protocol for incremental compilation of Rust code, and is
|
Language Server Protocol for incremental compilation of Rust code, and is
|
||||||
the next iteration of rls. rust-analyzer, like rls, requires Rust files
|
the next iteration of rls. rust-analyzer, like rls, requires Rust files
|
||||||
to contained in Cargo projects.
|
to contained in Cargo projects.
|
||||||
4. rustfmt -- If you have `rustfmt` installed, you can use it as a fixer to
|
5. rustfmt -- If you have `rustfmt` installed, you can use it as a fixer to
|
||||||
consistently reformat your Rust code.
|
consistently reformat your Rust code.
|
||||||
|
|
||||||
Only cargo is enabled by default. To switch to using rustc instead of cargo,
|
Only cargo is enabled by default. To switch to using rustc instead of cargo,
|
||||||
|
Loading…
Reference in New Issue
Block a user