Skip to content

Commit 7575d96

Browse files
committed
Reformat trans skip condition
1 parent 8056506 commit 7575d96

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: src/librustc_trans/back/link.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -147,9 +147,9 @@ pub(crate) fn link_binary(sess: &Session,
147147
for &crate_type in sess.crate_types.borrow().iter() {
148148
// Ignore executable crates if we have -Z no-trans, as they will error.
149149
let output_metadata = sess.opts.output_types.contains_key(&OutputType::Metadata);
150-
let ignore_executable = sess.opts.debugging_opts.no_trans ||
151-
!(sess.opts.output_types.should_trans() || output_metadata);
152-
if crate_type == config::CrateTypeExecutable && ignore_executable {
150+
if (sess.opts.debugging_opts.no_trans || !sess.opts.output_types.should_trans()) &&
151+
!output_metadata &&
152+
crate_type == config::CrateTypeExecutable {
153153
continue;
154154
}
155155

0 commit comments

Comments
 (0)