diff options
| author | Tatsuyuki Ishi <ishitatsuyuki@gmail.com> | 2019-02-04 18:04:33 +0900 |
|---|---|---|
| committer | ishitatsuyuki <ishitatsuyuki@gmail.com> | 2019-02-04 18:12:21 +0900 |
| commit | 526a398c77e7be8b437ea4b7cae06e0f3a026155 (patch) | |
| tree | 874b1964a22279e0b25f4857c97291945b95841b /src | |
| parent | 8ae730a442cc8af6a487a137ae9ba78f89edbba6 (diff) | |
| download | rust-526a398c77e7be8b437ea4b7cae06e0f3a026155.tar.gz rust-526a398c77e7be8b437ea4b7cae06e0f3a026155.zip | |
Fix #58101
Diffstat (limited to 'src')
| -rw-r--r-- | src/librustc/middle/stability.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/librustc/middle/stability.rs b/src/librustc/middle/stability.rs index 3717ee7143c..c726885337e 100644 --- a/src/librustc/middle/stability.rs +++ b/src/librustc/middle/stability.rs @@ -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)); } } } |
