class RSpec::Matchers::BuiltIn::All

def index_failed_objects

def index_failed_objects
  actual.each_with_index do |actual_item, index|
    cloned_matcher = matcher.clone
    matches = cloned_matcher.matches?(actual_item)
    failed_objects[index] = cloned_matcher.failure_message unless matches
  end
end