7

IntelliJ Rust Changelog #144

 3 years ago
source link: https://intellij-rust.github.io/2021/03/29/changelog-144.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

IntelliJ Rust Changelog #144

29 Mar 2021

New Features

  • Support import aliases in Move refactoring (Refactor | Move or F6)

    6947.pngGIF
  • Const generics support improvements:

    • Support const generics in Wrong generic arguments number (E0107) inspection
    • Support Move Element Right/Left actions for const generic parameters
    • Properly render const generics in signature of a top-level item
    • Fix type rendering with const generic parameters
  • Complete dependencies by subwords in Cargo.toml when using experimental local crates index. This feature is disabled by default for now. To use it, enable org.rust.crates.local.index option in Experimental Feature dialog (Help | Find Action and type Experimental features to open the dialog)

    6799.pngGIF
  • Import unresolved types from a function signature after performing Extract Function refactoring (Refactor | Extract Method or Ctrl+Alt+M)
  • Automatically select the default project Rust toolchain from Preferences | Languages & Frameworks | Rust when creating a new project
  • Auto-indent line when typing Enter in macro bodies
  • Increase minimal supported rustc version to 1.41.0
  • Enable by default Simplify boolean expression inspection

Fixes

  • Do not show Redundant `::` warning for expressions inside length of array types
  • Reduce availability range of some intention actions. For example, now Add else branch to this if statement is not suggested in Alt+Enter menu when the caret is placed inside an if body
  • Do not insert default type parameters by Implement Member actions
  • Ignore environment variables when comparing Cargo run configurations. This allows reusing a similar existing configuration instead of creating a new one
  • Expand macro calls under cfg attribute after toggling a Cargo feature
  • Fix false-positive E0658 in stdlib

Full set of changes can be found here


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK