From 3e4466326c246b1141ec9640ee6f7055b6142f07 Mon Sep 17 00:00:00 2001 From: intellij-rust-bot Date: Thu, 25 May 2023 03:00:49 +0000 Subject: [PATCH 1/4] Changelog 195 --- _posts/2023-05-30-changelog-195.markdown | 72 ++++++++++++++++++++++++ 1 file changed, 72 insertions(+) create mode 100644 _posts/2023-05-30-changelog-195.markdown diff --git a/_posts/2023-05-30-changelog-195.markdown b/_posts/2023-05-30-changelog-195.markdown new file mode 100644 index 0000000..5a6df48 --- /dev/null +++ b/_posts/2023-05-30-changelog-195.markdown @@ -0,0 +1,72 @@ +--- +layout: post +title: "IntelliJ Rust Changelog #195" +date: 2023-05-30 13:00:00 +0300 +--- + + +## New Features + +* [#10467] Support 2023.2 EAPs + +* [#10460] - Add support for E0589 error +- Add support for E0693 error + +* [#10459] Add completion for keyword `let` after `if` and `while` + +* [#10456] E0696 support: highlighting and completion improvement + +* [#10450] E0590 support + +* [#10426] Add support for E0777 error + +* [#10424] - Add a quickfix for replacing a constant with a predefined one in std/core library +- Fixes #10213 (by [@DeoTimeTheGithubUser]) + +* [#10140] * Add support for E0538, multiple items used in `#[deprecated]` attribute, e.g.: +```rust +#[deprecated( + since = "a", + since = "b", // error + note = "c" +)] +fn f1() { } +``` +Error code reference: https://doc.rust-lang.org/error_codes/E0538.html +Compiler reference: https://github.com/rust-lang/rust/blob/904dd2c3987028f0270db306b9964bc465689de8/compiler/rustc_attr/src/builtin.rs#L834 (by [@kuksag]) + +## Fixes + +* [#10446] Collect project settings statistics: add `offline` + +* [#10421] Fixes #10420 ANN: Use RsAnnotationHolder instead of AnnotationHolder in RsAttrErrorAnnotator + +## Internal Improvements + +* [#10457] MIR: Annotate E0382 + +* [#10455] Drop support for 2022.3 platform + +* [#10453] MIR: Annotate E0381 + +* [#10452] MIR: Setup MIR-dataflow framework + +Full set of changes can be found [here](https://github.com/intellij-rust/intellij-rust/milestone/104?closed=1) + +[@DeoTimeTheGithubUser]: https://github.com/DeoTimeTheGithubUser +[@kuksag]: https://github.com/kuksag + +[#10140]: https://github.com/intellij-rust/intellij-rust/pull/10140 +[#10421]: https://github.com/intellij-rust/intellij-rust/pull/10421 +[#10424]: https://github.com/intellij-rust/intellij-rust/pull/10424 +[#10426]: https://github.com/intellij-rust/intellij-rust/pull/10426 +[#10446]: https://github.com/intellij-rust/intellij-rust/pull/10446 +[#10450]: https://github.com/intellij-rust/intellij-rust/pull/10450 +[#10452]: https://github.com/intellij-rust/intellij-rust/pull/10452 +[#10453]: https://github.com/intellij-rust/intellij-rust/pull/10453 +[#10455]: https://github.com/intellij-rust/intellij-rust/pull/10455 +[#10456]: https://github.com/intellij-rust/intellij-rust/pull/10456 +[#10457]: https://github.com/intellij-rust/intellij-rust/pull/10457 +[#10459]: https://github.com/intellij-rust/intellij-rust/pull/10459 +[#10460]: https://github.com/intellij-rust/intellij-rust/pull/10460 +[#10467]: https://github.com/intellij-rust/intellij-rust/pull/10467 From a624c4968931d7f00498ea61a53f52a93381c24c Mon Sep 17 00:00:00 2001 From: vlad20012 Date: Tue, 30 May 2023 10:36:17 +0200 Subject: [PATCH 2/4] Fixes --- _posts/2023-05-30-changelog-195.markdown | 47 ++++++++++-------------- 1 file changed, 20 insertions(+), 27 deletions(-) diff --git a/_posts/2023-05-30-changelog-195.markdown b/_posts/2023-05-30-changelog-195.markdown index 5a6df48..6225bd8 100644 --- a/_posts/2023-05-30-changelog-195.markdown +++ b/_posts/2023-05-30-changelog-195.markdown @@ -4,53 +4,46 @@ title: "IntelliJ Rust Changelog #195" date: 2023-05-30 13:00:00 +0300 --- +The minimal supported IDE platform version for this plugin update is 2023.1. +To receive this and further plugin updates, please upgrade your IDE to 2023.1 or 2023.2 EAP. ## New Features -* [#10467] Support 2023.2 EAPs +* [#10467] Provide support for 2023.2 [EAP](https://www.jetbrains.com/clion/nextversion/) builds. + Note, the Early Access Program gives you free access to pre-release versions of JetBrains software and doesn't require a paid IDE subscription -* [#10460] - Add support for E0589 error -- Add support for E0693 error +* Detect new compiler errors: -* [#10459] Add completion for keyword `let` after `if` and `while` + * [#10460] `#[repr(align())]` representation hint was incorrectly declared + [E0589](https://doc.rust-lang.org/error_codes/E0589.html), [E0693](https://doc.rust-lang.org/error_codes/E0693.html) -* [#10456] E0696 support: highlighting and completion improvement + * [#10456] A function is using `continue` keyword incorrectly [E0696](https://doc.rust-lang.org/error_codes/E0696.html) -* [#10450] E0590 support + * [#10450] `break` or `continue` keywords were used in a condition of a `while` loop without a label + [E0590](https://doc.rust-lang.org/error_codes/E0590.html) -* [#10426] Add support for E0777 error + * [#10426] A literal value was used inside `#[derive]` [E0777](https://doc.rust-lang.org/error_codes/E0777.html) -* [#10424] - Add a quickfix for replacing a constant with a predefined one in std/core library -- Fixes #10213 (by [@DeoTimeTheGithubUser]) + * [#10140] A `#[deprecated]` attribute was malformed [E0538](https://doc.rust-lang.org/error_codes/E0538.html), + [E0551](https://doc.rust-lang.org/error_codes/E0551.html), [E0541](https://doc.rust-lang.org/error_codes/E0541.html) -* [#10140] * Add support for E0538, multiple items used in `#[deprecated]` attribute, e.g.: -```rust -#[deprecated( - since = "a", - since = "b", // error - note = "c" -)] -fn f1() { } -``` -Error code reference: https://doc.rust-lang.org/error_codes/E0538.html -Compiler reference: https://github.com/rust-lang/rust/blob/904dd2c3987028f0270db306b9964bc465689de8/compiler/rustc_attr/src/builtin.rs#L834 (by [@kuksag]) +* [#10459] Provide completion for the keyword `let` after `if` and `while` keywords + +* [#10424] Provide a quickfix for replacing a constant with a predefined one in std/core library (by [@DeoTimeTheGithubUser]) ## Fixes -* [#10446] Collect project settings statistics: add `offline` +* [#10456] When completing a label in `continute` expression, don't complete irrelevant label names -* [#10421] Fixes #10420 ANN: Use RsAnnotationHolder instead of AnnotationHolder in RsAttrErrorAnnotator +* [#10421] Fixes false-positive "`#![feature]` may not be used the stable release channel" (which appeared in rare cases) ## Internal Improvements -* [#10457] MIR: Annotate E0382 +* [#10452], [#10453], [#10457] Setup MIR-dataflow framework, experimentally annotate E0381 and E0382 using MIR-based + borrow checker * [#10455] Drop support for 2022.3 platform -* [#10453] MIR: Annotate E0381 - -* [#10452] MIR: Setup MIR-dataflow framework - Full set of changes can be found [here](https://github.com/intellij-rust/intellij-rust/milestone/104?closed=1) [@DeoTimeTheGithubUser]: https://github.com/DeoTimeTheGithubUser From c025e6da9a7a39eb7ed5a9bc89ab66533ea4f1d8 Mon Sep 17 00:00:00 2001 From: vlad20012 Date: Tue, 30 May 2023 11:04:14 +0200 Subject: [PATCH 3/4] Add a note about test framework degradation --- _posts/2023-05-30-changelog-195.markdown | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/_posts/2023-05-30-changelog-195.markdown b/_posts/2023-05-30-changelog-195.markdown index 6225bd8..532a779 100644 --- a/_posts/2023-05-30-changelog-195.markdown +++ b/_posts/2023-05-30-changelog-195.markdown @@ -4,12 +4,12 @@ title: "IntelliJ Rust Changelog #195" date: 2023-05-30 13:00:00 +0300 --- -The minimal supported IDE platform version for this plugin update is 2023.1. +The minimal supported IDE platform version for this plugin update is **2023.1**. To receive this and further plugin updates, please upgrade your IDE to 2023.1 or 2023.2 EAP. ## New Features -* [#10467] Provide support for 2023.2 [EAP](https://www.jetbrains.com/clion/nextversion/) builds. +* [#10467] Provide support for **2023.2** [EAP](https://www.jetbrains.com/clion/nextversion/) builds. Note, the Early Access Program gives you free access to pre-release versions of JetBrains software and doesn't require a paid IDE subscription * Detect new compiler errors: @@ -33,6 +33,12 @@ To receive this and further plugin updates, please upgrade your IDE to 2023.1 or ## Fixes +* [#10511] Land a temporary workaround for the issue [#10512] "Cannot run tests on Rust 1.70-beta". + With this fix, the plugin run tests in a simple terminal instead of the rich test-tree tool window + (if you use Rust 1.70-beta or greater). The test running functionality has been degraded because of + [rust-lang/rust#109044](https://github.com/rust-lang/rust/pull/109044). Please follow the + [rust-lang/rust#49359](https://github.com/rust-lang/rust/issues/49359) tracking issue for the proper fix. + * [#10456] When completing a label in `continute` expression, don't complete irrelevant label names * [#10421] Fixes false-positive "`#![feature]` may not be used the stable release channel" (which appeared in rare cases) @@ -63,3 +69,6 @@ Full set of changes can be found [here](https://github.com/intellij-rust/intelli [#10459]: https://github.com/intellij-rust/intellij-rust/pull/10459 [#10460]: https://github.com/intellij-rust/intellij-rust/pull/10460 [#10467]: https://github.com/intellij-rust/intellij-rust/pull/10467 +[#10511]: https://github.com/intellij-rust/intellij-rust/pull/10511 + +[#10512]: https://github.com/intellij-rust/intellij-rust/issues/10512 From 6a9df185a26a49ad830ac2e9477dee939ec15e02 Mon Sep 17 00:00:00 2001 From: vlad20012 Date: Tue, 30 May 2023 11:05:55 +0200 Subject: [PATCH 4/4] Fix review comments --- _posts/2023-05-30-changelog-195.markdown | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/_posts/2023-05-30-changelog-195.markdown b/_posts/2023-05-30-changelog-195.markdown index 532a779..70cc626 100644 --- a/_posts/2023-05-30-changelog-195.markdown +++ b/_posts/2023-05-30-changelog-195.markdown @@ -39,13 +39,13 @@ To receive this and further plugin updates, please upgrade your IDE to 2023.1 or [rust-lang/rust#109044](https://github.com/rust-lang/rust/pull/109044). Please follow the [rust-lang/rust#49359](https://github.com/rust-lang/rust/issues/49359) tracking issue for the proper fix. -* [#10456] When completing a label in `continute` expression, don't complete irrelevant label names +* [#10456] When completing a label in `continue` expression, don't complete irrelevant label names -* [#10421] Fixes false-positive "`#![feature]` may not be used the stable release channel" (which appeared in rare cases) +* [#10421] Fixes false-positive "`#![feature]` may not be used on the stable release channel" (which appeared in rare cases) ## Internal Improvements -* [#10452], [#10453], [#10457] Setup MIR-dataflow framework, experimentally annotate E0381 and E0382 using MIR-based +* [#10452], [#10453], [#10457] Setup MIR-dataflow framework, experimentally annotate [E0381] and [E0382] using MIR-based borrow checker * [#10455] Drop support for 2022.3 platform @@ -72,3 +72,6 @@ Full set of changes can be found [here](https://github.com/intellij-rust/intelli [#10511]: https://github.com/intellij-rust/intellij-rust/pull/10511 [#10512]: https://github.com/intellij-rust/intellij-rust/issues/10512 + +[E0381]: https://doc.rust-lang.org/error_codes/E0381.html +[E0382]: https://doc.rust-lang.org/error_codes/E0382.html