Skip to content

Commit fc2abe6

Browse files
committed
Remove a couple of unused Encodable and Decodable derives
1 parent e40d5e8 commit fc2abe6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

compiler/rustc_target/src/abi/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -574,7 +574,7 @@ impl Align {
574574
}
575575

576576
/// A pair of alignments, ABI-mandated and preferred.
577-
#[derive(Copy, Clone, PartialEq, Eq, Hash, Debug, Encodable, Decodable)]
577+
#[derive(Copy, Clone, PartialEq, Eq, Hash, Debug)]
578578
#[derive(HashStable_Generic)]
579579
pub struct AbiAndPrefAlign {
580580
pub abi: Align,

compiler/rustc_target/src/spec/mod.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ impl ToJson for PanicStrategy {
211211
}
212212
}
213213

214-
#[derive(Clone, Copy, Debug, PartialEq, Hash, Encodable, Decodable)]
214+
#[derive(Clone, Copy, Debug, PartialEq, Hash)]
215215
pub enum RelroLevel {
216216
Full,
217217
Partial,
@@ -255,7 +255,7 @@ impl ToJson for RelroLevel {
255255
}
256256
}
257257

258-
#[derive(Clone, Copy, Debug, PartialEq, Hash, Encodable, Decodable)]
258+
#[derive(Clone, Copy, Debug, PartialEq, Hash)]
259259
pub enum MergeFunctions {
260260
Disabled,
261261
Trampolines,

0 commit comments

Comments
 (0)