You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is generally a bad idea, because it's going to behave unhygienically.
current given file? wat
"as an expression" is incorrect -- it could be an item or statement according to context
The second sentence is vague and confusing if you aren't familiar with hygiene.
Behavior WRT relative paths is not specified (for include_str! it is).
include!() is widely used for generated code these days, so the doc should be more informative and clearly explain in which situations include!() is a bad idea. Maybe even have an example of including generated code from $OUT_DIR.
Documentation change to macros.rs for `includes!`
I'm not sure if this documentation is clear or extensive enough, but this is just to get started on the problem, fixes issue #36387.
steveklabnik
removed
the
A-docs
Area: Documentation for any part of the project, including the compiler, standard library, and tools
label
Mar 10, 2017
steveklabnik
added
A-docs
Area: Documentation for any part of the project, including the compiler, standard library, and tools
and removed
A-docs
labels
Mar 23, 2017
The docs are:
include_str!
it is).include!()
is widely used for generated code these days, so the doc should be more informative and clearly explain in which situationsinclude!()
is a bad idea. Maybe even have an example of including generated code from $OUT_DIR.Part of #29381.
The text was updated successfully, but these errors were encountered: