Upgrade Rust toolchain to 1.85 (#11720)

## Summary

* Upgrade the rust toolchain to 1.85.0. This does not increase the MSRV.
* Update windows trampoline to 1.86 nightly beta (previously in 1.85
nightly beta).

## Test Plan

Existing tests
This commit is contained in:
samypr100 2025-02-23 10:52:34 -05:00 committed by GitHub
parent 3c541e2368
commit 878497a014
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
21 changed files with 51 additions and 56 deletions

View file

@ -1037,7 +1037,7 @@ pub(crate) fn find_python_installation(
let mut first_error = None;
for result in installations {
// Iterate until the first critical error or happy result
if !result.as_ref().err().map_or(true, Error::is_critical) {
if !result.as_ref().err().is_none_or(Error::is_critical) {
// Track the first non-critical error
if first_error.is_none() {
if let Err(err) = result {
@ -2214,7 +2214,7 @@ impl VersionRequest {
Self::MajorMinorPrerelease(self_major, self_minor, self_prerelease, _) => {
// Pre-releases of Python versions are always for the zero patch version
(*self_major, *self_minor, 0) == (major, minor, patch)
&& prerelease.map_or(true, |pre| *self_prerelease == pre)
&& prerelease.is_none_or(|pre| *self_prerelease == pre)
}
}
}