Skip to content

Commit

Permalink
rustc/driver: don't sort base if it only has one element
Browse files Browse the repository at this point in the history
  • Loading branch information
ljedrz committed Oct 13, 2018
1 parent 9b01b51 commit 292cc1e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/librustc_driver/driver.rs
Expand Up @@ -1578,9 +1578,10 @@ pub fn collect_crate_types(session: &Session, attrs: &[ast::Attribute]) -> Vec<c
base.push(::rustc_codegen_utils::link::default_output_for_target(
session,
));
} else {
base.sort();
base.dedup();
}
base.sort();
base.dedup();
}

base.retain(|crate_type| {
Expand Down

0 comments on commit 292cc1e

Please sign in to comment.