diff options
Diffstat (limited to 'ale_linters/rust')
-rw-r--r-- | ale_linters/rust/cargo.vim | 1 | ||||
-rw-r--r-- | ale_linters/rust/rustc.vim | 4 |
2 files changed, 5 insertions, 0 deletions
diff --git a/ale_linters/rust/cargo.vim b/ale_linters/rust/cargo.vim index 37fd10a8..e5fe888d 100644 --- a/ale_linters/rust/cargo.vim +++ b/ale_linters/rust/cargo.vim @@ -12,6 +12,7 @@ call ale#Set('rust_cargo_include_features', '') call ale#Set('rust_cargo_use_clippy', 0) call ale#Set('rust_cargo_clippy_options', '') call ale#Set('rust_cargo_target_dir', '') +call ale#Set('rust_only_current_buffer', '0') function! ale_linters#rust#cargo#GetCargoExecutable(bufnr) abort if ale#path#FindNearestFile(a:bufnr, 'Cargo.toml') isnot# '' diff --git a/ale_linters/rust/rustc.vim b/ale_linters/rust/rustc.vim index bc6431ba..c7a06cc7 100644 --- a/ale_linters/rust/rustc.vim +++ b/ale_linters/rust/rustc.vim @@ -2,6 +2,10 @@ " Description: rustc for rust files call ale#Set('rust_rustc_options', '--emit=mir -o /dev/null') +" FIXME Both cargo and rustc uses ale#handlers#rust#HandleRustErrors which +" might or might not require this, depending on the fix for [#1570] +" (https://github.com/dense-analysis/ale/issues/1570). +" call ale#Set('rust_only_current_buffer', '0') function! ale_linters#rust#rustc#RustcCommand(buffer) abort " Try to guess the library search path. If the project is managed by cargo, |