@@ -10,7 +10,7 @@ private import codeql.dataflow.internal.DataFlowImpl
1010private import rust
1111private import SsaImpl as SsaImpl
1212private import codeql.rust.controlflow.internal.Scope as Scope
13- private import codeql.rust.elements. internal.PathResolution
13+ private import codeql.rust.internal.PathResolution
1414private import codeql.rust.controlflow.ControlFlowGraph
1515private import codeql.rust.controlflow.CfgNodes
1616private import codeql.rust.dataflow.Ssa
@@ -847,7 +847,7 @@ class TupleFieldContent extends FieldContent, TTupleFieldContent {
847847
848848 predicate isStructField ( Struct s , int pos ) { field .isStructField ( s , pos ) }
849849
850- override FieldExprCfgNode getAnAccess ( ) { none ( ) } // TODO
850+ override FieldExprCfgNode getAnAccess ( ) { field = result . getFieldExpr ( ) . getTupleField ( ) }
851851
852852 final override string toString ( ) {
853853 exists ( Variant v , int pos , string vname |
@@ -878,7 +878,7 @@ class RecordFieldContent extends FieldContent, TRecordFieldContent {
878878
879879 predicate isStructField ( Struct s , string name ) { field .isStructField ( s , name ) }
880880
881- override FieldExprCfgNode getAnAccess ( ) { none ( ) } // TODO
881+ override FieldExprCfgNode getAnAccess ( ) { field = result . getFieldExpr ( ) . getRecordField ( ) }
882882
883883 final override string toString ( ) {
884884 exists ( Variant v , string name , string vname |
0 commit comments