          # File lib/rake.rb, line 2458
    2458:     def const_warning(const_name)
    2459:       @const_warning ||= false
    2460:       if ! @const_warning
    2461:         $stderr.puts %{WARNING: Deprecated reference to top-level constant '#{const_name}' } +
    2462:           %{found at: #{rakefile_location}} # '
    2463:         $stderr.puts %{    Use --classic-namespace on rake command}
    2464:         $stderr.puts %{    or 'require "rake/classic_namespace"' in Rakefile}
    2465:       end
    2466:       @const_warning = true
    2467:     end