Navigation Menu

Skip to content

Commit

Permalink
Fix #58101
Browse files Browse the repository at this point in the history
  • Loading branch information
ishitatsuyuki committed Feb 4, 2019
1 parent 8ae730a commit 526a398
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/librustc/middle/stability.rs
Expand Up @@ -765,7 +765,9 @@ impl<'a, 'gcx, 'tcx> TyCtxt<'a, 'gcx, 'tcx> {
}
}
EvalResult::Unmarked => {
span_bug!(span, "encountered unmarked API: {:?}", def_id);
// The API could be uncallable for other reasons, for example when a private module
// was referenced.
self.sess.delay_span_bug(span, &format!("encountered unmarked API: {:?}", def_id));
}
}
}
Expand Down

0 comments on commit 526a398

Please sign in to comment.