Skip to content

Commit 57dc64e

Browse files
committed
remove some unused private trait impls
1 parent 2886b36 commit 57dc64e

File tree

2 files changed

+1
-24
lines changed

2 files changed

+1
-24
lines changed

compiler/rustc_borrowck/src/polonius/legacy/facts.rs

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -184,22 +184,6 @@ where
184184
}
185185
}
186186

187-
impl<A, B, C, D> FactRow for (A, B, C, D)
188-
where
189-
A: FactCell,
190-
B: FactCell,
191-
C: FactCell,
192-
D: FactCell,
193-
{
194-
fn write(
195-
&self,
196-
out: &mut dyn Write,
197-
location_table: &PoloniusLocationTable,
198-
) -> Result<(), Box<dyn Error>> {
199-
write_row(out, location_table, &[&self.0, &self.1, &self.2, &self.3])
200-
}
201-
}
202-
203187
fn write_row(
204188
out: &mut dyn Write,
205189
location_table: &PoloniusLocationTable,

compiler/rustc_symbol_mangling/src/export.rs

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ macro_rules! default_hash_impl {
2121
};
2222
}
2323

24-
default_hash_impl! { i8, i16, i32, i64, i128, isize, u8, u16, u32, u64, u128, usize, }
24+
default_hash_impl! { u8, u64, usize, }
2525

2626
impl<'tcx> AbiHashStable<'tcx> for bool {
2727
#[inline]
@@ -37,13 +37,6 @@ impl<'tcx> AbiHashStable<'tcx> for str {
3737
}
3838
}
3939

40-
impl<'tcx> AbiHashStable<'tcx> for String {
41-
#[inline]
42-
fn abi_hash(&self, tcx: TyCtxt<'tcx>, hasher: &mut StableHasher) {
43-
self[..].abi_hash(tcx, hasher);
44-
}
45-
}
46-
4740
impl<'tcx> AbiHashStable<'tcx> for Symbol {
4841
#[inline]
4942
fn abi_hash(&self, tcx: TyCtxt<'tcx>, hasher: &mut StableHasher) {

0 commit comments

Comments
 (0)