dtolnay/cargo-llvm-lines

Running again after code changes shows outdated results

SimonSapin opened this issue · 1 comments

Steps to reproduce:

  • Run cargo llvm-lines
  • Make code changes, such as renaming a function (and changing its body)
  • Run cargo llvm-lines again

Expected results: output similar to that of cargo build after code changes, then showing updated results for LLVM lines and instantiation count.

Actual result: output similar to that of cargo build after code changes (so code is indeed recompiled), but the lines and count results are exactly the same as the first time, including the renamed function’s old name.

Work-around: cargo clean && cargo llvm-lines

In a more recent version of the tool I am able to get updated results without cargo clean.