codeql icon indicating copy to clipboard operation
codeql copied to clipboard

Rust: skip private items when extracting library files

Open aibaars opened this issue 7 months ago • 0 comments

This pull request drops items that are "obviously" private. Those are items that lack any visibility modifier. It also excludes items in traits and in impl block that implement a trait. Items that are generated by macros are not excluded as these are typically wrapped in a detached MacroItems node making it harder to determine whether they are part of a trait or not.

aibaars avatar May 26 '25 13:05 aibaars