Skip to content

Commit

Permalink
Addressed breaking changes introduced by proc_macro span
Browse files Browse the repository at this point in the history
  • Loading branch information
Liby99 committed Jul 1, 2023
1 parent bfcad12 commit a3f7b67
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions core/src/compiler/front/source/rust_macro.rs
Original file line number Diff line number Diff line change
Expand Up @@ -162,15 +162,15 @@ struct LineColumn {
fn span_start_line_column(span: &proc_macro2::Span) -> LineColumn {
let s = span.unwrap().start();
LineColumn {
line: s.line,
column: s.column,
line: s.line(),
column: s.column(),
}
}

fn span_end_line_column(span: &proc_macro2::Span) -> LineColumn {
let s = span.unwrap().end();
LineColumn {
line: s.line,
column: s.column,
line: s.line(),
column: s.column(),
}
}

0 comments on commit a3f7b67

Please sign in to comment.