|
| 1 | +--- |
| 2 | +layout: post |
| 3 | +title: "IntelliJ Rust Changelog #196" |
| 4 | +date: 2023-06-12 13:00:00 +0300 |
| 5 | +--- |
| 6 | + |
| 7 | + |
| 8 | +## New Features |
| 9 | + |
| 10 | +* [#10477] Add `unnecessary cast` inspection |
| 11 | + |
| 12 | + {% include gif-img.html path="/assets/posts/changelog-196/unnecessary_cast" w="700px" %} |
| 13 | + |
| 14 | +* [#10524] Make `Run rustfmt` available as a pre-commit action |
| 15 | + |
| 16 | + <img src="/assets/posts/changelog-196/pre_commit_rustfmt.png" width="700px"/> |
| 17 | + |
| 18 | +* [#10530] Support [`return_position_impl_trait_in_trait`] feature |
| 19 | + |
| 20 | +* [#10480] Add completion for `for` keyword after `impl` block |
| 21 | + |
| 22 | +## Fixes |
| 23 | + |
| 24 | +* [#10554] Fix `cargo test` on Rust 1.70.0+ stable if the Test Tool Window is enable. |
| 25 | + Note: now IDE runs `cargo test` with the `RUSTC_BOOTSTRAP=1` environment variable 1.70.0+ stable. |
| 26 | + This enables required experimental features but may impact build and test results in rare cases. |
| 27 | + |
| 28 | +* [#10528] Fix expansion of macro 2.0 with multiple patterns (cases) |
| 29 | + |
| 30 | +## Internal Improvements |
| 31 | + |
| 32 | +* [#10514] Initial support for [E0505](https://doc.rust-lang.org/error_codes/E0505.html) using MIR framework |
| 33 | + |
| 34 | +Full set of changes can be found [here](https://github.com/intellij-rust/intellij-rust/milestone/105?closed=1) |
| 35 | + |
| 36 | +[#10477]: https://github.com/intellij-rust/intellij-rust/pull/10477 |
| 37 | +[#10480]: https://github.com/intellij-rust/intellij-rust/pull/10480 |
| 38 | +[#10514]: https://github.com/intellij-rust/intellij-rust/pull/10514 |
| 39 | +[#10522]: https://github.com/intellij-rust/intellij-rust/pull/10522 |
| 40 | +[#10524]: https://github.com/intellij-rust/intellij-rust/pull/10524 |
| 41 | +[#10528]: https://github.com/intellij-rust/intellij-rust/pull/10528 |
| 42 | +[#10530]: https://github.com/intellij-rust/intellij-rust/pull/10530 |
| 43 | +[#10554]: https://github.com/intellij-rust/intellij-rust/pull/10554 |
| 44 | + |
| 45 | +[`return_position_impl_trait_in_trait`]: https://rust-lang.github.io/impl-trait-initiative/RFCs/rpit-in-traits.html |
0 commit comments