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

Unify SyntaxExtension::Decorator and SyntaxExtension::Modifier #19083

Closed
kmcallister opened this issue Nov 18, 2014 · 13 comments
Closed

Unify SyntaxExtension::Decorator and SyntaxExtension::Modifier #19083

kmcallister opened this issue Nov 18, 2014 · 13 comments
Labels
A-syntaxext Area: Syntax extensions C-cleanup Category: PRs that clean code up or issues documenting cleanup. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Comments

@kmcallister
Copy link
Contributor

With a signature like

fn expand(&self, ecx: &mut ExtCtxt, span: Span, meta_item: &MetaItem, orig_item: P<Item>) -> SmallVector<P<Item>>;

to match MacResult::make_items.

@kmcallister kmcallister added E-easy Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue. A-syntaxext Area: Syntax extensions labels Nov 18, 2014
@Manishearth
Copy link
Member

Please, this.

For #[jstraceable] in Servo, I've accomplished this by writing an ItemDecorator which expands into more attributes.

(Though in the long run that's probably what we want since it's more easily extended)

@Manishearth
Copy link
Member

(I'll probably work on this if I get time next week -- if someone else is interested feel free to take it)

@druzn3k
Copy link

druzn3k commented Dec 24, 2014

As I am waiting for a response in #9303, i would like to work on this in the meantime. @Manishearth, it's ok with you or are you still working on the issue?

@Manishearth
Copy link
Member

@druzn3k Sure, work on it if you want. I had a partial patch but at the moment my rustc build is being used for a different feature so I won't be working on it anyway.

@druzn3k
Copy link

druzn3k commented Dec 24, 2014

would you mind sharing the patch with me @Manishearth? :)

@Manishearth
Copy link
Member

I don't think I have it anymore, I did a clean clone the other day :p Anyway, it's rather simple IIRC.

@druzn3k
Copy link

druzn3k commented Dec 24, 2014

Thank you anyway @Manishearth :)

@kmcallister kmcallister changed the title Unify ItemDecorator and ItemModifier Unify SyntaxExtension::Decorator and SyntaxExtension::ItemModifier Feb 27, 2015
@kmcallister kmcallister changed the title Unify SyntaxExtension::Decorator and SyntaxExtension::ItemModifier Unify SyntaxExtension::Decorator and SyntaxExtension::Modifier Feb 27, 2015
@kmcallister
Copy link
Contributor Author

We now have Decorator, Modifier, and MultiModifier. Can we remove the first two?

@steveklabnik
Copy link
Member

Grepping around, I think this is fixed. I vaguely remember @nrc sending a PR to unify this stuff as well. Can anyone else confirm?

@nrc
Copy link
Member

nrc commented May 26, 2016

This is still an issue, we're basically waiting on the procedural macros changes to fix this (currently in RFC).

@brson brson removed the E-easy Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue. label Jun 28, 2016
@Mark-Simulacrum Mark-Simulacrum added C-cleanup Category: PRs that clean code up or issues documenting cleanup. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Jul 22, 2017
@steveklabnik
Copy link
Member

procedural macros are stable; closing!

@petrochenkov
Copy link
Contributor

Procedural macros 1.2 are stabilized, but this cleanup of legacy plugins is still not done.
I don't think it makes sense to track it with an issue though.

@steveklabnik
Copy link
Member

Yes, that's a good point. thanks

lnicola added a commit to lnicola/rust that referenced this issue Feb 10, 2025
line-index: don't try to use (unavailable) neon on big-endian aarch64
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-syntaxext Area: Syntax extensions C-cleanup Category: PRs that clean code up or issues documenting cleanup. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects
None yet
Development

No branches or pull requests

8 participants