Currently, the new_with_dep methods inside the CompiledProgram and TemplateProgram structs accept a standard SourceFile. However, the very first operation performed inside DependencyGraph::new is converting this SourceFile into a CanonSourceFile, which will fail if the user passes SourceFile::anonymous.
Currently, the
new_with_depmethods inside theCompiledProgramandTemplateProgramstructs accept a standardSourceFile. However, the very first operation performed insideDependencyGraph::newis converting thisSourceFileinto aCanonSourceFile, which will fail if the user passesSourceFile::anonymous.