Skip to content

Commit 48e2b11

Browse files
committed
Changelog #137
1 parent 4410da5 commit 48e2b11

6 files changed

Lines changed: 205 additions & 177 deletions

File tree

generated_assists.adoc

Lines changed: 99 additions & 99 deletions
Large diffs are not rendered by default.

generated_config.adoc

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Run build scripts (`build.rs`) for more precise code analysis.
2929
--
3030
Override the command rust-analyzer uses to run build scripts and
3131
build procedural macros. The command is required to output json
32-
and should therefor include `--message-format=json` or a similar
32+
and should therefore include `--message-format=json` or a similar
3333
option.
3434

3535
By default, a cargo invocation will be constructed for the configured
@@ -44,7 +44,7 @@ cargo check --quiet --workspace --message-format=json --all-targets
4444
+
4545
--
4646
Use `RUSTC_WRAPPER=rust-analyzer` when running build scripts to
47-
avoid compiling unnecessary things.
47+
avoid checking unnecessary things.
4848
--
4949
[[rust-analyzer.cargo.features]]rust-analyzer.cargo.features (default: `[]`)::
5050
+
@@ -99,21 +99,24 @@ Extra arguments for `cargo check`.
9999
List of features to activate. Defaults to
100100
`#rust-analyzer.cargo.features#`.
101101

102-
Set to `"all"` to pass `--all-features` to cargo.
102+
Set to `"all"` to pass `--all-features` to Cargo.
103103
--
104104
[[rust-analyzer.checkOnSave.noDefaultFeatures]]rust-analyzer.checkOnSave.noDefaultFeatures (default: `null`)::
105105
+
106106
--
107-
Whether to pass `--no-default-features` to cargo. Defaults to
107+
Whether to pass `--no-default-features` to Cargo. Defaults to
108108
`#rust-analyzer.cargo.noDefaultFeatures#`.
109109
--
110110
[[rust-analyzer.checkOnSave.overrideCommand]]rust-analyzer.checkOnSave.overrideCommand (default: `null`)::
111111
+
112112
--
113-
Override the command rust-analyzer uses to run build scripts and
114-
build procedural macros. The command is required to output json
115-
and should therefor include `--message-format=json` or a similar
116-
option.
113+
Override the command rust-analyzer uses instead of `cargo check` for
114+
diagnostics on save. The command is required to output json and
115+
should therefor include `--message-format=json` or a similar option.
116+
117+
If you're changing this because you're using some tool wrapping
118+
Cargo, you might also want to change
119+
`#rust-analyzer.cargo.buildScripts.overrideCommand#`.
117120

118121
An example command would be:
119122

generated_diagnostic.adoc

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,50 +1,50 @@
11
//! Generated by `sourcegen_diagnostic_docs`, do not edit by hand.
22

33
=== break-outside-of-loop
4-
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide-diagnostics/src/handlers/break_outside_of_loop.rs#L3[break_outside_of_loop.rs]
4+
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-diagnostics/src/handlers/break_outside_of_loop.rs#L3[break_outside_of_loop.rs]
55

66
This diagnostic is triggered if the `break` keyword is used outside of a loop.
77

88

99
=== inactive-code
10-
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide-diagnostics/src/handlers/inactive_code.rs#L6[inactive_code.rs]
10+
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-diagnostics/src/handlers/inactive_code.rs#L6[inactive_code.rs]
1111

1212
This diagnostic is shown for code with inactive `#[cfg]` attributes.
1313

1414

1515
=== incorrect-ident-case
16-
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide-diagnostics/src/handlers/incorrect_case.rs#L13[incorrect_case.rs]
16+
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-diagnostics/src/handlers/incorrect_case.rs#L13[incorrect_case.rs]
1717

1818
This diagnostic is triggered if an item name doesn't follow https://doc.rust-lang.org/1.0.0/style/style/naming/README.html[Rust naming convention].
1919

2020

2121
=== invalid-derive-target
22-
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide-diagnostics/src/handlers/invalid_derive_target.rs#L3[invalid_derive_target.rs]
22+
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-diagnostics/src/handlers/invalid_derive_target.rs#L3[invalid_derive_target.rs]
2323

2424
This diagnostic is shown when the derive attribute is used on an item other than a `struct`,
2525
`enum` or `union`.
2626

2727

2828
=== macro-error
29-
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide-diagnostics/src/handlers/macro_error.rs#L3[macro_error.rs]
29+
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-diagnostics/src/handlers/macro_error.rs#L3[macro_error.rs]
3030

3131
This diagnostic is shown for macro expansion errors.
3232

3333

3434
=== malformed-derive
35-
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide-diagnostics/src/handlers/malformed_derive.rs#L3[malformed_derive.rs]
35+
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-diagnostics/src/handlers/malformed_derive.rs#L3[malformed_derive.rs]
3636

3737
This diagnostic is shown when the derive attribute has invalid input.
3838

3939

4040
=== mismatched-arg-count
41-
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide-diagnostics/src/handlers/mismatched_arg_count.rs#L10[mismatched_arg_count.rs]
41+
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-diagnostics/src/handlers/mismatched_arg_count.rs#L10[mismatched_arg_count.rs]
4242

4343
This diagnostic is triggered if a function is invoked with an incorrect amount of arguments.
4444

4545

