mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-29 20:46:07 +03:00
rustc/driver: don't sort base if it only has one element
This commit is contained in:
@@ -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| {
|
||||
|
||||
Reference in New Issue
Block a user