diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2023-02-21 11:43:31 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-02-21 11:43:31 -0500 |
| commit | 7f691b3fe26f623d108a6b2b2018bbc3aa999224 (patch) | |
| tree | 81814816cfde6610a4b965d9d3799de3cb3eaccd /src/Autodoc.zig | |
| parent | 05da5b32a820c031001098034840940964f41a81 (diff) | |
| parent | f94cbab3acc3b31464f45872c1f700874eecb23e (diff) | |
| download | zig-7f691b3fe26f623d108a6b2b2018bbc3aa999224.tar.gz zig-7f691b3fe26f623d108a6b2b2018bbc3aa999224.zip | |
Merge pull request #14664 from mlugg/feat/new-module-cli
New module CLI
Diffstat (limited to 'src/Autodoc.zig')
| -rw-r--r-- | src/Autodoc.zig | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/src/Autodoc.zig b/src/Autodoc.zig index 47dd4a28f7..3cf3fff4c0 100644 --- a/src/Autodoc.zig +++ b/src/Autodoc.zig @@ -860,17 +860,9 @@ fn walkInstruction( const str_tok = data[inst_index].str_tok; var path = str_tok.get(file.zir); - const maybe_other_package: ?*Package = blk: { - if (self.module.main_pkg_is_std and std.mem.eql(u8, path, "std")) { - path = "std"; - break :blk self.module.main_pkg; - } else { - break :blk file.pkg.table.get(path); - } - }; // importFile cannot error out since all files // are already loaded at this point - if (maybe_other_package) |other_package| { + if (file.pkg.table.get(path)) |other_package| { const result = try self.packages.getOrPut(self.arena, other_package); // Immediately add this package to the import table of our |
