Switch proc-macro-error to proc-macro-error2 (#493)

This commit is contained in:
Evie
2024-11-30 17:37:40 -05:00
committed by GitHub
parent 5fd96c7908
commit 031854fa2a
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -74,7 +74,7 @@ fn parse_pos(span: &Span) -> Option<(usize, usize)> {
fn fallback_span_pos(span: &Span) -> (Pos, Pos) {
let (start, end) = match parse_pos(span) {
Some(v) => v,
None => proc_macro_error::abort_call_site!("Cannot retrieve span information; please use nightly"),
None => proc_macro_error2::abort_call_site!("Cannot retrieve span information; please use nightly"),
};
(Pos::new(1, start), Pos::new(1, end))
}