Closed
Description
In particular, we should somehow allow using OUT_DIR
in the #[path]
of a mod foo
, to allow parsing to proceed normally. Since include!
doesn't do textual inclusion, but rather AST splicing, and is rather blind, it doesn't pass in the correct context to allow things like outer attributes to work in include!
'd code, even if it's mod foo { include!("foo.rs"); }
. It's conservatively correct, but conservatively obnoxious.