diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2025-08-11 16:19:05 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-08-11 16:19:05 +0200 |
| commit | 77d7a2c1ebdb1f99c5f74c1c4e7b5726d6f66ffb (patch) | |
| tree | 24199556e914e51abd4330d11bc7b5531e6bd4e0 | |
| parent | 180e7ce7003028e9960427c0256623e89c9f1ffd (diff) | |
| parent | 57dc64ea32b21f309bd50b9a9ecf8757a6842117 (diff) | |
| download | rust-77d7a2c1ebdb1f99c5f74c1c4e7b5726d6f66ffb.tar.gz rust-77d7a2c1ebdb1f99c5f74c1c4e7b5726d6f66ffb.zip | |
Rollup merge of #145111 - fee1-dead-contrib:push-rlvnyrztlkpq, r=jieyouxu
remove some unused private trait impls they're neither required for completeness nor used
| -rw-r--r-- | compiler/rustc_borrowck/src/polonius/legacy/facts.rs | 16 | ||||
| -rw-r--r-- | compiler/rustc_symbol_mangling/src/export.rs | 9 |
2 files changed, 1 insertions, 24 deletions
diff --git a/compiler/rustc_borrowck/src/polonius/legacy/facts.rs b/compiler/rustc_borrowck/src/polonius/legacy/facts.rs index 64389b11a65..1f8177477e6 100644 --- a/compiler/rustc_borrowck/src/polonius/legacy/facts.rs +++ b/compiler/rustc_borrowck/src/polonius/legacy/facts.rs @@ -184,22 +184,6 @@ where } } -impl<A, B, C, D> FactRow for (A, B, C, D) -where - A: FactCell, - B: FactCell, - C: FactCell, - D: FactCell, -{ - fn write( - &self, - out: &mut dyn Write, - location_table: &PoloniusLocationTable, - ) -> Result<(), Box<dyn Error>> { - write_row(out, location_table, &[&self.0, &self.1, &self.2, &self.3]) - } -} - fn write_row( out: &mut dyn Write, location_table: &PoloniusLocationTable, diff --git a/compiler/rustc_symbol_mangling/src/export.rs b/compiler/rustc_symbol_mangling/src/export.rs index 956c996326b..76ac82cf95a 100644 --- a/compiler/rustc_symbol_mangling/src/export.rs +++ b/compiler/rustc_symbol_mangling/src/export.rs @@ -21,7 +21,7 @@ macro_rules! default_hash_impl { }; } -default_hash_impl! { i8, i16, i32, i64, i128, isize, u8, u16, u32, u64, u128, usize, } +default_hash_impl! { u8, u64, usize, } impl<'tcx> AbiHashStable<'tcx> for bool { #[inline] @@ -37,13 +37,6 @@ impl<'tcx> AbiHashStable<'tcx> for str { } } -impl<'tcx> AbiHashStable<'tcx> for String { - #[inline] - fn abi_hash(&self, tcx: TyCtxt<'tcx>, hasher: &mut StableHasher) { - self[..].abi_hash(tcx, hasher); - } -} - impl<'tcx> AbiHashStable<'tcx> for Symbol { #[inline] fn abi_hash(&self, tcx: TyCtxt<'tcx>, hasher: &mut StableHasher) { |
