about summary refs log tree commit diff
path: root/compiler/rustc_const_eval/src
diff options
context:
space:
mode:
authornidnogg <henriquevt98@gmail.com>2022-08-22 12:32:42 -0300
committernidnogg <henriquevt98@gmail.com>2022-08-22 12:32:42 -0300
commit066796cecebf79fe8732c33d10167999661dca67 (patch)
treee2393215c0c99a3026aa82f9b1fc66e7a4d37861 /compiler/rustc_const_eval/src
parent649749c7b040580abc6b0654584e3a580b1870d7 (diff)
downloadrust-066796cecebf79fe8732c33d10167999661dca67.tar.gz
rust-066796cecebf79fe8732c33d10167999661dca67.zip
Addressing tidy check fail
Diffstat (limited to 'compiler/rustc_const_eval/src')
-rw-r--r--compiler/rustc_const_eval/src/const_eval/mod.rs9
1 files changed, 7 insertions, 2 deletions
diff --git a/compiler/rustc_const_eval/src/const_eval/mod.rs b/compiler/rustc_const_eval/src/const_eval/mod.rs
index cef74432102..d9c4ae4d53f 100644
--- a/compiler/rustc_const_eval/src/const_eval/mod.rs
+++ b/compiler/rustc_const_eval/src/const_eval/mod.rs
@@ -75,9 +75,14 @@ pub(crate) fn eval_to_valtree<'tcx>(
             let global_const_id = cid.display(tcx);
             match err {
                 ValTreeCreationError::NodesOverflow => {
-                    let msg = format!("maximum number of nodes exceeded in constant {}", &global_const_id);
+                    let msg = format!(
+                        "maximum number of nodes exceeded in constant {}",
+                        &global_const_id
+                    );
                     let mut diag = match tcx.hir().span_if_local(did) {
-                        Some(span) => tcx.sess.create_err(MaxNumNodesInConstErr { span, global_const_id }),
+                        Some(span) => {
+                            tcx.sess.create_err(MaxNumNodesInConstErr { span, global_const_id })
+                        }
                         None => tcx.sess.struct_err(&msg),
                     };
                     diag.emit();