Skip to content

include! items #3504

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

Closed
jesse99 opened this issue Sep 15, 2012 · 3 comments
Closed

include! items #3504

jesse99 opened this issue Sep 15, 2012 · 3 comments

Comments

@jesse99
Copy link
Contributor

jesse99 commented Sep 15, 2012

include! only seems to work in an expression context. It would be very nice if it also worked for items.

The use case I have in mind is generating rust code. If include! worked for items then I could simply include the generated code with a hand-written file which would give me control over what is exported from my library.

@jesse99
Copy link
Contributor Author

jesse99 commented Sep 15, 2012

Related to #3505

@nikomatsakis
Copy link
Contributor

Related to #3086.

@graydon
Copy link
Contributor

graydon commented Sep 19, 2012

Yeah, this is actually a dupe of #3086, closing.

@graydon graydon closed this as completed Sep 19, 2012
bors pushed a commit to rust-lang-ci/rust that referenced this issue May 15, 2021
RalfJung pushed a commit to RalfJung/rust that referenced this issue Apr 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants