mirror of
https://github.com/github/codeql.git
synced 2025-12-16 08:43:11 +01:00
Rust: Fix path resolution for raw pointer types
This commit is contained in:
@@ -774,8 +774,11 @@ private TypeItemNode resolveBuiltin(TypeRepr tr) {
|
||||
tr instanceof RefTypeRepr and
|
||||
result instanceof Builtins::RefType
|
||||
or
|
||||
tr instanceof PtrTypeRepr and
|
||||
result instanceof Builtins::PtrType
|
||||
tr.(PtrTypeRepr).isConst() and
|
||||
result instanceof Builtins::PtrConstType
|
||||
or
|
||||
tr.(PtrTypeRepr).isMut() and
|
||||
result instanceof Builtins::PtrMutType
|
||||
or
|
||||
result.(Builtins::TupleType).getArity() = tr.(TupleTypeRepr).getNumberOfFields()
|
||||
}
|
||||
|
||||
@@ -11,6 +11,3 @@ multipleCallTargets
|
||||
| main.rs:2642:13:2642:31 | ...::from(...) |
|
||||
| main.rs:2643:13:2643:31 | ...::from(...) |
|
||||
| main.rs:2644:13:2644:31 | ...::from(...) |
|
||||
multiplePathResolutions
|
||||
| main.rs:1818:26:1818:33 | <...> |
|
||||
| main.rs:1819:17:1819:26 | <...> |
|
||||
|
||||
Reference in New Issue
Block a user