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

include! should allow inner doc comments and directives #66920

joshtriplett opened this issue Dec 1, 2019 · 1 comment


Copy link

@joshtriplett joshtriplett commented Dec 1, 2019

Currently, include! cannot include a file that contains inner doc comments (//! ...) or directives (#![...]). That creates a challenge when trying to generate a crate's top-level contents with a build script.

See for discussion. @dtolnay pointed out that we can fix this backwards-compatibly, as it would just turn an error into a non-error.


This comment has been minimized.

Copy link

@Centril Centril commented Dec 1, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
3 participants
You can’t perform that action at this time.