mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-03 07:04:49 +00:00
![]() E.g. when there's a type mismatch on the return value of a function. To fix this, we have to return the expected type as the type of the block when there's a mismatch. That meant some IDE code that expected otherwise had to be adapted, in particular the "add return type" assist. For the "wrap in Ok/Some" quickfix, this sadly means it usually can't be applied in all branches of an if expression at the same time anymore, because there's a type mismatch for each branch that has the wrong type. |
||
---|---|---|
.. | ||
break_outside_of_loop.rs | ||
field_shorthand.rs | ||
inactive_code.rs | ||
incorrect_case.rs | ||
invalid_derive_target.rs | ||
macro_error.rs | ||
malformed_derive.rs | ||
mismatched_arg_count.rs | ||
missing_fields.rs | ||
missing_match_arms.rs | ||
missing_unsafe.rs | ||
no_such_field.rs | ||
replace_filter_map_next_with_find_map.rs | ||
type_mismatch.rs | ||
unimplemented_builtin_macro.rs | ||
unlinked_file.rs | ||
unresolved_extern_crate.rs | ||
unresolved_import.rs | ||
unresolved_macro_call.rs | ||
unresolved_module.rs | ||
unresolved_proc_macro.rs | ||
useless_braces.rs |