-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support declarative macros 2.0 #2248
Comments
We also need this for e.g. https://doc.rust-lang.org/std/clone/macro.Clone.html to get proper doc comments for derive macros. |
In |
I don't think we should reuse macro call |
For macro keyword, calls and defs have different syntax, so we should just add a dedicated node for this, |
Hold on though - in #2315 I'm already using |
I don't think ra_syntax should now anything about proc_macros: proc_macros
don't have a syntax-level representation
…On Wed, 20 Nov 2019 at 10:51, Daniel McNab ***@***.***> wrote:
Hold on though - in #2315
<#2315> I'm already
using MacroDef to mean macro_rules or procedural macros. We either need a
different name for that or a different name for this
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#2248>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AANB3M4CDMIQSDZJE3TKKHDQUTT67ANCNFSM4JNVCFUA>
.
|
I needed to do that because a lot of stuff used e.g. the |
6897: Basic support for macros 2.0 r=jonas-schievink a=jonas-schievink This adds support for (built-in-only) macros 2.0, and removes some hacks used for builtin derives, which are declared via macros 2.0 in libcore. First steps for #2248. Blocked on rust-analyzer/ungrammar#16. Co-authored-by: Jonas Schievink <jonasschievink@gmail.com> Co-authored-by: Jonas Schievink <jonas.schievink@ferrous-systems.com>
FYI: Rust 1.51.0 will stabilize |
Since #8212 was merged. Let's close it first and handle related problems (Macro hygiene in macro 2.0) in separate issues. |
Some source code in
rustc
start to usingdecl-macro
:https://github.com/rust-lang/rust/blob/82cf3a4486bc882207a09bf0d9e2dea4632781aa/src/libsyntax_ext/lib.rs#L52-L60
It would be nice to support it (at least in parser) or ignore it right now to have a better experince on browsing rustc source code by RA.
The text was updated successfully, but these errors were encountered: