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

Add macro scope details to the Macro tutorial. #9329

Closed
nejucomo opened this issue Sep 19, 2013 · 3 comments
Closed

Add macro scope details to the Macro tutorial. #9329

nejucomo opened this issue Sep 19, 2013 · 3 comments
Labels
A-syntaxext Area: Syntax extensions

Comments

@nejucomo
Copy link

The Macro Tutorial doesn't explain the scope of macro definitions, nor does it describe the #[macro_escape] mechanism.

@pnkfelix
Copy link
Member

part of #11755

(though i'm not 100% sure that the macro_escape mechanism is properly within the scope of a tutorial, rather than a reference manual.... also I'm not sure if the macro_escape mechanism is something we want to commit to supporting long term...)

@kmcallister
Copy link
Contributor

also I'm not sure if the macro_escape mechanism is something we want to commit to supporting long term

I'd recommend a rename at minimum. macro_escape vs macro_export is very confusing.

@steveklabnik
Copy link
Member

http://doc.rust-lang.org/book/macros.html#scoping-and-macro-import/export now describes scope, as well as macro_use, the fixed up version of macro-escape.

Jarcho pushed a commit to Jarcho/rust that referenced this issue Aug 29, 2022
Skip `unnecessary_to_owned` when `t != t.to_string()`

Fixes rust-lang#9317

changelog: [`unnecessary_to_owned`]: none
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-syntaxext Area: Syntax extensions
Projects
None yet
Development

No branches or pull requests

4 participants