From b12699c8125bd5916a3a8edbcb5ea81fb2ecb56f Mon Sep 17 00:00:00 2001 From: Tim Morgan Date: Thu, 14 Nov 2024 05:52:38 -0600 Subject: [PATCH] Update gc_lint script to match code change --- test/gc_lint.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/gc_lint.rb b/test/gc_lint.rb index 121dd00a2..cf812311c 100644 --- a/test/gc_lint.rb +++ b/test/gc_lint.rb @@ -163,7 +163,7 @@ def verify_visited(klass, type, name) details = @classes.fetch(klass) if garbage_collected?(type) if (method_lines = details[:visit_children_method]) - visits_directly = method_lines.grep(/^\s*visitor\.visit\(&?#{name}/).any? + visits_directly = method_lines.grep(/^\s*visitor\.enqueue\(&?#{name}/).any? loops_over = method_lines.grep(/for\s*\(.*:\s*\*?#{name}\)/).any? unless visits_directly || loops_over @errors << "#{klass}'s visit_children() method does not visit #{name} (type #{type})!"