Skip to content

Commit b408144

Browse files
committed
remove test code accidentally checked in
1 parent 9c4898e commit b408144

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

src/librustc_mir/transform/type_check.rs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -487,16 +487,6 @@ impl<'a, 'gcx, 'tcx> TypeChecker<'a, 'gcx, 'tcx> {
487487

488488
if self.is_box_free(func) {
489489
self.check_box_free_inputs(mir, term, &sig, args);
490-
// THIS IS A TEST. TEST TEST.
491-
if let ClearOnDecode::Set(ref data) = mir.visibility_scope_info {
492-
let lint_node_id = data[term.source_info.scope].lint_root;
493-
tcx.struct_span_lint_node(
494-
::rustc::lint::builtin::TRIVIAL_NUMERIC_CASTS,
495-
lint_node_id,
496-
term.source_info.span,
497-
"hi I'm a lint")
498-
.emit();
499-
}
500490
} else {
501491
self.check_call_inputs(mir, term, &sig, args);
502492
}

0 commit comments

Comments
 (0)