Skip to content

Commit 745297e

Browse files
Use helper function instead of reimplementing the logic to check if rustdoc should emit crate
1 parent 85abb27 commit 745297e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustdoc/html/render/write_shared.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ fn write_rendered_cross_crate_info(
153153
include_sources: bool,
154154
) -> Result<(), Error> {
155155
let m = &opt.should_merge;
156-
if opt.emit.is_empty() || opt.emit.contains(&EmitType::InvocationSpecific) {
156+
if opt.should_emit_crate() {
157157
if include_sources {
158158
write_rendered_cci::<SourcesPart, _>(SourcesPart::blank, dst, crates, m)?;
159159
}

0 commit comments

Comments
 (0)