Skip to content

Commit 48c3bd8

Browse files
committed
Changelog 199
1 parent a75bd6f commit 48c3bd8

6 files changed

+39
-32
lines changed

_posts/2023-07-24-changelog-199.markdown

+39-32
Original file line numberDiff line numberDiff line change
@@ -9,72 +9,79 @@ date: 2023-07-24 13:00:00 +0300
99

1010
* [#10648] Show `Unresolved Reference` error for type-independent paths
1111

12-
TODO at least a screenshot
12+
<img src="/assets/posts/changelog-199/unresolved_reference.png" width="700px"/>
1313

14-
* [#10692] Provide `fn` keyword completion in the type context
14+
* Completion improvements:
1515

16-
* [#10691] Provide completion for `fn main() { ... }`
16+
* [#10689] Complete chained iterator methods
1717

18-
* [#10689] Complete chained iterator methods
18+
{% include gif-img.html path="/assets/posts/changelog-199/chained_iterators" w="600px" %}
1919

20-
TODO gif
20+
* [#10647] Complete Cargo [instructions](https://doc.rust-lang.org/cargo/reference/build-scripts.html#outputs-of-the-build-script) in build scripts
2121

22-
* [#10684] Improve the error message when trying to use a prefix/postfix increment like `i++`
22+
{% include gif-img.html path="/assets/posts/changelog-199/cargo_instructions" w="600px" %}
2323

24-
* [#10681] Improve the error message when trying to inherit one struct from another -
25-
a helpful reminder that Rust doesn't support inheritance like `struct Foo: Bar {}`
24+
* [#10651] Show the value of the constant in the completion list
2625

27-
* [#10664] Added new inspection for when entry point is async E0752
26+
* [#10692] Provide `fn` keyword completion in the type context
2827

29-
* [#10661] Improve the error message when incorrectly using `impl` or `dyn` in type parameters bounds
28+
* [#10691] Provide completion for `fn main() { ... }`
3029

31-
* [#10651] Show the value of the constant in the completion list
30+
* Macro expansion improvements:
3231

33-
* [#10650] Add `iter` alias for `for` live template
32+
* [#10678] Increase proc macro expansion timeout to 20 seconds
3433

35-
* [#10647] Complete Cargo [instructions](https://doc.rust-lang.org/cargo/reference/build-scripts.html#outputs-of-the-build-script) in build scripts
34+
* [#10678] Improve error message in the case of too large macro expansion
3635

37-
* [#10592] Add better support for path statements inspection and enable it by default
36+
* [#10675] Improve error message for a non-expanded macro inside an impl block
3837

39-
* [#10436] - The "trait objects without dyn keyword" inspection raises an error in the 2021 edition, and a warning on 2018 (by [@DeoTimeTheGithubUser])
38+
* Improved error messages and new quick fixes:
4039

41-
## Fixes
40+
* [#10684] When trying to use a prefix/postfix increment like `i++`
4241

43-
* [#10679] Show completion auto-popup when literal suffix is typed
42+
* [#10661] When incorrectly using `impl` or `dyn` in type parameters bounds
4443

45-
* [#10688] match negative numeric literals with `$l:literal` macro fragment spec
44+
* [#10681] When trying to inherit one struct from another - a helpful reminder that Rust doesn't support inheritance like `struct Foo: Bar {}`
4645

47-
* [#10682] Complete `macro` live template only in item context
46+
* [#10664] Add a new inspection for when the entry point of the program is marked as `async` ([E0752](https://doc.rust-lang.org/error_codes/E0752.html))
4847

49-
* [#10680] COMP: Only complete float suffixes for literals in scientific notation
48+
* [#10592] Add better support for the [`Path statements`](https://doc.rust-lang.org/rustc/lints/listing/warn-by-default.html#path-statements) inspection and enable it by default
5049

51-
* [#10678] Increase proc macro expansion timeout to 20 seconds
50+
* [#10650] Add `iter` alias for `for` [live template](https://plugins.jetbrains.com/plugin/8182-rust/docs/rust-code-generation.html#live-templates)
5251

53-
* [#10678] Improve error message in the case of too large macro expansion
52+
* [#10436] - Now the `Trait objects must include the dyn keyword` inspection raises an error in the 2021 edition, and a warning on 2018 (by [@DeoTimeTheGithubUser])
5453

55-
* [#10676] Fix name resolution inside a nested block under cfg attribute
54+
## Fixes
5655

57-
* [#10675] Improve error message for a non-expanded macro inside an impl block
56+
* [#10671] Fix bugs related to grammar error detection in Rust code using new API from [Grazie](https://plugins.jetbrains.com/plugin/12175-grazie-lite) plugin. Note, grammar error detection is disabled by default for now. You can enable it for Rust in `Scope` tab of `Preferences | Editor | Natural Languages | Grammar and Style` settings
5857

59-
* [#10674] Fix dependency keys completion when another key exists before
58+
* Completion fixes:
6059

61-
* [#10671] Fix bugs related to grammar error detection in Rust code using new API from [Grazie](https://plugins.jetbrains.com/plugin/12175-grazie-lite) plugin. Note, grammar error detection is disabled by default for now. You can enable it for Rust in `Scope` tab of `Preferences | Editor | Natural Languages | Grammar and Style` settings
60+
* [#10679] Show completion auto-popup when literal suffix is typed
61+
62+
* [#10663] Don't add new line by smart enter action after `;` completion
6263

63-
* [#10669] Normalize parameter values after substitution in struct pattern matching
64+
* [#10682] Complete `macro` live template only in item context
6465

65-
* [#10663] Don't add new line by smart enter action after `;` completion
66+
* [#10680] Only complete float suffixes for literals in scientific notation
67+
68+
* [#10674] Fix dependency keys completion when another key exists before
6669

6770
* [#10653] Use [E0403](https://doc.rust-lang.org/error_codes/E0403.html) instead of deprecated [E0263](https://doc.rust-lang.org/error_codes/E0263.html)
6871

72+
* [#10676] Fix name resolution inside a nested block under a `cfg` attribute
73+
6974
* [#10645] Fix live templates suggestion in loop labels and other positions
7075

71-
* [#10428] - The `add unsafe to function` quickfix is no longer raised when an unsafe call is made inside a test function, doctest main function, or in a implemented function where the parent trait function is not marked as unsafe. Suggests `Surround with unsafe block` instead.
72-
- Fixes #10312
73-
- Fixes #10183 (by [@DeoTimeTheGithubUser])
76+
* [#10669] Fix type inference in case of struct pattern matching
77+
78+
* [#10688] Match negative numeric literals with `$l:literal` macro fragment spec
79+
80+
* [#10428] Suggest `Surround with unsafe block` quick fix instead of `Add unsafe to function` for an unsafe call in some cases (e.g. inside a test function, main function, etc.) (by [@DeoTimeTheGithubUser])
7481

7582
## Internal Improvements
7683

77-
* [#10670] Implement initial support for gdb debugging outside of CLion. Right now it's disabled by default and works only on Linux
84+
* [#10670] Implement initial support for GDB debugging outside of CLion. Right now it's disabled by default and works only on Linux
7885

7986
* [#10668], [#10686] Extract hardcoded strings into a message bundle, allowing its future internationalization
8087

Loading
Loading
Loading
Loading
Loading

0 commit comments

Comments
 (0)