We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8acf9ce commit 001735bCopy full SHA for 001735b
rust/ql/lib/codeql/rust/internal/TypeInference.qll
@@ -69,9 +69,12 @@ private module Input1 implements InputSig1<Location> {
69
apos.asMethodTypeArgumentPosition() = ppos.asTypeParam().getPosition()
70
}
71
72
- private predicate id(Raw::AstNode x, Raw::AstNode y) { x = y }
+ /** A raw AST node that might correspond to a type parameter. */
73
+ private class RawTypeParameter = @type_param or @trait;
74
- private predicate idOfRaw(Raw::AstNode x, int y) = equivalenceRelation(id/2)(x, y)
75
+ private predicate id(RawTypeParameter x, RawTypeParameter y) { x = y }
76
+
77
+ private predicate idOfRaw(RawTypeParameter x, int y) = equivalenceRelation(id/2)(x, y)
78
79
private int idOf(AstNode node) { idOfRaw(Synth::convertAstNodeToRaw(node), result) }
80
0 commit comments