Skip to content

Commit

Permalink
fixup! remove unwind, use proc_macro::is_available
Browse files Browse the repository at this point in the history
  • Loading branch information
MingweiSamuel committed Dec 12, 2024
1 parent 9546097 commit 781c408
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion hydroflow_lang/src/diagnostic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,13 @@ impl From<Span> for SerdeSpan {
let path = 'a: {
#[cfg(nightly)]
if proc_macro::is_available() {
break 'a span.unwrap().source_file().path().display().to_string().into();
break 'a span
.unwrap()
.source_file()
.path()
.display()
.to_string()
.into();
}

break 'a "unknown".into();
Expand Down

0 comments on commit 781c408

Please sign in to comment.