IntelliJ Rust Changelog #113
New Features
-
#4172 Add
Lift returninspection. Now the plugin highlightsifandmatchexpressions wherereturncan be lifted out of branches of the expression.
-
#4742 Treat
todomacro calls as todo items, i.e they have the corresponding highlighting and can be found in TODO tool window
-
#4748 Provide completion for fields of builtin tuple types
-
#4677 Check type mismatch errors in
const genericarguments in some cases
-
#4482 Support
unstableattribute for items. Now if you use item marked withunstableattribute without the correspondingfeature, the plugin highlights the usage as an error and suggest quick fix in case of nightly toolchain -
#4735 Make
Specify type explicitlyintention work with complex patterns likelet (a, b) = some_expr
Fixes
-
#4757 Optimize
Show Usages(Ctrl+Alt+F7/Cmd+Alt+F7) for associated items. It should significantly speed up search of associated items with commonly used names likenew - Improve patterns support:
- Type inference improvements:
- #4741 Take into account builtin implementation of
CloneandCopytraits for tuple types while type inference. Also, consider that generic types with#[derive(Copy)]implementsCopytraits only when all type components implementCopy. It should fix various bugs in type inference, type mismatch and borrow checker inspections for the corresponding types - #4778 Fix type inference inside tuple and struct tuple patterns after
..
- #4741 Take into account builtin implementation of
-
#4759 Fix false positive
Duplicate definitions(E0428) errors for macros 2.0 - #4724 Parse
_as constant name properly
Full set of changes can be found here