Skip to content

Commit 154443f

Browse files
committed
Remove useless PartialOrd/Ord implementations
1 parent 6d41c71 commit 154443f

File tree

1 file changed

+9
-9
lines changed
  • src/bootstrap/src/core/build_steps

1 file changed

+9
-9
lines changed

src/bootstrap/src/core/build_steps/dist.rs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ fn should_build_extended_tool(builder: &Builder<'_>, tool: &str) -> bool {
5656
builder.config.tools.as_ref().is_none_or(|tools| tools.contains(tool))
5757
}
5858

59-
#[derive(Debug, PartialOrd, Ord, Clone, Hash, PartialEq, Eq)]
59+
#[derive(Debug, Clone, Hash, PartialEq, Eq)]
6060
pub struct Docs {
6161
pub host: TargetSelection,
6262
}
@@ -96,7 +96,7 @@ impl Step for Docs {
9696
}
9797
}
9898

99-
#[derive(Debug, PartialOrd, Ord, Clone, Hash, PartialEq, Eq)]
99+
#[derive(Debug, Clone, Hash, PartialEq, Eq)]
100100
pub struct JsonDocs {
101101
build_compiler: Compiler,
102102
target: TargetSelection,
@@ -369,7 +369,7 @@ fn get_cc_search_dirs(
369369
///
370370
/// This contains all the bits and pieces to run the MinGW Windows targets
371371
/// without any extra installed software (e.g., we bundle gcc, libraries, etc.).
372-
#[derive(Debug, PartialOrd, Ord, Clone, Hash, PartialEq, Eq)]
372+
#[derive(Debug, Clone, Hash, PartialEq, Eq)]
373373
pub struct Mingw {
374374
target: TargetSelection,
375375
}
@@ -414,7 +414,7 @@ impl Step for Mingw {
414414
/// - The licenses of all code used by the compiler.
415415
///
416416
/// It does not include any standard library.
417-
#[derive(Debug, PartialOrd, Ord, Clone, Hash, PartialEq, Eq)]
417+
#[derive(Debug, Clone, Hash, PartialEq, Eq)]
418418
pub struct Rustc {
419419
/// This is the compiler that we will *ship* in this dist step.
420420
pub target_compiler: Compiler,
@@ -755,7 +755,7 @@ fn copy_target_libs(
755755
///
756756
/// Note that due to uplifting, we actually ship the stage 1 library
757757
/// (built using the stage1 compiler) even with a stage 2 dist, unless `full-bootstrap` is enabled.
758-
#[derive(Debug, PartialOrd, Ord, Clone, Hash, PartialEq, Eq)]
758+
#[derive(Debug, Clone, Hash, PartialEq, Eq)]
759759
pub struct Std {
760760
/// Compiler that will build the standard library.
761761
pub build_compiler: Compiler,
@@ -823,7 +823,7 @@ impl Step for Std {
823823
/// `rust.download-rustc`.
824824
///
825825
/// (Don't confuse this with [`RustDev`], without the `c`!)
826-
#[derive(Debug, PartialOrd, Ord, Clone, Hash, PartialEq, Eq)]
826+
#[derive(Debug, Clone, Hash, PartialEq, Eq)]
827827
pub struct RustcDev {
828828
/// The compiler that will build rustc which will be shipped in this component.
829829
build_compiler: Compiler,
@@ -1061,7 +1061,7 @@ fn copy_src_dirs(
10611061
}
10621062
}
10631063

1064-
#[derive(Debug, PartialOrd, Ord, Clone, Hash, PartialEq, Eq)]
1064+
#[derive(Debug, Clone, Hash, PartialEq, Eq)]
10651065
pub struct Src;
10661066

10671067
impl Step for Src {
@@ -1122,7 +1122,7 @@ impl Step for Src {
11221122
}
11231123
}
11241124

1125-
#[derive(Debug, PartialOrd, Ord, Clone, Hash, PartialEq, Eq)]
1125+
#[derive(Debug, Clone, Hash, PartialEq, Eq)]
11261126
pub struct PlainSourceTarball;
11271127

11281128
impl Step for PlainSourceTarball {
@@ -2437,7 +2437,7 @@ impl Step for LlvmTools {
24372437

24382438
/// Distributes the `llvm-bitcode-linker` tool so that it can be used by a compiler whose host
24392439
/// is `target`.
2440-
#[derive(Debug, PartialOrd, Ord, Clone, Hash, PartialEq, Eq)]
2440+
#[derive(Debug, Clone, Hash, PartialEq, Eq)]
24412441
pub struct LlvmBitcodeLinker {
24422442
/// The linker will be compiled by this compiler.
24432443
pub build_compiler: Compiler,

0 commit comments

Comments
 (0)