Allow CompilerControllers to access rustc_plugin::registry::Registry structure.

This commit is contained in:
Keunhong Lee 2016-09-04 03:22:56 +00:00
parent d128e6bc74
commit ca5dfd0c97
5 changed files with 14 additions and 9 deletions

View file

@ -146,7 +146,7 @@ pub fn run_core(search_paths: SearchPaths,
let driver::ExpansionResult { defs, analysis, resolutions, mut hir_forest, .. } = {
driver::phase_2_configure_and_expand(
&sess, &cstore, krate, &name, None, resolve::MakeGlobMap::No, |_| Ok(()),
&sess, &cstore, krate, None, &name, None, resolve::MakeGlobMap::No, |_| Ok(()),
).expect("phase_2_configure_and_expand aborted in rustdoc!")
};

View file

@ -94,7 +94,7 @@ pub fn run(input: &str,
let krate = panictry!(driver::phase_1_parse_input(&sess, cfg, &input));
let driver::ExpansionResult { defs, mut hir_forest, .. } = {
phase_2_configure_and_expand(
&sess, &cstore, krate, "rustdoc-test", None, MakeGlobMap::No, |_| Ok(())
&sess, &cstore, krate, None, "rustdoc-test", None, MakeGlobMap::No, |_| Ok(())
).expect("phase_2_configure_and_expand aborted in rustdoc!")
};