Skip to content

Commit

Permalink
Merge pull request #487 from dtolnay/mismatchline
Browse files Browse the repository at this point in the history
Change mismatch panic message to avoid github linkifying
  • Loading branch information
dtolnay authored Nov 21, 2024
2 parents 5046761 + ae478ed commit 0cb443d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/wrapper.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,11 @@ fn mismatch(line: u32) -> ! {
#[cfg(procmacro2_backtrace)]
{
let backtrace = std::backtrace::Backtrace::force_capture();
panic!("compiler/fallback mismatch #{}\n\n{}", line, backtrace)
panic!("compiler/fallback mismatch L{}\n\n{}", line, backtrace)
}
#[cfg(not(procmacro2_backtrace))]
{
panic!("compiler/fallback mismatch #{}", line)
panic!("compiler/fallback mismatch L{}", line)
}
}

Expand Down

0 comments on commit 0cb443d

Please sign in to comment.