fix(knowledge): use explicit file path type in duplicate theorem diagnostics
This commit is contained in:
1 parent
9f7ae6c919
commit
a856bc52f4
1 file changed
+1
-1
+1
-1
@@ -323,7 +323,7 @@ fn compile_index(index: ProjectIndex) -> Result<Compilation> {
|
||||
}
|
||||
for claim in &function.claims {
|
||||
if claim_counts.get(claim.id.as_str())!=Some(&1) {
|
||||
diagnostics.push(Diagnostic::new(Some(path),
|
||||
diagnostics.push(Diagnostic::new(Some(path.as_path()),
|
||||
Span::new(claim.line,1),
|
||||
format!("ambiguous theorem declaration: {}",claim.id))
|
||||
.with_code("knowledge.claim_duplicate")
|
||||
|
||||
Reference in new issue
Block a user