Convert some more macro panics to diagnostics (#611)

This should hopefully be the last of the manually written diagnostics!
This commit is contained in:
Alex Crichton
2018-08-02 11:12:50 -05:00
committed by GitHub
parent 71dbd08c00
commit 4a78769349
5 changed files with 68 additions and 8 deletions

View File

@ -4,7 +4,7 @@ use quote::ToTokens;
#[macro_export]
macro_rules! err_span {
($span:expr, $($msg:tt)*) => (
::backend::Diagnostic::span_error(&$span, format!($($msg)*))
$crate::Diagnostic::span_error(&$span, format!($($msg)*))
)
}