remove debug stmts

This commit is contained in:
Ellen 2021-09-07 01:17:51 +01:00
parent 1f57f8b903
commit 15101c8e95
4 changed files with 1 additions and 8 deletions

View file

@ -435,9 +435,8 @@ pub(super) fn mir_abstract_const<'tcx>(
DefKind::AnonConst => (),
_ => return Ok(None),
}
debug!("mir_abstract_const: {:?}", def);
let body = tcx.thir_body(def);
if body.0.borrow().exprs.is_empty() {
// type error in constant, there is no thir
return Err(ErrorReported);