IntelliJ Rust for 2022.1: What's New

IntelliJ Rust for 2022.1: What's New

Intelligent Rust

IntelliJ Rust brings JetBrains-quality language support and the full IDE experience to your Rust workflow.

Rust becomes native to IntelliJ IDEA, CLion , and other IntelliJ-based IDEs with smart coding assistance, seamless Cargo support, built-in test runner, and code coverage tooling.

What’s New in IntelliJ Rust for 2022.1

In this release cycle, the Rust Team have improved their language support, code insight, run/debug support, and tool integrations, and added many enhancements and fixes.

The release contains the following updates:

Language Support

Single-step macro expansion

The macro expansion engine have been redesign, collapsing the expansion process into a single step. This has fixed the blinking during the expansion process and significantly sped up the macro expansion itself.

Name resolution improvements

The new name resolution engine, which is enabled by default now resolves macros 2.0 declared inside function bodies.

Support for inline_const, inline_const_pat and ~const

IntelliJ Rust now properly parses the inline_const and inline_const_pat syntax that allows you to use inline constant expressions. The features are annotated as experimental, meaning you can’t use them with the stable toolchain.

Code insight

The Extract trait refactoring

With this new refactoring, you can quickly extract members of impl blocks into a trait and undo the changes with a single keystroke

Improved ML completion

Prefers expressions of type which match the expected type. differentiates between inherent, trait and blanket implementations.

It also recognises async, const and unsafe contexts.

You won't like to miss out the full update, continue reading to get more professional Insights from the Intelli J Rust team.

That’s it for the halfway most recent updates in the IntelliJ Rust plugin. To get more info about our new features! Write a comment here, ping us on Twitter , or file an issue in the plugin’s issue tracker . Thank you!

Your Rust team

JetBrains

The Drive to Develop