Update Rust toolchain to 1.89 (#19807)
This commit is contained in:
@@ -57,7 +57,7 @@ impl NameImport {
|
||||
}
|
||||
|
||||
/// Returns the [`QualifiedName`] of the imported name (e.g., given `from foo import bar as baz`, returns `["foo", "bar"]`).
|
||||
pub fn qualified_name(&self) -> QualifiedName {
|
||||
pub fn qualified_name(&self) -> QualifiedName<'_> {
|
||||
match self {
|
||||
NameImport::Import(import) => QualifiedName::user_defined(&import.name.name),
|
||||
NameImport::ImportFrom(import_from) => collect_import_from_member(
|
||||
|
||||
@@ -2100,7 +2100,7 @@ impl<'a> SemanticModel<'a> {
|
||||
/// This method searches all scopes created by a function definition, comparing the
|
||||
/// [`TextRange`] of the provided `function_def` with the the range of the function
|
||||
/// associated with the scope.
|
||||
pub fn function_scope(&self, function_def: &ast::StmtFunctionDef) -> Option<&Scope> {
|
||||
pub fn function_scope(&self, function_def: &ast::StmtFunctionDef) -> Option<&Scope<'_>> {
|
||||
self.scopes.iter().find(|scope| {
|
||||
let Some(function) = scope.kind.as_function() else {
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user