|
13 | 13 | """ |
14 | 14 |
|
15 | 15 | # Notes: |
16 | | -# - -Zno-trans produces a warning about being unstable (see |
17 | | -# https://github.com/rust-lang/rust/issues/31847). I am uncertain about the |
18 | | -# long-term prospects of how this will be resolved. There are a few things |
19 | | -# to consider: |
20 | | -# - Cargo recently added "cargo check" |
21 | | -# (https://github.com/rust-lang/cargo/pull/3296), which more or less |
22 | | -# does the same thing. See also the original "cargo check" addon |
23 | | -# (https://github.com/rsolomo/cargo-check/). |
| 16 | +# - -Zno-trans has been deprecated, and will only be available with the |
| 17 | +# nightly compiler starting with rust 1.19. Using "cargo check" is the |
| 18 | +# preferred alternative, though it currently has some limitations. See: |
| 19 | +# |
| 20 | +# - Unstable flags removed: |
| 21 | +# https://github.com/rust-lang/rust/issues/31847 |
| 22 | +# |
| 23 | +# - Cargo check added in rust 1.16: |
| 24 | +# https://github.com/rust-lang/cargo/pull/3296 (based on original |
| 25 | +# "cargo check" addon https://github.com/rsolomo/cargo-check/) |
| 26 | +# |
24 | 27 | # - RLS was recently released |
25 | 28 | # (https://github.com/rust-lang-nursery/rls). It's unclear to me if |
26 | 29 | # this will perform full-linting that could replace this or not. |
27 | 30 | # |
| 31 | +# - "cargo check" ignores #[test]: |
| 32 | +# https://github.com/rust-lang/cargo/issues/3431 |
| 33 | +# |
| 34 | +# - "cargo check" will not re-issue errors/warnings if nothing has |
| 35 | +# changed. This generally should not be a problem since on-save |
| 36 | +# syntax only runs after the file has been saved which updates the |
| 37 | +# timestamp, but it's something to be careful about. See: |
| 38 | +# https://github.com/rust-lang/cargo/issues/3624 |
| 39 | +# |
28 | 40 | # - -Zno-trans prevents some warnings and errors from being generated. For |
29 | | -# example, see const-err.rs. "cargo check" will solve this, but it is |
30 | | -# nightly only right now. Other issues: |
| 41 | +# example, see const-err.rs. "cargo check" does not have this problem. |
| 42 | +# Other issues: |
31 | 43 | # - Errors generated by compiling an extern crate do not not output as |
32 | 44 | # json. |
33 | 45 |
|
@@ -104,7 +116,7 @@ def get_rustc_messages(self): |
104 | 116 |
|
105 | 117 | :raises rust_proc.ProcessTerminatedError: Check was canceled. |
106 | 118 | """ |
107 | | - method = util.get_setting('rust_syntax_checking_method', 'no-trans') |
| 119 | + method = util.get_setting('rust_syntax_checking_method', 'check') |
108 | 120 | settings = cargo_settings.CargoSettings(self.window) |
109 | 121 | settings.load() |
110 | 122 | command_info = cargo_settings.CARGO_COMMANDS[method] |
|
0 commit comments