提交 b408144d 编写于 作者: A Ariel Ben-Yehuda

remove test code accidentally checked in

上级 9c4898ea
......@@ -487,16 +487,6 @@ fn check_terminator(&mut self,
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);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册