mirror of
https://github.com/github/codeql.git
synced 2026-04-25 16:55:19 +02:00
Rust: Fix bad join
This commit is contained in:
@@ -1044,6 +1044,9 @@ private Type inferTryExprType(TryExpr te, TypePath path) {
|
||||
)
|
||||
}
|
||||
|
||||
pragma[nomagic]
|
||||
private StructType getStrStruct() { result = TStruct(any(Builtins::Str s)) }
|
||||
|
||||
pragma[nomagic]
|
||||
private Type inferLiteralType(LiteralExpr le, TypePath path) {
|
||||
path.isEmpty() and
|
||||
@@ -1074,7 +1077,7 @@ private Type inferLiteralType(LiteralExpr le, TypePath path) {
|
||||
path.isEmpty() and result = TRefType()
|
||||
or
|
||||
path = TypePath::singleton(TRefTypeParameter()) and
|
||||
result = TStruct(any(Builtins::Str s))
|
||||
result = getStrStruct()
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user