From e9ec282df8fb658cca1a0a3acb2cb6cf62fd1f84 Mon Sep 17 00:00:00 2001 From: Niko Matsakis Date: Tue, 5 Apr 2016 18:21:12 -0400 Subject: [PATCH] Fix another call to bug into the macro --- src/librustc_incremental/persist/load.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/librustc_incremental/persist/load.rs b/src/librustc_incremental/persist/load.rs index 7cf53b37b1c1..30923f6826ef 100644 --- a/src/librustc_incremental/persist/load.rs +++ b/src/librustc_incremental/persist/load.rs @@ -69,9 +69,7 @@ pub fn load_dep_graph_if_exists<'tcx>(tcx: &ty::TyCtxt<'tcx>, path: &Path) { match decode_dep_graph(tcx, Doc::new(&data)) { Ok(dirty) => dirty, Err(err) => { - tcx.sess.bug( - &format!("decoding error in dep-graph from `{}`: {}", - path.display(), err)); + bug!("decoding error in dep-graph from `{}`: {}", path.display(), err); } } }