Skip to content

Conversation

@vlad20012
Copy link
Member

@vlad20012 vlad20012 commented Nov 14, 2022

If you came to this PR because your issue just has been closed, note the plugin including the PR will be released only in early December. If you can't wait to try it now, you can use the nightly IntelliJ Rust plugin channel (see instructions).

Derive macros support:
Fixes #4629
Fixes #5468
Fixes #5478
Fixes #5728
Fixes #5954
Fixes #6036
Fixes #6489
Fixes #6880
Fixes #7158
Fixes #7848
Fixes #8193
Fixes #8415
Fixes #8581
Fixes #8610
Fixes #8847
Fixes #8856
Fixes #9133
Fixes #9216
Fixes #9226
Fixes #9682
Fixes #7707
Fixes #7365
Fixes #6482

Function-like macros support:
Fixes #4707
Fixes #6367
Fixes #6983
Fixes #7090
Fixes #7242
Fixes #7608
Fixes #7699
Fixes #8049
Fixes #8785
Fixes #9266

changelog: Enable function-like and derive proc macro expansion by default.
Note that attribute procedural macro expansion is still disabled by default. If you want to try it, you can enable org.rust.macros.proc.attr experimental feature.

@vlad20012 vlad20012 self-assigned this Nov 14, 2022
@vlad20012 vlad20012 added this to the v184 milestone Nov 14, 2022
@vlad20012
Copy link
Member Author

bors r+

bors bot added a commit that referenced this pull request Nov 15, 2022
9686: Parse rust path in short doc links r=vlad20012 a=dima74

Continuation of #7353

Now paths in short links are parsed as `RsPath`, and thus resolve and completion works for them. Note that short links can be either a path or a label, depending on the existence of the corresponding link definition for the label

```rust
/// [bar1] - direct link
/// [bar2] - markdown label reference
///
/// [bar2]: bar3
fn foo() {}
```

This together with #9688 will fix #6905

