class RSpec::Core::MemoizedHelpers::AllHookMemoizedHash

def fetch(key, &block)

def fetch(key, &block)
  description = if key == :subject
    "subject"
  else
    "let declaration `#{key}`"
  end
  ::RSpec.warn_deprecation <<-EOS
ION: #{description} accessed in #{article} #{hook_expression} hook at:
erFilter.first_non_rspec_line}
d `subject` declarations are not intended to be called
icle} #{hook_expression} hook, as they exist to define state that
 between each example, while #{hook_expression} exists to
ntention}.
deprecated behavior that will not be supported in RSpec 3.
  @hash.fetch(key, &block)
end