# File lib/rake.rb, line 2420
2420:     def const_warning(const_name)
2421:       @const_warning ||= false
2422:       if ! @const_warning
2423:         $stderr.puts %{WARNING: Deprecated reference to top-level constant '#{const_name}' } +
2424:           %{found at: #{rakefile_location}} # '
2425:         $stderr.puts %{    Use --classic-namespace on rake command}
2426:         $stderr.puts %{    or 'require "rake/classic_namespace"' in Rakefile}
2427:       end
2428:       @const_warning = true
2429:     end