1
1
//Generated file, do not edit by hand, see `xtask/src/codegen`
2
2
=== break-outside-of-loop
3
- **Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide /src/diagnostics /break_outside_of_loop.rs#L3[break_outside_of_loop.rs]
3
+ **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
4
5
5
This diagnostic is triggered if the `break` keyword is used outside of a loop.
6
6
7
7
8
8
// IMPORTANT: master copy of this document lives in the https://github.com/rust-analyzer/rust-analyzer repository
9
9
10
10
== inactive-code
11
- **Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide /src/diagnostics /inactive_code.rs#L9 [inactive_code.rs]
11
+ **Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide_diagnostics /src/handlers /inactive_code.rs#L6 [inactive_code.rs]
12
12
13
13
This diagnostic is shown for code with inactive `#[cfg]` attributes.
14
14
15
15
16
16
// IMPORTANT: master copy of this document lives in the https://github.com/rust-analyzer/rust-analyzer repository
17
17
18
18
== incorrect-ident-case
19
- **Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide /src/diagnostics /incorrect_case.rs#L12 [incorrect_case.rs]
19
+ **Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide_diagnostics /src/handlers /incorrect_case.rs#L13 [incorrect_case.rs]
20
20
21
21
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].
22
22
23
23
24
24
// IMPORTANT: master copy of this document lives in the https://github.com/rust-analyzer/rust-analyzer repository
25
25
26
26
== macro-error
27
- **Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide /src/diagnostics /macro_error.rs#L3[macro_error.rs]
27
+ **Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide_diagnostics /src/handlers /macro_error.rs#L3[macro_error.rs]
28
28
29
29
This diagnostic is shown for macro expansion errors.
30
30
31
31
32
32
// IMPORTANT: master copy of this document lives in the https://github.com/rust-analyzer/rust-analyzer repository
33
33
34
34
== mismatched-arg-count
35
- **Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide /src/diagnostics /mismatched_arg_count.rs#L3[mismatched_arg_count.rs]
35
+ **Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide_diagnostics /src/handlers /mismatched_arg_count.rs#L3[mismatched_arg_count.rs]
36
36
37
37
This diagnostic is triggered if a function is invoked with an incorrect amount of arguments.
38
38
39
39
40
40
// IMPORTANT: master copy of this document lives in the https://github.com/rust-analyzer/rust-analyzer repository
41
41
42
42
== missing-fields
43
- **Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide /src/diagnostics /missing_fields.rs#L11 [missing_fields.rs]
43
+ **Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide_diagnostics /src/handlers /missing_fields.rs#L10 [missing_fields.rs]
44
44
45
45
This diagnostic is triggered if record lacks some fields that exist in the corresponding structure.
46
46
@@ -56,15 +56,15 @@ let a = A { a: 10 };
56
56
// IMPORTANT: master copy of this document lives in the https://github.com/rust-analyzer/rust-analyzer repository
57
57
58
58
== missing-match-arm
59
- **Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide /src/diagnostics /missing_match_arms.rs#L5[missing_match_arms.rs]
59
+ **Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide_diagnostics /src/handlers /missing_match_arms.rs#L5[missing_match_arms.rs]
60
60
61
61
This diagnostic is triggered if `match` block is missing one or more match arms.
62
62
63
63
64
64
// IMPORTANT: master copy of this document lives in the https://github.com/rust-analyzer/rust-analyzer repository
65
65
66
66
== missing-ok-or-some-in-tail-expr
67
- **Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide /src/diagnostics /missing_ok_or_some_in_tail_expr.rs#L9 [missing_ok_or_some_in_tail_expr.rs]
67
+ **Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide_diagnostics /src/handlers /missing_ok_or_some_in_tail_expr.rs#L8 [missing_ok_or_some_in_tail_expr.rs]
68
68
69
69
This diagnostic is triggered if a block that should return `Result` returns a value not wrapped in `Ok`,
70
70
or if a block that should return `Option` returns a value not wrapped in `Some`.
@@ -81,64 +81,72 @@ fn foo() -> Result<u8, ()> {
81
81
// IMPORTANT: master copy of this document lives in the https://github.com/rust-analyzer/rust-analyzer repository
82
82
83
83
== missing-unsafe
84
- **Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide /src/diagnostics /missing_unsafe.rs#L3[missing_unsafe.rs]
84
+ **Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide_diagnostics /src/handlers /missing_unsafe.rs#L3[missing_unsafe.rs]
85
85
86
86
This diagnostic is triggered if an operation marked as `unsafe` is used outside of an `unsafe` function or block.
87
87
88
88
89
89
// IMPORTANT: master copy of this document lives in the https://github.com/rust-analyzer/rust-analyzer repository
90
90
91
91
== no-such-field
92
- **Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide /src/diagnostics /no_such_field.rs#L14 [no_such_field.rs]
92
+ **Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide_diagnostics /src/handlers /no_such_field.rs#L11 [no_such_field.rs]
93
93
94
94
This diagnostic is triggered if created structure does not have field provided in record.
95
95
96
96
97
97
// IMPORTANT: master copy of this document lives in the https://github.com/rust-analyzer/rust-analyzer repository
98
98
99
99
== remove-this-semicolon
100
- **Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide /src/diagnostics /remove_this_semicolon.rs#L11 [remove_this_semicolon.rs]
100
+ **Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide_diagnostics /src/handlers /remove_this_semicolon.rs#L8 [remove_this_semicolon.rs]
101
101
102
102
This diagnostic is triggered when there's an erroneous `;` at the end of the block.
103
103
104
104
105
105
// IMPORTANT: master copy of this document lives in the https://github.com/rust-analyzer/rust-analyzer repository
106
106
107
107
== replace-filter-map-next-with-find-map
108
- **Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide /src/diagnostics /replace_filter_map_next_with_find_map.rs#L14 [replace_filter_map_next_with_find_map.rs]
108
+ **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]
109
109
110
110
This diagnostic is triggered when `.filter_map(..).next()` is used, rather than the more concise `.find_map(..)`.
111
111
112
112
113
113
// IMPORTANT: master copy of this document lives in the https://github.com/rust-analyzer/rust-analyzer repository
114
114
115
115
== unimplemented-builtin-macro
116
- **Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide /src/diagnostics /unimplemented_builtin_macro.rs#L6 [unimplemented_builtin_macro.rs]
116
+ **Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide_diagnostics /src/handlers /unimplemented_builtin_macro.rs#L3 [unimplemented_builtin_macro.rs]
117
117
118
118
This diagnostic is shown for builtin macros which are not yet implemented by rust-analyzer
119
119
120
120
121
121
// IMPORTANT: master copy of this document lives in the https://github.com/rust-analyzer/rust-analyzer repository
122
122
123
123
== unlinked-file
124
- **Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide /src/diagnostics /unlinked_file.rs#L25 [unlinked_file.rs]
124
+ **Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide_diagnostics /src/handlers /unlinked_file.rs#L17 [unlinked_file.rs]
125
125
126
126
This diagnostic is shown for files that are not included in any crate, or files that are part of
127
127
crates rust-analyzer failed to discover. The file will not have IDE features available.
128
128
129
129
130
+ // IMPORTANT: master copy of this document lives in the https://github.com/rust-analyzer/rust-analyzer repository
131
+
132
+ == unnecessary-braces
133
+ **Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide_diagnostics/src/handlers/useless_braces.rs#L8[useless_braces.rs]
134
+
135
+ Diagnostic for unnecessary braces in `use` items.
136
+
137
+
130
138
// IMPORTANT: master copy of this document lives in the https://github.com/rust-analyzer/rust-analyzer repository
131
139
132
140
== unresolved-extern-crate
133
- **Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide /src/diagnostics /unresolved_extern_crate.rs#L3[unresolved_extern_crate.rs]
141
+ **Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide_diagnostics /src/handlers /unresolved_extern_crate.rs#L3[unresolved_extern_crate.rs]
134
142
135
143
This diagnostic is triggered if rust-analyzer is unable to discover referred extern crate.
136
144
137
145
138
146
// IMPORTANT: master copy of this document lives in the https://github.com/rust-analyzer/rust-analyzer repository
139
147
140
148
== unresolved-import
141
- **Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide /src/diagnostics /unresolved_import.rs#L3[unresolved_import.rs]
149
+ **Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide_diagnostics /src/handlers /unresolved_import.rs#L3[unresolved_import.rs]
142
150
143
151
This diagnostic is triggered if rust-analyzer is unable to resolve a path in
144
152
a `use` declaration.
@@ -147,7 +155,7 @@ a `use` declaration.
147
155
// IMPORTANT: master copy of this document lives in the https://github.com/rust-analyzer/rust-analyzer repository
148
156
149
157
== unresolved-macro-call
150
- **Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide /src/diagnostics /unresolved_macro_call.rs#L6[unresolved_macro_call.rs]
158
+ **Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide_diagnostics /src/handlers /unresolved_macro_call.rs#L6[unresolved_macro_call.rs]
151
159
152
160
This diagnostic is triggered if rust-analyzer is unable to resolve the path
153
161
to a macro in a macro invocation.
@@ -156,15 +164,15 @@ to a macro in a macro invocation.
156
164
// IMPORTANT: master copy of this document lives in the https://github.com/rust-analyzer/rust-analyzer repository
157
165
158
166
== unresolved-module
159
- **Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide /src/diagnostics /unresolved_module.rs#L8 [unresolved_module.rs]
167
+ **Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide_diagnostics /src/handlers /unresolved_module.rs#L7 [unresolved_module.rs]
160
168
161
169
This diagnostic is triggered if rust-analyzer is unable to discover referred module.
162
170
163
171
164
172
// IMPORTANT: master copy of this document lives in the https://github.com/rust-analyzer/rust-analyzer repository
165
173
166
174
== unresolved-proc-macro
167
- **Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide /src/diagnostics /unresolved_proc_macro.rs#L6 [unresolved_proc_macro.rs]
175
+ **Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide_diagnostics /src/handlers /unresolved_proc_macro.rs#L3 [unresolved_proc_macro.rs]
168
176
169
177
This diagnostic is shown when a procedural macro can not be found. This usually means that
170
178
procedural macro support is simply disabled (and hence is only a weak hint instead of an error),
0 commit comments