File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
rust/ql/src/utils/modelgenerator/internal Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -15,9 +15,15 @@ private predicate relevant(Function api) {
1515 // Only include functions that have a resolved path.
1616 api .hasCrateOrigin ( ) and
1717 api .hasExtendedCanonicalPath ( ) and
18+ // A canonical path can contain `;` as the syntax for array types use `;`. For
19+ // instance `<[Foo; 1] as Bar>::baz`. This does not work with the shared model
20+ // generator and it is not clear if this will also be the case when we move to
21+ // QL created canoonical paths, so for now we just exclude functions with
22+ // `;`s.
23+ not exists ( api .getExtendedCanonicalPath ( ) .indexOf ( ";" ) ) and
1824 (
1925 // This excludes closures (these are not exported API endpoints) and
20- // functions without a `pub` visiblity . A function can be `pub` without
26+ // functions without a `pub` visibility . A function can be `pub` without
2127 // ultimately being exported by a crate, so this is an overapproximation.
2228 api .hasVisibility ( )
2329 or
You can’t perform that action at this time.
0 commit comments