Fix trace_macros and log_syntax
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user