rustc/driver: don't sort base if it only has one element
This commit is contained in:
parent
9b01b51560
commit
292cc1e36f
1 changed files with 3 additions and 2 deletions
|
|
@ -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| {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue