emit suggestion byte literal is passed to format!

This commit is contained in:
ibraheemdev 2021-07-24 17:34:58 -04:00
parent e1d49aaad4
commit f56034ec3e
5 changed files with 61 additions and 15 deletions

View file

@ -412,7 +412,7 @@ fn expand_preparsed_asm(ecx: &mut ExtCtxt<'_>, sp: Span, args: AsmArgs) -> P<ast
match expr_to_spanned_string(ecx, template_expr, msg) {
Ok(template_part) => template_part,
Err(err) => {
if let Some(mut err) = err {
if let Some((mut err, _)) = err {
err.emit();
}
return DummyResult::raw_expr(sp, true);