Skip to content

Commit

Permalink
Auto merge of #38773 - sanxiyn:rustdoc-ice, r=steveklabnik
Browse files Browse the repository at this point in the history
Avoid rustdoc ICE when an unstable feature is used

Fix #36159.
  • Loading branch information
bors committed Jan 4, 2017
2 parents e06ce71 + 6319558 commit 9c0e373
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions src/librustdoc/core.rs
Original file line number Diff line number Diff line change
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 9c0e373

Please sign in to comment.