summary refs log tree commit diff
path: root/tests/incremental/thinlto
diff options
context:
space:
mode:
authorZalathar <Zalathar@users.noreply.github.com>2023-11-12 18:07:28 +1100
committerMark Rousskov <mark.simulacrum@gmail.com>2023-11-18 12:50:02 -0500
commit549056f322fc8934f01ff7fb1fe51b607d81de31 (patch)
tree8d6e1a892df291578c669db87778c60bb78a88bb /tests/incremental/thinlto
parentc9e8959eff51d7c6f8fa437bb77e0bef791fb711 (diff)
downloadrust-549056f322fc8934f01ff7fb1fe51b607d81de31.tar.gz
rust-549056f322fc8934f01ff7fb1fe51b607d81de31.zip
coverage: Avoid creating malformed macro name spans
This method is trying to detect macro invocations, so that it can split a span
into two parts just after the `!` of the invocation.

Under some circumstances (probably involving nested macros), it gets confused
and produces a span that is larger than the original span, and possibly extends
outside its enclosing function and even into an adjacent file.

In extreme cases, that can result in malformed coverage mappings that cause
`llvm-cov` to fail. For now, we at least want to detect these egregious cases
and avoid them, so that coverage reports can still be produced.
Diffstat (limited to 'tests/incremental/thinlto')
0 files changed, 0 insertions, 0 deletions