Skip to content

Commit 7edabd5

Browse files
committed
refactor(compile): Relax traits for UnitOutput
1 parent e32b58f commit 7edabd5

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/cargo/core/compiler/compilation.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ pub struct Doctest {
5353
}
5454

5555
/// Information about the output of a unit.
56-
#[derive(Ord, PartialOrd, Eq, PartialEq)]
5756
pub struct UnitOutput {
5857
/// The unit that generated this output.
5958
pub unit: Unit,

src/cargo/ops/cargo_test.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ pub fn run_benches(ws: &Workspace<'_>, options: &TestOptions, args: &[&str]) ->
103103

104104
fn compile_tests<'a>(ws: &Workspace<'a>, options: &TestOptions) -> CargoResult<Compilation<'a>> {
105105
let mut compilation = ops::compile(ws, &options.compile_opts)?;
106-
compilation.tests.sort();
106+
compilation.tests.sort_by_key(|u| u.unit.clone());
107107
Ok(compilation)
108108
}
109109

0 commit comments

Comments
 (0)