about summary refs log tree commit diff
diff options
context:
space:
mode:
authorOliver Scherer <github35764891676564198441@oli-obk.de>2020-03-24 00:16:05 +0100
committerOliver Scherer <github35764891676564198441@oli-obk.de>2020-03-24 00:16:05 +0100
commit9b1893f310d185478a0980a7367d5fbc9affcbcc (patch)
treed107fc6db2612a343f81974ea675da1ab2ec1f2d
parent4f513b5fd7945937cba8bbfab84ae33e14642b85 (diff)
downloadrust-9b1893f310d185478a0980a7367d5fbc9affcbcc.tar.gz
rust-9b1893f310d185478a0980a7367d5fbc9affcbcc.zip
Run rustfmt
-rw-r--r--src/librustc/ty/sty.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/librustc/ty/sty.rs b/src/librustc/ty/sty.rs
index 73fe15d9a17..cfd99cbbb9f 100644
--- a/src/librustc/ty/sty.rs
+++ b/src/librustc/ty/sty.rs
@@ -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;