diff --git a/src/librustc_mir/transform/check_consts/validation.rs b/src/librustc_mir/transform/check_consts/validation.rs index 16453dd289c..4cc42c0408f 100644 --- a/src/librustc_mir/transform/check_consts/validation.rs +++ b/src/librustc_mir/transform/check_consts/validation.rs @@ -511,7 +511,7 @@ impl Visitor<'tcx> for Validator<'_, 'mir, 'tcx> { return; } _ => { - span_bug!(terminator.source_info.span, "invalid callee of type {:?}", fn_ty,) + span_bug!(terminator.source_info.span, "invalid callee of type {:?}", fn_ty) } };