Skip to content

Commit

Permalink
remove test code accidentally checked in
Browse files Browse the repository at this point in the history
  • Loading branch information
arielb1 committed Sep 24, 2017
1 parent 9c4898e commit b408144
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/librustc_mir/transform/type_check.rs
Expand Up @@ -487,16 +487,6 @@ impl<'a, 'gcx, 'tcx> TypeChecker<'a, 'gcx, 'tcx> {

if self.is_box_free(func) {
self.check_box_free_inputs(mir, term, &sig, args);
// THIS IS A TEST. TEST TEST.
if let ClearOnDecode::Set(ref data) = mir.visibility_scope_info {
let lint_node_id = data[term.source_info.scope].lint_root;
tcx.struct_span_lint_node(
::rustc::lint::builtin::TRIVIAL_NUMERIC_CASTS,
lint_node_id,
term.source_info.span,
"hi I'm a lint")
.emit();
}
} else {
self.check_call_inputs(mir, term, &sig, args);
}
Expand Down

0 comments on commit b408144

Please sign in to comment.