mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 15:41:04 +01:00
Use std::ranges::any_of instead of std::any_of (#4539)
This is suggested by clang-tidy's modernize checks, and is a safer coding practice.
This commit is contained in:
@@ -787,8 +787,8 @@ auto CompileSubcommand::Run(DriverEnv& driver_env) -> DriverResult {
|
||||
}
|
||||
|
||||
// Unlike previous steps, errors block further progress.
|
||||
if (std::any_of(units.begin(), units.end(),
|
||||
[&](const auto& unit) { return !unit->success(); })) {
|
||||
if (std::ranges::any_of(units,
|
||||
[&](const auto& unit) { return !unit->success(); })) {
|
||||
CARBON_VLOG_TO(driver_env.vlog_stream,
|
||||
"*** Stopping before lowering due to errors ***");
|
||||
return make_result();
|
||||
|
||||
Reference in New Issue
Block a user