diff options
| author | Ellen <supbscripter@gmail.com> | 2021-09-07 01:17:51 +0100 |
|---|---|---|
| committer | Ellen <supbscripter@gmail.com> | 2021-09-09 01:32:03 +0100 |
| commit | 15101c8e95db6941f8c7d55fb301ad1b62748c7b (patch) | |
| tree | 487f88be0512d7c7e62e71aa73ae38f3a15d4f5d /compiler/rustc_trait_selection/src | |
| parent | 1f57f8b9032fa0f83aa59f634ac72f1e63a1cfa2 (diff) | |
| download | rust-15101c8e95db6941f8c7d55fb301ad1b62748c7b.tar.gz rust-15101c8e95db6941f8c7d55fb301ad1b62748c7b.zip | |
remove debug stmts
Diffstat (limited to 'compiler/rustc_trait_selection/src')
| -rw-r--r-- | compiler/rustc_trait_selection/src/traits/const_evaluatable.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/compiler/rustc_trait_selection/src/traits/const_evaluatable.rs b/compiler/rustc_trait_selection/src/traits/const_evaluatable.rs index c47b0c31ca0..4251dc5e939 100644 --- a/compiler/rustc_trait_selection/src/traits/const_evaluatable.rs +++ b/compiler/rustc_trait_selection/src/traits/const_evaluatable.rs @@ -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); |