changelog: Support short [intra-doc links](https://doc.rust-lang.org/rustdoc/write-documentation/linking-to-items-by-name.html) (in format `[link]`)


9729: Enable `function-like` and `derive` proc macro expansion by default r=vlad20012 a=vlad20012

If you came to this PR because your issue just has been closed, note the plugin including PR will be released only in early December. If you can't wait to try it now, you can use the nightly IntelliJ Rust plugin channel (see [instructions](https://plugins.jetbrains.com/plugin/8182-rust/docs/rust-quick-start.html#install-nightly)).

Derive macros support:
Fixes #4629
Fixes #5468
Fixes #5478
Fixes #5728
Fixes #5954
Fixes #6036
Fixes #6489
Fixes #6880
Fixes #7158
Fixes #7848
Fixes #8193
Fixes #8415
Fixes #8581
Fixes #8610
Fixes #8847
Fixes #8856
Fixes #9133
Fixes #9216
Fixes #9226
Fixes #9682
Fixes #7707
Fixes #7365
Fixes #6482

Function-like macros support:
Fixes #4707
Fixes #6367
Fixes #6983
Fixes #7090
Fixes #7242
Fixes #7608
Fixes #7699
Fixes #8049
Fixes #8785
Fixes #9266

changelog: Enable [`function-like`](https://doc.rust-lang.org/reference/procedural-macros.html#function-like-procedural-macros)  and [`derive`](https://doc.rust-lang.org/reference/procedural-macros.html#derive-macros) proc macro expansion by default.
Note that attribute procedural macro expansion is still disabled by default. If you want to try it, you can enable `org.rust.macros.proc.attr` [experimental feature](https://plugins.jetbrains.com/plugin/8182-rust/docs/#experimental-features).


Co-authored-by: Dmitry Murzin <diralik@yandex.ru>
Co-authored-by: vlad20012 <beskvlad@gmail.com>
@bors
Copy link
Contributor

bors bot commented Nov 15, 2022

Build failed (retrying...):

bors bot added a commit that referenced this pull request Nov 15, 2022
9729: Enable `function-like` and `derive` proc macro expansion by default r=vlad20012 a=vlad20012

If you came to this PR because your issue just has been closed, note the plugin including PR will be released only in early December. If you can't wait to try it now, you can use the nightly IntelliJ Rust plugin channel (see [instructions](https://plugins.jetbrains.com/plugin/8182-rust/docs/rust-quick-start.html#install-nightly)).

Derive macros support:
Fixes #4629
Fixes #5468
Fixes #5478
Fixes #5728
Fixes #5954
Fixes #6036
Fixes #6489
Fixes #6880
Fixes #7158
Fixes #7848
Fixes #8193
Fixes #8415
Fixes #8581
Fixes #8610
Fixes #8847
Fixes #8856
Fixes #9133
Fixes #9216
Fixes #9226
Fixes #9682
Fixes #7707
Fixes #7365
Fixes #6482

Function-like macros support:
Fixes #4707
Fixes #6367
Fixes #6983
Fixes #7090
Fixes #7242
Fixes #7608
Fixes #7699
Fixes #8049
Fixes #8785
Fixes #9266

changelog: Enable [`function-like`](https://doc.rust-lang.org/reference/procedural-macros.html#function-like-procedural-macros)  and [`derive`](https://doc.rust-lang.org/reference/procedural-macros.html#derive-macros) proc macro expansion by default.
Note that attribute procedural macro expansion is still disabled by default. If you want to try it, you can enable `org.rust.macros.proc.attr` [experimental feature](https://plugins.jetbrains.com/plugin/8182-rust/docs/#experimental-features).


Co-authored-by: vlad20012 <beskvlad@gmail.com>
@bors
Copy link
Contributor

bors bot commented Nov 15, 2022

Build failed:

@vlad20012
Copy link
Member Author

bors r+

@bors
Copy link
Contributor

bors bot commented Nov 15, 2022

Build succeeded:

@bors bors bot merged commit 9675f8d into master Nov 15, 2022
@bors bors bot deleted the enable-function-like-and-derive-proc-macro-expansion-by-default branch November 15, 2022 15:42
@ranile
Copy link

ranile commented Nov 15, 2022

How exactly is #6367 resolved? I would love to try out the fix for it.

@vlad20012
Copy link
Member Author

vlad20012 commented Nov 15, 2022

@hamza1311, hmm, #6367 was in the list of issues that should be closed when proc macro expansion will be enabled by default, but I just read the feature description again and to be honest I don't completely understand what this issue is about :D
So I can't say for sure it is fixes

@ranile
Copy link

ranile commented Nov 15, 2022

@vlad20012 That issue is just IntelliJ-rust version of rust-lang/rust-analyzer#7402 . Maybe I could've done a better job of wording in that issue. It's about how to tell IntelliJ-rust how to handle syntax isn't valid Rust (syntax highlighting, suggestions and such)

I highly doubt it is resolved, that is why I brought it up. Maybe it's not the best idea to keep that issue closed.

Undin added a commit that referenced this pull request Nov 19, 2022
…erive` enabled in stable

It's a follow-up change to enabling procedural macro support for function-like and derive macros (#9729).
Now, `Create New Issue` action doesn't add these features into issue description if they are enabled
Undin added a commit that referenced this pull request Nov 19, 2022
…erive` enabled in stable

It's a follow-up change to enabling procedural macro support for function-like and derive macros (#9729).
Now, `Create New Issue` action doesn't add these features into issue description if they are enabled

[skip ci]
bors bot added a commit that referenced this pull request Nov 19, 2022
9771: Mark `org.rust.macros.proc.function-like` and `org.rust.macros.proc.derive` enabled in stable r=Undin a=Undin

It's a follow-up change to enabling procedural macro support for function-like and derive macros (#9729). Now, `Create New Issue` action doesn't add these features into issue description if they are enabled


Co-authored-by: Arseniy Pendryak <a.pendryak@yandex.ru>
@mili-l mili-l self-assigned this Nov 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment