Skip to content

Commit

Permalink
Avoid rustdoc ICE when an unstable feature is used
Browse files Browse the repository at this point in the history
  • Loading branch information
sanxiyn committed Jan 2, 2017
1 parent ac5cd3b commit 6319558
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions src/librustdoc/core.rs
Expand Up @@ -156,9 +156,15 @@ pub fn run_core(search_paths: SearchPaths,
let name = link::find_crate_name(Some(&sess), &krate.attrs, &input);

let driver::ExpansionResult { defs, analysis, resolutions, mut hir_forest, .. } = {
driver::phase_2_configure_and_expand(
&sess, &cstore, krate, None, &name, None, resolve::MakeGlobMap::No, |_| Ok(()),
).expect("phase_2_configure_and_expand aborted in rustdoc!")
let result = driver::phase_2_configure_and_expand(&sess,
&cstore,
krate,
None,
&name,
None,
resolve::MakeGlobMap::No,
|_| Ok(()));
abort_on_err(result, &sess)
};

let arena = DroplessArena::new();
Expand Down

0 comments on commit 6319558

Please sign in to comment.