|
| 1 | +--- |
| 2 | +layout: post |
| 3 | +title: "IntelliJ Rust Changelog #192" |
| 4 | +date: 2023-04-11 13:00:00 +0300 |
| 5 | +--- |
| 6 | + |
| 7 | + |
| 8 | +## New Features |
| 9 | + |
| 10 | +* Detect new compiler errors: |
| 11 | + |
| 12 | + * [#10285] More than one explicit lifetime bound was used on a trait object [E0226] |
| 13 | + |
| 14 | + * [#10283] A union expression does not have exactly one field [E0784] |
| 15 | + |
| 16 | + * [#10268] Unsafe code was used outside an unsafe function or block [E0133] when accessing union field outside unsafe block |
| 17 | + |
| 18 | + * [#9375] Warn about unused label [unused_labels] |
| 19 | + |
| 20 | +* [#10281] Support `Clean` (CLion only) and `Rebuild ...` actions which are |
| 21 | + equivalent to `cargo clean` and `cargo clean && cargo build` respectively. |
| 22 | + You can access then from the `Build` menu |
| 23 | + |
| 24 | + <img src="/assets/posts/changelog-192/clean-rebuild.png" width="600px"/> |
| 25 | + |
| 26 | +## Fixes |
| 27 | + |
| 28 | +* [#10301] Fix expansion of macros that contain reserved keywords (e.g. `do`) in their body |
| 29 | + |
| 30 | +* [#10295] Don't suggest a project model reloading after creating a file in a nested dir in `tests` dir |
| 31 | + |
| 32 | +* [#10266] Fix code analysis inside functions under `sqlx::test` macro |
| 33 | + |
| 34 | +* [#10265] Don't show "Conditionally disabled code" in the [`Problems`] view |
| 35 | + |
| 36 | +## Internal Improvements |
| 37 | + |
| 38 | +* [#10286] Initial implementation of [MIR] |
| 39 | + |
| 40 | +* [#10277] Set up tests for an intention action inside an attribute macro |
| 41 | + |
| 42 | +Full set of changes can be found [here](https://github.com/intellij-rust/intellij-rust/milestone/101?closed=1) |
| 43 | + |
| 44 | +[E0133]: https://doc.rust-lang.org/error_codes/E0133.html |
| 45 | +[E0226]: https://doc.rust-lang.org/error_codes/E0226.html |
| 46 | +[E0784]: https://doc.rust-lang.org/error_codes/E0784.html |
| 47 | +[unused_labels]: https://doc.rust-lang.org/rustc/lints/listing/warn-by-default.html#unused-labels |
| 48 | +[`Problems`]: https://www.jetbrains.com/help/clion/problems-tool-window.html |
| 49 | +[MIR]: https://rustc-dev-guide.rust-lang.org/mir/index.html |
| 50 | + |
| 51 | +[#6675]: https://github.com/intellij-rust/intellij-rust/pull/6675 |
| 52 | +[#9375]: https://github.com/intellij-rust/intellij-rust/pull/9375 |
| 53 | +[#10265]: https://github.com/intellij-rust/intellij-rust/pull/10265 |
| 54 | +[#10266]: https://github.com/intellij-rust/intellij-rust/pull/10266 |
| 55 | +[#10268]: https://github.com/intellij-rust/intellij-rust/pull/10268 |
| 56 | +[#10277]: https://github.com/intellij-rust/intellij-rust/pull/10277 |
| 57 | +[#10281]: https://github.com/intellij-rust/intellij-rust/pull/10281 |
| 58 | +[#10283]: https://github.com/intellij-rust/intellij-rust/pull/10283 |
| 59 | +[#10285]: https://github.com/intellij-rust/intellij-rust/pull/10285 |
| 60 | +[#10286]: https://github.com/intellij-rust/intellij-rust/pull/10286 |
| 61 | +[#10295]: https://github.com/intellij-rust/intellij-rust/pull/10295 |
| 62 | +[#10301]: https://github.com/intellij-rust/intellij-rust/pull/10301 |
0 commit comments