From 1bbe92e429178f8fc8ffc8ae3e3ff80904c24ca9 Mon Sep 17 00:00:00 2001 From: Carl Meyer Date: Sat, 27 Apr 2024 09:44:25 -0600 Subject: [PATCH] remove obsolete comment --- crates/red_knot/src/db.rs | 8 ++++---- crates/red_knot/src/types/infer.rs | 2 -- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/crates/red_knot/src/db.rs b/crates/red_knot/src/db.rs index a7bf50b868..bc5492f782 100644 --- a/crates/red_knot/src/db.rs +++ b/crates/red_knot/src/db.rs @@ -155,14 +155,14 @@ pub(crate) mod tests { file_to_module(self, file_id) } - fn infer_symbol_type(&self, file_id: FileId, symbol_id: SymbolId) -> Type { - infer_symbol_type(self, file_id, symbol_id) - } - fn path_to_module(&self, path: &Path) -> Option { path_to_module(self, path) } + fn infer_symbol_type(&self, file_id: FileId, symbol_id: SymbolId) -> Type { + infer_symbol_type(self, file_id, symbol_id) + } + fn symbol_table(&self, file_id: FileId) -> Arc { symbol_table(self, file_id) } diff --git a/crates/red_knot/src/types/infer.rs b/crates/red_knot/src/types/infer.rs index 7876fa086e..35399893f7 100644 --- a/crates/red_knot/src/types/infer.rs +++ b/crates/red_knot/src/types/infer.rs @@ -6,8 +6,6 @@ use crate::types::Type; use crate::FileId; use ruff_python_ast::AstNode; -// TODO this should not take a &mut db, it should be a query, not a mutation. This means we'll need -// to use interior mutability in TypeStore instead, and avoid races in populating the cache. #[tracing::instrument(level = "trace", skip(db))] pub fn infer_symbol_type(db: &Db, file_id: FileId, symbol_id: SymbolId) -> Type where