fix formatting
This commit is contained in:
parent
d6da5fb353
commit
5874b09806
2 changed files with 2 additions and 8 deletions
|
@ -119,9 +119,7 @@ fn span_err(span: impl proc_macro::MultiSpan, msg: &str) -> proc_macro::Diagnost
|
|||
/// Emit a diagnostic on span `$span` with msg `$msg` (optionally performing additional decoration
|
||||
/// using the `FnOnce` passed in `diag`) and return `Err(ErrorHandled)`.
|
||||
macro_rules! throw_span_err {
|
||||
($span:expr, $msg:expr) => {{
|
||||
throw_span_err!($span, $msg, |diag| diag)
|
||||
}};
|
||||
($span:expr, $msg:expr) => {{ throw_span_err!($span, $msg, |diag| diag) }};
|
||||
($span:expr, $msg:expr, $f:expr) => {{
|
||||
return Err(_throw_span_err($span, $msg, $f));
|
||||
}};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue