11//! Generated by `sourcegen_diagnostic_docs`, do not edit by hand.
22
3- === add-reference-here
4- **Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide_diagnostics/src/handlers/add_reference_here.rs#L8[add_reference_here.rs]
5-
6- This diagnostic is triggered when there's a missing referencing of expression.
7-
8-
93=== break-outside-of-loop
104**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]
115
@@ -69,21 +63,6 @@ let a = A { a: 10 };
6963This diagnostic is triggered if `match` block is missing one or more match arms.
7064
7165
72- === missing-ok-or-some-in-tail-expr
73- **Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide_diagnostics/src/handlers/missing_ok_or_some_in_tail_expr.rs#L10[missing_ok_or_some_in_tail_expr.rs]
74-
75- This diagnostic is triggered if a block that should return `Result` returns a value not wrapped in `Ok`,
76- or if a block that should return `Option` returns a value not wrapped in `Some`.
77-
78- Example:
79-
80- ```rust
81- fn foo() -> Result<u8, ()> {
82- 10
83- }
84- ```
85-
86-
8766=== missing-unsafe
8867**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide_diagnostics/src/handlers/missing_unsafe.rs#L3[missing_unsafe.rs]
8968
@@ -96,18 +75,19 @@ This diagnostic is triggered if an operation marked as `unsafe` is used outside
9675This diagnostic is triggered if created structure does not have field provided in record.
9776
9877
99- === remove-this-semicolon
100- **Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide_diagnostics/src/handlers/remove_this_semicolon.rs#L10[remove_this_semicolon.rs]
101-
102- This diagnostic is triggered when there's an erroneous `;` at the end of the block.
103-
104-
10578=== replace-filter-map-next-with-find-map
10679**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]
10780
10881This diagnostic is triggered when `.filter_map(..).next()` is used, rather than the more concise `.find_map(..)`.
10982
11083
84+ === type-mismatch
85+ **Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide_diagnostics/src/handlers/type_mismatch.rs#L14[type_mismatch.rs]
86+
87+ This diagnostic is triggered when the type of an expression does not match
88+ the expected type.
89+
90+
11191=== unimplemented-builtin-macro
11292**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide_diagnostics/src/handlers/unimplemented_builtin_macro.rs#L3[unimplemented_builtin_macro.rs]
11393
0 commit comments