Source: break_outside_of_loop.rs
This diagnostic is triggered if the break keyword is used outside of a loop.
Source: inactive_code.rs
This diagnostic is shown for code with inactive #[cfg] attributes.
Source: incorrect_case.rs
This diagnostic is triggered if an item name doesn’t follow Rust naming convention.
Source: invalid_derive_target.rs
This diagnostic is shown when the derive attribute is used on an item other than a struct,
enum or union.
Source: malformed_derive.rs
This diagnostic is shown when the derive attribute has invalid input.
Source: mismatched_arg_count.rs
This diagnostic is triggered if a function is invoked with an incorrect amount of arguments.
Source: missing_fields.rs
This diagnostic is triggered if record lacks some fields that exist in the corresponding structure.
Example:
struct A { a: u8, b: u8 }
let a = A { a: 10 };Source: missing_match_arms.rs
This diagnostic is triggered if match block is missing one or more match arms.
Source: missing_unsafe.rs
This diagnostic is triggered if an operation marked as unsafe is used outside of an unsafe function or block.
Source: no_such_field.rs
This diagnostic is triggered if created structure does not have field provided in record.
This diagnostic is triggered when .filter_map(..).next() is used, rather than the more concise .find_map(..).
Source: type_mismatch.rs
This diagnostic is triggered when the type of an expression does not match the expected type.
Source: unimplemented_builtin_macro.rs
This diagnostic is shown for builtin macros which are not yet implemented by rust-analyzer
Source: unlinked_file.rs
This diagnostic is shown for files that are not included in any crate, or files that are part of crates rust-analyzer failed to discover. The file will not have IDE features available.
Source: unresolved_extern_crate.rs
This diagnostic is triggered if rust-analyzer is unable to discover referred extern crate.
Source: unresolved_import.rs
This diagnostic is triggered if rust-analyzer is unable to resolve a path in
a use declaration.
Source: unresolved_macro_call.rs
This diagnostic is triggered if rust-analyzer is unable to resolve the path to a macro in a macro invocation.
Source: unresolved_module.rs
This diagnostic is triggered if rust-analyzer is unable to discover referred module.
Source: unresolved_proc_macro.rs
This diagnostic is shown when a procedural macro can not be found. This usually means that procedural macro support is simply disabled (and hence is only a weak hint instead of an error), but can also indicate project setup problems.
If you are seeing a lot of "proc macro not expanded" warnings, you can add this option to the
rust-analyzer.diagnostics.disabled list to prevent them from showing. Alternatively you can
enable support for procedural macros (see rust-analyzer.procMacro.enable).