Skip to content

Commit 94e1e51

Browse files
doc: add code explanation
1 parent 198b158 commit 94e1e51

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

compiler-cli/src/publish.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -378,6 +378,8 @@ fn do_build_hex_tarball(paths: &ProjectPaths, config: &mut PackageConfig) -> Res
378378
});
379379
}
380380

381+
// empty_modules is a list of modules that contain no public definitions
382+
// it is used to refuse to publish packages that are not yet finished.
381383
let empty_modules: Vec<_> = built
382384
.root_package
383385
.modules

0 commit comments

Comments
 (0)