Fix the search paths for macro-expanded non-inline modules

This commit is contained in:
Jeffrey Seyfried
2016-03-01 09:28:42 +00:00
parent cccc0880d9
commit 472fcb5973
3 changed files with 60 additions and 3 deletions

View File

@@ -552,6 +552,10 @@ pub struct ExtCtxt<'a> {
pub syntax_env: SyntaxEnv,
pub recursion_count: usize,
pub filename: Option<String>,
pub mod_path_stack: Vec<InternedString>,
pub in_block: bool,
}
impl<'a> ExtCtxt<'a> {
@@ -570,6 +574,10 @@ impl<'a> ExtCtxt<'a> {
exported_macros: Vec::new(),
syntax_env: env,
recursion_count: 0,
filename: None,
mod_path_stack: Vec::new(),
in_block: false,
}
}