IntelliJ Rust Changelog #113
New Features
-
#4172 Add
Lift return
inspection. Now the plugin highlightsif
andmatch
expressions wherereturn
can be lifted out of branches of the expression. -
#4742 Treat
todo
macro 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 generic
arguments in some cases -
#4482 Support
unstable
attribute for items. Now if you use item marked withunstable
attribute without the correspondingfeature
, the plugin highlights the usage as an error and suggest quick fix in case of nightly toolchain -
#4735 Make
Specify type explicitly
intention 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
Clone
andCopy
traits for tuple types while type inference. Also, consider that generic types with#[derive(Copy)]
implementsCopy
traits 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