-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Rust: Make SummarizedCallable
extend Function
instead of string
#19268
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
@@ -114,13 +115,30 @@ | |||
) | |||
} | |||
|
|||
private predicate sdf(CallExprBase call, Function f) { |
Check warning
Code scanning / CodeQL
Dead code
f = call.getStaticTarget() | ||
} | ||
|
||
private predicate sdf2(CallExprBase call) { |
Check warning
Code scanning / CodeQL
Dead code
@@ -1017,3 +1017,26 @@ | |||
* Gets a type that `n` infers to, if any. | |||
*/ | |||
Type inferType(AstNode n) { result = inferType(n, TypePath::nil()) } | |||
|
|||
/** Provides predicates for debugging the type inference implementation. */ | |||
private module Debug { |
Check warning
Code scanning / CodeQL
Dead code
/** Provides predicates for debugging the type inference implementation. */ | ||
private module Debug { | ||
private Locatable getRelevantLocatable() { | ||
exists(string filepath, int startline, int startcolumn, int endline, int endcolumn | |
Check warning
Code scanning / CodeQL
Omittable 'exists' variable
/** Provides predicates for debugging the type inference implementation. */ | ||
private module Debug { | ||
private Locatable getRelevantLocatable() { | ||
exists(string filepath, int startline, int startcolumn, int endline, int endcolumn | |
Check warning
Code scanning / CodeQL
Omittable 'exists' variable
/** Provides predicates for debugging the type inference implementation. */ | ||
private module Debug { | ||
private Locatable getRelevantLocatable() { | ||
exists(string filepath, int startline, int startcolumn, int endline, int endcolumn | |
Check warning
Code scanning / CodeQL
Omittable 'exists' variable
86ccc96
to
a91cc6b
Compare
@@ -1214,3 +1243,59 @@ | |||
fileImport(m, f) | |||
} | |||
} | |||
|
|||
private predicate sdfs(ImplItemNode impl) { |
Check warning
Code scanning / CodeQL
Dead code
private import Type | ||
private import TypeInference | ||
|
||
private predicate sdf3( |
Check warning
Code scanning / CodeQL
Dead code
f = impl.resolveSelfTy().getASuccessor(name) | ||
} | ||
|
||
private predicate sdf4( |
Check warning
Code scanning / CodeQL
Dead code
useResolved = resolvePath(usePathPrefix) | ||
} | ||
|
||
private predicate sdf5(ImplItemNode impl, string path, RelevantPath p, ItemNode iter, Module m) { |
Check warning
Code scanning / CodeQL
Dead code
@@ -474,6 +474,28 @@ | |||
module Matching<MatchingInputSig Input> { | |||
private import Input | |||
|
|||
private predicate testunadjustedAccessType( |
Check warning
Code scanning / CodeQL
Dead code
// ) | ||
} | ||
|
||
private predicate testadjustedAccessType( |
Check warning
Code scanning / CodeQL
Dead code
61f14f0
to
e08b3b8
Compare
969fb1c
to
d8b7085
Compare
No description provided.