Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions compiler/rustc_interface/src/passes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1262,6 +1262,10 @@ fn analysis(tcx: TyCtxt<'_>, (): ()) {
});
});
}

// Cross-crate dead-fn elimination: if requested, walk this crate's MIR now (before
// codegen, so it works on `--emit=metadata`) and write per-dependency used-set files.
rustc_monomorphize::emit_used_set_if_requested(tcx);
}

/// Runs the codegen backend, after which the AST and analysis can
Expand Down
Loading
Loading