Fix trace_macros and log_syntax

This commit is contained in:
Vadim Petrochenkov
2018-12-20 03:57:48 +03:00
parent 4ac592516f
commit b99fb2f544
6 changed files with 25 additions and 19 deletions

View File

@@ -666,7 +666,7 @@ impl<'a, 'b> Context<'a, 'b> {
"X" => "UpperHex",
_ => {
ecx.span_err(sp, &format!("unknown format trait `{}`", *tyname));
return DummyResult::raw_expr(sp);
return DummyResult::raw_expr(sp, true);
}
}
}
@@ -761,7 +761,7 @@ pub fn expand_preparsed_format_args(ecx: &mut ExtCtxt,
Applicability::MaybeIncorrect,
);
err.emit();
return DummyResult::raw_expr(sp);
return DummyResult::raw_expr(sp, true);
}
};
@@ -857,7 +857,7 @@ pub fn expand_preparsed_format_args(ecx: &mut ExtCtxt,
e.span_label(sp, label);
}
e.emit();
return DummyResult::raw_expr(sp);
return DummyResult::raw_expr(sp, true);
}
let arg_spans = parser.arg_places.iter()