Skip to content
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

[Rust] macro marked as invalid #3436

Open
AmjadHD opened this issue Jun 19, 2022 · 3 comments
Open

[Rust] macro marked as invalid #3436

AmjadHD opened this issue Jun 19, 2022 · 3 comments
Labels
C: Syntax pending-upstream T: enhancement Improvement of existing language features

Comments

@AmjadHD
Copy link

AmjadHD commented Jun 19, 2022

What happened?

    /// Attribute macro used to apply derive macros.
    #[stable(feature = "rust1", since = "1.0.0")]
    #[rustc_builtin_macro]
    pub macro derive($item:item) {
        /* compiler built-in */
    }

image

@AmjadHD AmjadHD added the T: bug A bug in an existing language feature label Jun 19, 2022
@deathaxe
Copy link
Collaborator

deathaxe commented Jun 19, 2022

According to https://doc.rust-lang.org/reference/keywords.html#reserved-keywords macro is a reserved but not yet used word. As such it may not be used and therefore seems to be highlighted invalid by intend.

According to https://github.com/rust-lang/rfcs/blob/master/text/1584-macros.md it is a experimental feature which is scheduled for Rust 2.0

@deathaxe deathaxe added T: enhancement Improvement of existing language features C: Syntax and removed T: bug A bug in an existing language feature labels Jun 19, 2022
@AmjadHD
Copy link
Author

AmjadHD commented Jun 20, 2022

Ok, thanks.
should I open a ticket for this ?
image

@deathaxe
Copy link
Collaborator

This issue is already fixed in ST4134. Maybe fixed by #2305

grafik

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C: Syntax pending-upstream T: enhancement Improvement of existing language features
Projects
None yet
Development

No branches or pull requests

3 participants