Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upinclude! macro fails if included file has top-level inner attributes #752
Comments
steveklabnik
referenced this issue
Jan 27, 2015
Closed
include! macro fails if included file has top-level inner attributes #18810
steveklabnik
added
the
A-wishlist
label
Jan 27, 2015
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
dwrensha
commented
Jan 27, 2015
|
On the latest nightly, I still get the same error (after inserting a semicolon to account for the new macro syntax). |
dwrensha
referenced this issue
May 21, 2015
Closed
Suppressed lint warnings on dead-code and missing-docs for generated files. #16
huonw
referenced this issue
Nov 18, 2015
Closed
`include!` is a smell and should be made obsolete for code-generating cargo packages #21147
dflemstr
referenced this issue
Feb 22, 2016
Closed
Add support for generating files into Cargo OUT_DIR #85
This comment has been minimized.
This comment has been minimized.
SirVer
commented
Dec 8, 2016
|
Future searchers: I stumbled on this issue as I created a generated module in |
SirVer
referenced this issue
Dec 8, 2016
Open
Files generated by build script into src/ are compiled twice #3076
TimNN
referenced this issue
Feb 6, 2018
Closed
Inner attributes cannot be specified in include! files #47995
Centril
added
the
T-lang
label
Feb 23, 2018
petrochenkov
removed
the
A-wishlist
label
Feb 24, 2018
Marwes
added a commit
to Marwes/lalrpop
that referenced
this issue
Mar 17, 2018
Marwes
referenced this issue
Mar 17, 2018
Merged
fix: Allow lalrpop parsers to be used with include! #338
flier
referenced this issue
May 23, 2018
Merged
upgrade protobuf to v2.0 and gen binding file in the build script #171
tomaka
referenced this issue
Jul 10, 2018
Closed
[WIP] Check OS and install for Ubuntu and Manjaro, fix warnings #288
This comment has been minimized.
This comment has been minimized.
peterhuene
commented
Jul 31, 2018
|
After running into this issue still, I implemented a hacky workaround for this issue with the upcoming procedural macros feature: https://github.com/peterhuene/azure-functions-rs/blob/master/azure-functions-shared-codegen/src/lib.rs |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
steveklabnik commentedJan 27, 2015
Sunday Nov 09, 2014 at 14:25 GMT
For earlier discussion, see rust-lang/rust#18810
This issue was labelled with: in the Rust repository
I at first thought that the problem was due to the implicit insert of the prelude in the
includedmodule. However, adding a#[no_implicit_prelude]attribute does not help.