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/hir_ty /src/diagnostics.rs#L250[diagnostics .rs]
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]
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/hir /src/diagnostics.rs#L129[diagnostics .rs]
11
+ **Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide /src/diagnostics/inactive_code .rs#L9[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/hir_ty /src/diagnostics.rs#L381[diagnostics .rs]
19
+ **Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide /src/diagnostics/incorrect_case .rs#L12[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/hir /src/diagnostics.rs#L202[diagnostics .rs]
27
+ **Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide /src/diagnostics/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/hir_ty /src/diagnostics.rs#L298[diagnostics .rs]
35
+ **Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide /src/diagnostics/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
+ // IMPORTANT: master copy of this document lives in the https://github.com/rust-analyzer/rust-analyzer repository
41
+
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]
44
+
45
+ This diagnostic is triggered if record lacks some fields that exist in the corresponding structure.
46
+
47
+ Example:
48
+
49
+ ```rust
50
+ struct A { a: u8, b: u8 }
51
+
52
+ let a = A { a: 10 };
53
+ ```
54
+
55
+
40
56
// IMPORTANT: master copy of this document lives in the https://github.com/rust-analyzer/rust-analyzer repository
41
57
42
58
== missing-match-arm
43
- **Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/hir_ty /src/diagnostics.rs#L166[diagnostics .rs]
59
+ **Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide /src/diagnostics/missing_match_arms .rs#L5[missing_match_arms .rs]
44
60
45
61
This diagnostic is triggered if `match` block is missing one or more match arms.
46
62
47
63
48
64
// IMPORTANT: master copy of this document lives in the https://github.com/rust-analyzer/rust-analyzer repository
49
65
50
66
== missing-ok-or-some-in-tail-expr
51
- **Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/hir_ty /src/diagnostics.rs#L191[diagnostics .rs]
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]
52
68
53
69
This diagnostic is triggered if a block that should return `Result` returns a value not wrapped in `Ok`,
54
70
or if a block that should return `Option` returns a value not wrapped in `Some`.
@@ -64,62 +80,42 @@ fn foo() -> Result<u8, ()> {
64
80
65
81
// IMPORTANT: master copy of this document lives in the https://github.com/rust-analyzer/rust-analyzer repository
66
82
67
- == missing-pat-fields
68
- **Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/hir_ty/src/diagnostics.rs#L117[diagnostics.rs]
69
-
70
- This diagnostic is triggered if pattern lacks some fields that exist in the corresponding structure.
71
-
72
- Example:
73
-
74
- ```rust
75
- struct A { a: u8, b: u8 }
76
-
77
- let a = A { a: 10, b: 20 };
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]
78
85
79
- if let A { a } = a {
80
- // ...
81
- }
82
- ```
86
+ This diagnostic is triggered if an operation marked as `unsafe` is used outside of an `unsafe` function or block.
83
87
84
88
85
89
// IMPORTANT: master copy of this document lives in the https://github.com/rust-analyzer/rust-analyzer repository
86
90
87
- == missing-structure-fields
88
- **Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/hir_ty/src/diagnostics.rs#L70[diagnostics.rs]
89
-
90
- This diagnostic is triggered if record lacks some fields that exist in the corresponding structure.
91
-
92
- Example:
93
-
94
- ```rust
95
- struct A { a: u8, b: u8 }
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]
96
93
97
- let a = A { a: 10 };
98
- ```
94
+ This diagnostic is triggered if created structure does not have field provided in record.
99
95
100
96
101
97
// IMPORTANT: master copy of this document lives in the https://github.com/rust-analyzer/rust-analyzer repository
102
98
103
- == missing-unsafe
104
- **Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/hir_ty /src/diagnostics.rs#L274[diagnostics .rs]
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]
105
101
106
- This diagnostic is triggered if an operation marked as `unsafe` is used outside of an `unsafe` function or block.
102
+ This diagnostic is triggered when there's an erroneous `;` at the end of the block.
107
103
108
104
109
105
// IMPORTANT: master copy of this document lives in the https://github.com/rust-analyzer/rust-analyzer repository
110
106
111
- == no-such-field
112
- **Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/hir_ty /src/diagnostics.rs#L43[diagnostics .rs]
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]
113
109
114
- This diagnostic is triggered if created structure does not have field provided in record .
110
+ This diagnostic is triggered when `.filter_map(..).next()` is used, rather than the more concise `.find_map(..)` .
115
111
116
112
117
113
// IMPORTANT: master copy of this document lives in the https://github.com/rust-analyzer/rust-analyzer repository
118
114
119
- == replace-filter-map-next-with-find-map
120
- **Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/hir_ty /src/diagnostics.rs#L422[diagnostics .rs]
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]
121
117
122
- This diagnostic is triggered when `.filter_map(..).next()` is used, rather than the more concise `.find_map(..)`.
118
+ This diagnostic is shown for builtin macros which are not yet implemented by rust-analyzer
123
119
124
120
125
121
// IMPORTANT: master copy of this document lives in the https://github.com/rust-analyzer/rust-analyzer repository
@@ -134,32 +130,41 @@ crates rust-analyzer failed to discover. The file will not have IDE features ava
134
130
// IMPORTANT: master copy of this document lives in the https://github.com/rust-analyzer/rust-analyzer repository
135
131
136
132
== unresolved-extern-crate
137
- **Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/hir /src/diagnostics.rs#L48[diagnostics .rs]
133
+ **Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide /src/diagnostics/unresolved_extern_crate .rs#L3[unresolved_extern_crate .rs]
138
134
139
135
This diagnostic is triggered if rust-analyzer is unable to discover referred extern crate.
140
136
141
137
138
+ // IMPORTANT: master copy of this document lives in the https://github.com/rust-analyzer/rust-analyzer repository
139
+
140
+ == unresolved-import
141
+ **Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide/src/diagnostics/unresolved_import.rs#L3[unresolved_import.rs]
142
+
143
+ This diagnostic is triggered if rust-analyzer is unable to resolve a path in
144
+ a `use` declaration.
145
+
146
+
142
147
// IMPORTANT: master copy of this document lives in the https://github.com/rust-analyzer/rust-analyzer repository
143
148
144
149
== unresolved-macro-call
145
- **Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/hir /src/diagnostics.rs#L100[diagnostics .rs]
150
+ **Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide /src/diagnostics/unresolved_macro_call .rs#L6[unresolved_macro_call .rs]
146
151
147
- This diagnostic is triggered if rust-analyzer is unable to resolve the path to a
148
- macro in a macro invocation.
152
+ This diagnostic is triggered if rust-analyzer is unable to resolve the path
153
+ to a macro in a macro invocation.
149
154
150
155
151
156
// IMPORTANT: master copy of this document lives in the https://github.com/rust-analyzer/rust-analyzer repository
152
157
153
158
== unresolved-module
154
- **Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/hir /src/diagnostics.rs#L23[diagnostics .rs]
159
+ **Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide /src/diagnostics/unresolved_module .rs#L8[unresolved_module .rs]
155
160
156
161
This diagnostic is triggered if rust-analyzer is unable to discover referred module.
157
162
158
163
159
164
// IMPORTANT: master copy of this document lives in the https://github.com/rust-analyzer/rust-analyzer repository
160
165
161
166
== unresolved-proc-macro
162
- **Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/hir /src/diagnostics.rs#L162[diagnostics .rs]
167
+ **Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide /src/diagnostics/unresolved_proc_macro .rs#L6[unresolved_proc_macro .rs]
163
168
164
169
This diagnostic is shown when a procedural macro can not be found. This usually means that
165
170
procedural macro support is simply disabled (and hence is only a weak hint instead of an error),
0 commit comments