File tree Expand file tree Collapse file tree 1 file changed +2
-16
lines changed
rust/ql/lib/codeql/rust/internal Expand file tree Collapse file tree 1 file changed +2
-16
lines changed Original file line number Diff line number Diff line change @@ -425,14 +425,7 @@ abstract private class AssocItemNode extends ItemNode, AssocItem {
425
425
private class ConstItemNode extends AssocItemNode instanceof Const {
426
426
override string getName ( ) { result = Const .super .getName ( ) .getText ( ) }
427
427
428
- override predicate hasImplementation ( ) {
429
- super .hasBody ( )
430
- or
431
- // for trait items from library code, we do not currently know if they
432
- // have default implementations or not, so we assume they do
433
- not this .fromSource ( ) and
434
- this = any ( TraitItemNode t ) .getAnAssocItem ( )
435
- }
428
+ override predicate hasImplementation ( ) { Const .super .hasImplementation ( ) }
436
429
437
430
override Namespace getNamespace ( ) { result .isValue ( ) }
438
431
@@ -508,14 +501,7 @@ private class VariantItemNode extends ItemNode instanceof Variant {
508
501
class FunctionItemNode extends AssocItemNode instanceof Function {
509
502
override string getName ( ) { result = Function .super .getName ( ) .getText ( ) }
510
503
511
- override predicate hasImplementation ( ) {
512
- super .hasBody ( )
513
- or
514
- // for trait items from library code, we do not currently know if they
515
- // have default implementations or not, so we assume they do
516
- not this .fromSource ( ) and
517
- this = any ( TraitItemNode t ) .getAnAssocItem ( )
518
- }
504
+ override predicate hasImplementation ( ) { Function .super .hasImplementation ( ) }
519
505
520
506
override Namespace getNamespace ( ) { result .isValue ( ) }
521
507
You can’t perform that action at this time.
0 commit comments