mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-29 10:13:54 +00:00
ed8298b825
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. |
||
---|---|---|
.. | ||
src | ||
Cargo.toml | ||
messages.ftl |