Update MSRV to 1.85 and toolchain to 1.87 (#18126)

This commit is contained in:
Micha Reiser 2025-05-16 09:19:55 +02:00 committed by GitHub
parent 6e39250015
commit 196e4befba
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
19 changed files with 82 additions and 54 deletions

View file

@ -252,9 +252,7 @@ pub fn is_immutable_annotation(
.is_some_and(|qualified_name| {
is_immutable_non_generic_type(qualified_name.segments())
|| is_immutable_generic_type(qualified_name.segments())
|| extend_immutable_calls
.iter()
.any(|target| qualified_name == *target)
|| extend_immutable_calls.contains(&qualified_name)
})
}
Expr::Subscript(ast::ExprSubscript { value, slice, .. }) => semantic
@ -308,9 +306,7 @@ pub fn is_immutable_func(
.resolve_qualified_name(map_subscript(func))
.is_some_and(|qualified_name| {
is_immutable_return_type(qualified_name.segments())
|| extend_immutable_calls
.iter()
.any(|target| qualified_name == *target)
|| extend_immutable_calls.contains(&qualified_name)
})
}