Skip to content

Commit 066796c

Browse files
committed
Addressing tidy check fail
1 parent 649749c commit 066796c

File tree

1 file changed

+7
-2
lines changed
  • compiler/rustc_const_eval/src/const_eval

1 file changed

+7
-2
lines changed

compiler/rustc_const_eval/src/const_eval/mod.rs

+7-2
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,14 @@ pub(crate) fn eval_to_valtree<'tcx>(
7575
let global_const_id = cid.display(tcx);
7676
match err {
7777
ValTreeCreationError::NodesOverflow => {
78-
let msg = format!("maximum number of nodes exceeded in constant {}", &global_const_id);
78+
let msg = format!(
79+
"maximum number of nodes exceeded in constant {}",
80+
&global_const_id
81+
);
7982
let mut diag = match tcx.hir().span_if_local(did) {
80-
Some(span) => tcx.sess.create_err(MaxNumNodesInConstErr { span, global_const_id }),
83+
Some(span) => {
84+
tcx.sess.create_err(MaxNumNodesInConstErr { span, global_const_id })
85+
}
8186
None => tcx.sess.struct_err(&msg),
8287
};
8388
diag.emit();

0 commit comments

Comments
 (0)