Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Run rustfmt
  • Loading branch information
oli-obk committed Mar 23, 2020
1 parent 4f513b5 commit 9b1893f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/librustc/ty/sty.rs
Expand Up @@ -2411,7 +2411,10 @@ impl<'tcx> Const<'tcx> {

let body_id = match tcx.hir().get(hir_id) {
hir::Node::AnonConst(ac) => ac.body,
_ => span_bug!(tcx.def_span(def_id.to_def_id()), "from_anon_const can only process anonymous constants"),
_ => span_bug!(
tcx.def_span(def_id.to_def_id()),
"from_anon_const can only process anonymous constants"
),
};

let expr = &tcx.hir().body(body_id).value;
Expand Down

0 comments on commit 9b1893f

Please sign in to comment.