-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Rust: Add type inference debug predicates #19425
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
Rust: Add type inference debug predicates #19425
Conversation
@@ -1017,3 +1017,24 @@ | |||
* 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 Warning
/** 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 Warning
in this argument
/** 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 Warning
in this argument
/** 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 Warning
No description provided.