Rust: Rename classes with Record to Struct

This commit is contained in:
Simon Friis Vindum
2025-03-19 10:37:10 +01:00
parent 179bae8791
commit b2b650ddd3
155 changed files with 1968 additions and 1933 deletions

View File

@@ -0,0 +1,12 @@
// generated by codegen, do not edit
import codeql.rust.elements
import TestUtils
from StructPatField x, int getNumberOfAttrs, string hasNameRef, string hasPat
where
toBeTested(x) and
not x.isUnknown() and
getNumberOfAttrs = x.getNumberOfAttrs() and
(if x.hasNameRef() then hasNameRef = "yes" else hasNameRef = "no") and
if x.hasPat() then hasPat = "yes" else hasPat = "no"
select x, "getNumberOfAttrs:", getNumberOfAttrs, "hasNameRef:", hasNameRef, "hasPat:", hasPat