Skip to content

Commit 9eeb3ee

Browse files
committed
Suppress MIR comments for FnDef in ty::Const
1 parent 1656582 commit 9eeb3ee

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/librustc_mir/util/pretty.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -405,6 +405,7 @@ impl Visitor<'tcx> for ExtraComments<'tcx> {
405405
let ty::Const { ty, val, .. } = constant;
406406
match ty.kind {
407407
ty::Int(_) | ty::Uint(_) | ty::Bool | ty::Char => {}
408+
ty::FnDef(..) => {}
408409
_ => {
409410
self.push("ty::Const");
410411
self.push(&format!("+ ty: {:?}", ty));

0 commit comments

Comments
 (0)