Skip to content

Commit

Permalink
Add tests to module resolver, add support for symlinks
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaReiser committed Apr 18, 2024
1 parent 1ed09a2 commit 4c45e7e
Show file tree
Hide file tree
Showing 6 changed files with 451 additions and 101 deletions.
2 changes: 2 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions crates/red_knot/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,16 @@ ruff_text_size = { path = "../ruff_text_size" }
ruff_index = { path = "../ruff_index" }

anyhow = { workspace = true }
filetime = { workspace = true }
hashbrown = { workspace = true }
log = { workspace = true }
rustc-hash = { workspace = true }
parking_lot = { workspace = true }
salsa = { git = "https://github.com/salsa-rs/salsa.git", package = "salsa-2022", rev = "f5aec4abefb4c5e67cba6d8ea91c216bc2838f10" }
smol_str = "0.2.1"

[dev-dependencies]
tempfile = { workspace = true }

[lints]
workspace = true
10 changes: 5 additions & 5 deletions crates/red_knot/src/hir/definition.rs
Original file line number Diff line number Diff line change
Expand Up @@ -449,11 +449,11 @@ impl DefinitionsVisitor<'_> {
}
}

fn lower_import(&mut self, import: &StmtImport) {
fn lower_import(&mut self, _import: &StmtImport) {
// TODO
}

fn lower_import_from(&mut self, import_from: &StmtImportFrom) {
fn lower_import_from(&mut self, _import_from: &StmtImportFrom) {
// TODO
}

Expand All @@ -469,15 +469,15 @@ impl DefinitionsVisitor<'_> {
})
}

fn lower_except_handler(&mut self, except_handler: &ExceptHandlerExceptHandler) {
fn lower_except_handler(&mut self, _except_handler: &ExceptHandlerExceptHandler) {
// TODO
}

fn lower_with_item(&mut self, with_item: &WithItem) {
fn lower_with_item(&mut self, _with_item: &WithItem) {
// TODO
}

fn lower_match_case(&mut self, match_case: &MatchCase) {
fn lower_match_case(&mut self, _match_case: &MatchCase) {
// TODO
}
}
Expand Down
2 changes: 2 additions & 0 deletions crates/red_knot/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#![allow(unreachable_pub)]

use std::path::{Path, PathBuf};

use rustc_hash::FxHashSet;
Expand Down

0 comments on commit 4c45e7e

Please sign in to comment.