Files
codeql/rust/extractor
Paolo Tranquilli 223f0c8684 Rust: fix macro expansion in library code
There was a mismatch between a `self.macro_context_level += 1` and the
corresponding `self.macro_context_level -= 1`, which resulted in an
`usize` underflow (panic in debug mode, wrong behaviour in release
mode).

This fixes it and adds a relevant assertion and test. In order to
properly test library mode extraction, a special option enforcing that
on source code as well is added.
2025-07-01 17:31:26 +02:00
..
2025-06-20 17:34:23 +02:00
2024-08-30 13:05:46 +02:00
2025-06-20 17:34:23 +02:00