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) {
15
15
// Only include functions that have a resolved path.
16
16
api .hasCrateOrigin ( ) and
17
17
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
18
24
(
19
25
// 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
21
27
// ultimately being exported by a crate, so this is an overapproximation.
22
28
api .hasVisibility ( )
23
29
or
You can’t perform that action at this time.
0 commit comments