In the deduction guide for RangePolicy, we do not have to explicitly pass the DefaultExecutionSpace template, since Impl::PolicyTraits<>::execution_type will correctly map to DefaultExecutionSpace, and the correct specialization for RangePolicy will be chosen, namely
[implementation suggestion omitted]
Explicitly passing in DefaultExecutionSpace as template in deduction guide was introduced in an early iteration of https://github.com/kokkos/kokkos/pull/8367 (before the TeamHandle trait was introduced). Then, it was necessary to explicitly pass this template since we required either a TeamHandle or ExecSpace template existed. That is no longer the case.
What is in develop isn't incorrect, it just isn't necessary.
The repository is checked out at /workspace/repo. Work only on production
source code. Do not modify tests, CMake registration, CI configuration, or the
grading environment. Use the existing build tree for local verification.