Auto merge of #38773 - sanxiyn:rustdoc-ice, r=steveklabnik
Avoid rustdoc ICE when an unstable feature is used Fix #36159.
This commit is contained in:
commit
9c0e373f91
@ -156,9 +156,15 @@ pub fn run_core(search_paths: SearchPaths,
|
|||||||
let name = link::find_crate_name(Some(&sess), &krate.attrs, &input);
|
let name = link::find_crate_name(Some(&sess), &krate.attrs, &input);
|
||||||
|
|
||||||
let driver::ExpansionResult { defs, analysis, resolutions, mut hir_forest, .. } = {
|
let driver::ExpansionResult { defs, analysis, resolutions, mut hir_forest, .. } = {
|
||||||
driver::phase_2_configure_and_expand(
|
let result = driver::phase_2_configure_and_expand(&sess,
|
||||||
&sess, &cstore, krate, None, &name, None, resolve::MakeGlobMap::No, |_| Ok(()),
|
&cstore,
|
||||||
).expect("phase_2_configure_and_expand aborted in rustdoc!")
|
krate,
|
||||||
|
None,
|
||||||
|
&name,
|
||||||
|
None,
|
||||||
|
resolve::MakeGlobMap::No,
|
||||||
|
|_| Ok(()));
|
||||||
|
abort_on_err(result, &sess)
|
||||||
};
|
};
|
||||||
|
|
||||||
let arena = DroplessArena::new();
|
let arena = DroplessArena::new();
|
||||||
|
Loading…
Reference in New Issue
Block a user