Skip to content

Commit

Permalink
Print region in case of ICE
Browse files Browse the repository at this point in the history
  • Loading branch information
sinkuu committed Apr 8, 2018
1 parent 20c499d commit b9e04e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/librustc/infer/error_reporting/mod.rs
Expand Up @@ -181,7 +181,7 @@ impl<'a, 'gcx, 'tcx> TyCtxt<'a, 'gcx, 'tcx> {
self.msg_span_from_early_bound_and_free_regions(region)
},
ty::ReStatic => ("the static lifetime".to_owned(), None),
_ => bug!(),
_ => bug!("{:?}", region),
}
}

Expand Down

0 comments on commit b9e04e5

Please sign in to comment.