collapsible_if: remove extraneous note output

This was probably a debug addition.
This commit is contained in:
Georg Brandl 2015-08-25 13:26:20 +02:00
parent 125f08d2c6
commit d5c808acd0

View File

@ -48,7 +48,6 @@ fn check_expr_expd(cx: &Context, e: &Expr, info: Option<&ExpnInfo>) {
if e.span.expn_id != sp.expn_id {
return;
}
cx.sess().note(&format!("{:?} -- {:?}", e.span, sp));
span_help_and_lint(cx, COLLAPSIBLE_IF, e.span,
"this if statement can be collapsed",
&format!("try\nif {} && {} {}",