Skip to content

Commit 0bf7b55

Browse files
Zoxcarielb1
authored andcommitted
Remove debug statements
1 parent dba2ca8 commit 0bf7b55

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

src/librustc_typeck/check/generator_interior.rs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,6 @@ impl<'a, 'gcx, 'tcx> InteriorVisitor<'a, 'gcx, 'tcx> {
3333
fn record(&mut self, ty: Ty<'tcx>, scope: Option<region::Scope>, expr: Option<&'tcx Expr>) {
3434
use syntax_pos::DUMMY_SP;
3535

36-
if self.fcx.tcx.sess.verbose() {
37-
let span = scope.map_or(DUMMY_SP, |s| s.span(self.fcx.tcx, &self.region_scope_tree));
38-
self.fcx.tcx.sess.span_warn(span, &format!("temporary scope for node id {:?}", expr));
39-
}
40-
4136
let live_across_yield = scope.map_or(Some(DUMMY_SP), |s| {
4237
self.region_scope_tree.yield_in_scope(s).and_then(|(span, expr_count)| {
4338
// Check if the span in the region comes after the expression
@@ -121,10 +116,6 @@ impl<'a, 'gcx, 'tcx> Visitor<'tcx> for InteriorVisitor<'a, 'gcx, 'tcx> {
121116
fn visit_expr(&mut self, expr: &'tcx Expr) {
122117
self.expr_count += 1;
123118

124-
if self.fcx.tcx.sess.verbose() {
125-
self.fcx.tcx.sess.span_warn(expr.span, &format!("node id {:?}", expr.id));
126-
}
127-
128119
let scope = self.region_scope_tree.temporary_scope(expr.hir_id.local_id);
129120

130121

0 commit comments

Comments
 (0)