Skip to content

Commit

Permalink
Remove debug assertion because it results in test failures
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaReiser committed Apr 17, 2024
1 parent 07e88b1 commit 6a41893
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 0 additions & 1 deletion crates/red_knot/src/files.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ impl FilesInner {
/// Inserts the path and returns a new id for it or returns the id if it is an existing path.
// TODO should this accept Path or PathBuf?
pub(crate) fn intern(&mut self, path: &Path) -> FileId {
debug_assert!(path.is_file());
let mut hasher = FxHasher::default();
path.hash(&mut hasher);
let hash = hasher.finish();
Expand Down
2 changes: 2 additions & 0 deletions crates/red_knot/src/hir/definition.rs
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ pub struct GlobalId;

#[derive(Debug, Clone, Eq, PartialEq)]
pub struct Global {
// TODO track names
ast_id: HirAstId<StmtGlobal>,
}

Expand All @@ -140,6 +141,7 @@ pub struct NonLocalId;

#[derive(Debug, Clone, Eq, PartialEq)]
pub struct NonLocal {
// TODO track names
ast_id: HirAstId<StmtNonlocal>,
}

Expand Down

0 comments on commit 6a41893

Please sign in to comment.