Skip to content

Commit 97fc214

Browse files
committed
cleanup temp log entries
1 parent 3a435f9 commit 97fc214

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

compiler/rustc_mir_build/src/builder/matches/match_pair.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ impl<'a, 'tcx> Builder<'a, 'tcx> {
6161
if self.is_constant_pattern_subslice(prefix) && opt_slice.is_none() && suffix.len() == 0 {
6262
let elem_ty = prefix[0].ty;
6363
let prefix_valtree = self.simplify_const_pattern_slice_into_valtree(prefix);
64-
//tracing::warn!("reduced prefix ({:?}) to ({:?})", prefix, prefix_valtree);
6564

6665
let match_pair = self.valtree_to_match_pair(
6766
src_path.ty,
@@ -158,7 +157,6 @@ impl<'a, 'tcx> Builder<'a, 'tcx> {
158157
elem_ty: Ty<'tcx>,
159158
) -> MatchPairTree<'pat, 'tcx> {
160159
let tcx = self.tcx;
161-
tracing::warn!("valtree_to_match_pair: {:?} {:?}", subslice_len, src_pat_ty);
162160

163161
let (const_ty, pat_ty) = match src_pat_ty.kind() {
164162
ty::Slice(_) => (

compiler/rustc_mir_build/src/builder/matches/test.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ use rustc_middle::{bug, span_bug};
1717
use rustc_span::def_id::DefId;
1818
use rustc_span::source_map::Spanned;
1919
use rustc_span::{DUMMY_SP, Span, Symbol, sym};
20-
use tracing::{debug, instrument};
20+
use tracing::instrument;
2121

2222
use crate::builder::Builder;
2323
use crate::builder::matches::{Candidate, MatchPairTree, Test, TestBranch, TestCase, TestKind};
@@ -397,7 +397,6 @@ impl<'a, 'tcx> Builder<'a, 'tcx> {
397397
loop {
398398
match ty.kind() {
399399
ty::Ref(_, inner_ty @ _, _) if inner_ty.is_ref() => {
400-
tracing::warn!("descending from {:?} to {:?}", ty.kind(), inner_ty.kind());
401400
ty = *inner_ty;
402401
let temp = self.temp(ty, source_info.span);
403402
self.cfg.push_assign(
@@ -406,7 +405,6 @@ impl<'a, 'tcx> Builder<'a, 'tcx> {
406405
temp,
407406
Rvalue::Use(Operand::Copy(val)),
408407
);
409-
tracing::warn!("from {:?} to {:?}", val, temp);
410408
val = temp;
411409
}
412410
_ => break,

0 commit comments

Comments
 (0)