Skip to content

Commit 746b651

Browse files
committed
1 parent 8a09f9f commit 746b651

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

crates/red_knot/src/lint.rs

+8
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ pub(crate) fn lint_semantic(db: &dyn LintDb, file_id: FileId) -> QueryResult<Dia
9494

9595
lint_unresolved_imports(&context)?;
9696
lint_bad_overrides(&context)?;
97+
lint_unspecified_encoding(&context)?;
9798

9899
Ok(Diagnostics::from(context.diagnostics.take()))
99100
})
@@ -191,6 +192,13 @@ fn lint_bad_overrides(context: &SemanticLintContext) -> QueryResult<()> {
191192
Ok(())
192193
}
193194

195+
fn lint_unspecified_encoding(context: &SemanticLintContext) -> QueryResult<()> {
196+
// fix the inference of an import 'definition' by adding a module type
197+
//
198+
// obtain the type of each definition's rhs
199+
todo!()
200+
}
201+
194202
pub struct SemanticLintContext<'a> {
195203
file_id: FileId,
196204
source: Source,

0 commit comments

Comments
 (0)