codeql
codeql copied to clipboard
Rust: skip private items when extracting library files
trafficstars
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.