4646
=== missing-fields
47-
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide-diagnostics/src/handlers/missing_fields.rs#L17[missing_fields.rs]
47+
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-diagnostics/src/handlers/missing_fields.rs#L17[missing_fields.rs]
4848

4949
This diagnostic is triggered if record lacks some fields that exist in the corresponding structure.
5050

@@ -58,83 +58,83 @@ let a = A { a: 10 };
5858

5959

6060
=== missing-match-arm
61-
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide-diagnostics/src/handlers/missing_match_arms.rs#L5[missing_match_arms.rs]
61+
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-diagnostics/src/handlers/missing_match_arms.rs#L5[missing_match_arms.rs]
6262

6363
This diagnostic is triggered if `match` block is missing one or more match arms.
6464

6565

6666
=== missing-unsafe
67-
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide-diagnostics/src/handlers/missing_unsafe.rs#L3[missing_unsafe.rs]
67+
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-diagnostics/src/handlers/missing_unsafe.rs#L3[missing_unsafe.rs]
6868

6969
This diagnostic is triggered if an operation marked as `unsafe` is used outside of an `unsafe` function or block.
7070

7171

7272
=== no-such-field
73-
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide-diagnostics/src/handlers/no_such_field.rs#L11[no_such_field.rs]
73+
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-diagnostics/src/handlers/no_such_field.rs#L11[no_such_field.rs]
7474

7575
This diagnostic is triggered if created structure does not have field provided in record.
7676

7777

7878
=== replace-filter-map-next-with-find-map
79-
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide-diagnostics/src/handlers/replace_filter_map_next_with_find_map.rs#L11[replace_filter_map_next_with_find_map.rs]
79+
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-diagnostics/src/handlers/replace_filter_map_next_with_find_map.rs#L11[replace_filter_map_next_with_find_map.rs]
8080

8181
This diagnostic is triggered when `.filter_map(..).next()` is used, rather than the more concise `.find_map(..)`.
8282

8383

8484
=== type-mismatch
85-
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide-diagnostics/src/handlers/type_mismatch.rs#L11[type_mismatch.rs]
85+
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-diagnostics/src/handlers/type_mismatch.rs#L11[type_mismatch.rs]
8686

8787
This diagnostic is triggered when the type of an expression does not match
8888
the expected type.
8989

9090

9191
=== unimplemented-builtin-macro
92-
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide-diagnostics/src/handlers/unimplemented_builtin_macro.rs#L3[unimplemented_builtin_macro.rs]
92+
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-diagnostics/src/handlers/unimplemented_builtin_macro.rs#L3[unimplemented_builtin_macro.rs]
9393

9494
This diagnostic is shown for builtin macros which are not yet implemented by rust-analyzer
9595

9696

9797
=== unlinked-file
98-
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide-diagnostics/src/handlers/unlinked_file.rs#L17[unlinked_file.rs]
98+
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-diagnostics/src/handlers/unlinked_file.rs#L17[unlinked_file.rs]
9999

100100
This diagnostic is shown for files that are not included in any crate, or files that are part of
101101
crates rust-analyzer failed to discover. The file will not have IDE features available.
102102

103103

104104
=== unnecessary-braces
105-
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide-diagnostics/src/handlers/useless_braces.rs#L8[useless_braces.rs]
105+
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-diagnostics/src/handlers/useless_braces.rs#L8[useless_braces.rs]
106106

107107
Diagnostic for unnecessary braces in `use` items.
108108

109109

110110
=== unresolved-extern-crate
111-
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide-diagnostics/src/handlers/unresolved_extern_crate.rs#L3[unresolved_extern_crate.rs]
111+
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-diagnostics/src/handlers/unresolved_extern_crate.rs#L3[unresolved_extern_crate.rs]
112112

113113
This diagnostic is triggered if rust-analyzer is unable to discover referred extern crate.
114114

115115

116116
=== unresolved-import
117-
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide-diagnostics/src/handlers/unresolved_import.rs#L3[unresolved_import.rs]
117+
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-diagnostics/src/handlers/unresolved_import.rs#L3[unresolved_import.rs]
118118

119119
This diagnostic is triggered if rust-analyzer is unable to resolve a path in
120120
a `use` declaration.
121121

122122

123123
=== unresolved-macro-call
124-
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide-diagnostics/src/handlers/unresolved_macro_call.rs#L3[unresolved_macro_call.rs]
124+
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-diagnostics/src/handlers/unresolved_macro_call.rs#L3[unresolved_macro_call.rs]
125125

126126
This diagnostic is triggered if rust-analyzer is unable to resolve the path
127127
to a macro in a macro invocation.
128128

129129

130130
=== unresolved-module
131-
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide-diagnostics/src/handlers/unresolved_module.rs#L8[unresolved_module.rs]
131+
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-diagnostics/src/handlers/unresolved_module.rs#L8[unresolved_module.rs]
132132

133133
This diagnostic is triggered if rust-analyzer is unable to discover referred module.
134134

135135

136136
=== unresolved-proc-macro
137-
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide-diagnostics/src/handlers/unresolved_proc_macro.rs#L5[unresolved_proc_macro.rs]
137+
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-diagnostics/src/handlers/unresolved_proc_macro.rs#L5[unresolved_proc_macro.rs]
138138

139139
This diagnostic is shown when a procedural macro can not be found. This usually means that
140140
procedural macro support is simply disabled (and hence is only a weak hint instead of an error),

0 commit comments

Comments
 (0)