| ... | @@ -934,6 +934,8 @@ const AutodocErrors = error{ | ... | @@ -934,6 +934,8 @@ const AutodocErrors = error{ |
| 934 | OutOfMemory, | 934 | OutOfMemory, |
| 935 | CurrentWorkingDirectoryUnlinked, | 935 | CurrentWorkingDirectoryUnlinked, |
| 936 | UnexpectedEndOfFile, | 936 | UnexpectedEndOfFile, |
| | 937 | ModuleNotFound, |
| | 938 | ImportOutsideModulePath, |
| 937 | } || std.fs.File.OpenError || std.fs.File.ReadError; | 939 | } || std.fs.File.OpenError || std.fs.File.ReadError; |
| 938 | | 940 | |
| 939 | /// `call` instructions will have loopy references to themselves | 941 | /// `call` instructions will have loopy references to themselves |
| ... | @@ -1058,7 +1060,7 @@ fn walkInstruction( | ... | @@ -1058,7 +1060,7 @@ fn walkInstruction( |
| 1058 | ); | 1060 | ); |
| 1059 | } | 1061 | } |
| 1060 | | 1062 | |
| 1061 | const new_file = self.zcu.importFile(file, path) catch unreachable; | 1063 | const new_file = try self.zcu.importFile(file, path); |
| 1062 | const result = try self.files.getOrPut(self.arena, new_file.file); | 1064 | const result = try self.files.getOrPut(self.arena, new_file.file); |
| 1063 | if (result.found_existing) { | 1065 | if (result.found_existing) { |
| 1064 | return DocData.WalkResult{ | 1066 | return DocData.WalkResult{ |