Skip to content

Commit 9e74a78

Browse files
committed
Rust: Move everything type inference related into the typeinference directory
1 parent c666fc7 commit 9e74a78

28 files changed

+48
-48
lines changed

rust/ql/consistency-queries/TypeInferenceConsistency.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55
* @id rust/diagnostics/type-inference-consistency
66
*/
77

8-
import codeql.rust.internal.TypeInferenceConsistency
8+
import codeql.rust.internal.typeinference.TypeInferenceConsistency

rust/ql/lib/codeql/rust/dataflow/internal/DataFlowImpl.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ private import codeql.rust.internal.PathResolution
1515
private import codeql.rust.controlflow.ControlFlowGraph
1616
private import codeql.rust.dataflow.Ssa
1717
private import codeql.rust.dataflow.FlowSummary
18-
private import codeql.rust.internal.TypeInference as TypeInference
18+
private import codeql.rust.internal.typeinference.TypeInference as TypeInference
1919
private import codeql.rust.internal.typeinference.DerefChain
2020
private import Node
2121
private import Content

rust/ql/lib/codeql/rust/dataflow/internal/ModelsAsData.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,8 +205,8 @@ private module Debug {
205205
private import Private
206206
private import Content
207207
private import codeql.rust.dataflow.internal.DataFlowImpl
208-
private import codeql.rust.internal.TypeMention
209-
private import codeql.rust.internal.Type
208+
private import codeql.rust.internal.typeinference.TypeMention
209+
private import codeql.rust.internal.typeinference.Type
210210

211211
private predicate relevantManualModel(SummarizedCallableImpl sc, string can) {
212212
exists(Provenance manual |

rust/ql/lib/codeql/rust/dataflow/internal/Node.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ private import codeql.rust.controlflow.ControlFlowGraph
1414
private import codeql.rust.controlflow.CfgNodes
1515
private import codeql.rust.dataflow.Ssa
1616
private import codeql.rust.dataflow.FlowSummary
17-
private import codeql.rust.internal.TypeInference as TypeInference
17+
private import codeql.rust.internal.typeinference.TypeInference as TypeInference
1818
private import codeql.rust.internal.typeinference.DerefChain
1919
private import Node as Node
2020
private import DataFlowImpl

rust/ql/lib/codeql/rust/dataflow/internal/TaintTrackingImpl.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ private import Node as Node
77
private import Content
88
private import FlowSummaryImpl as FlowSummaryImpl
99
private import codeql.rust.internal.CachedStages
10-
private import codeql.rust.internal.TypeInference as TypeInference
11-
private import codeql.rust.internal.Type as Type
10+
private import codeql.rust.internal.typeinference.TypeInference as TypeInference
11+
private import codeql.rust.internal.typeinference.Type as Type
1212
private import codeql.rust.frameworks.stdlib.Builtins as Builtins
1313

1414
/**

rust/ql/lib/codeql/rust/elements/internal/CallExprImpl.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ module Impl {
1515
private import codeql.rust.elements.internal.InvocationExprImpl::Impl as InvocationExprImpl
1616
private import codeql.rust.elements.internal.CallImpl::Impl as CallImpl
1717
private import codeql.rust.internal.PathResolution as PathResolution
18-
private import codeql.rust.internal.TypeInference as TypeInference
18+
private import codeql.rust.internal.typeinference.TypeInference as TypeInference
1919

2020
pragma[nomagic]
2121
Path getFunctionPath(CallExpr ce) { result = ce.getFunction().(PathExpr).getPath() }

rust/ql/lib/codeql/rust/elements/internal/CallImpl.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
private import rust
22

33
module Impl {
4-
private import codeql.rust.internal.TypeInference as TypeInference
4+
private import codeql.rust.internal.typeinference.TypeInference as TypeInference
55
private import codeql.rust.elements.internal.ExprImpl::Impl as ExprImpl
66
private import codeql.rust.elements.internal.InvocationExprImpl::Impl as InvocationExprImpl
77

rust/ql/lib/codeql/rust/elements/internal/FieldExprImpl.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ private import codeql.rust.elements.internal.generated.FieldExpr
1212
*/
1313
module Impl {
1414
private import rust
15-
private import codeql.rust.internal.TypeInference as TypeInference
15+
private import codeql.rust.internal.typeinference.TypeInference as TypeInference
1616

1717
// the following QLdoc is generated: if you need to edit it, do it in the schema file
1818
/**

rust/ql/lib/codeql/rust/elements/internal/InvocationExprImpl.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
private import rust
22

33
module Impl {
4-
private import codeql.rust.internal.TypeInference as TypeInference
4+
private import codeql.rust.internal.typeinference.TypeInference as TypeInference
55
private import codeql.rust.elements.internal.ExprImpl::Impl as ExprImpl
66

77
private newtype TArgumentPosition =

rust/ql/lib/codeql/rust/frameworks/rustcrypto/RustCrypto.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
private import rust
66
private import codeql.rust.Concepts
77
private import codeql.rust.dataflow.DataFlow
8-
private import codeql.rust.internal.TypeInference
9-
private import codeql.rust.internal.Type
8+
private import codeql.rust.internal.typeinference.TypeInference
9+
private import codeql.rust.internal.typeinference.Type
1010

1111
bindingset[algorithmName]
1212
private string simplifyAlgorithmName(string algorithmName) {

0 commit comments

Comments
 (0)