Remove FingerprintEncoder/Decoder.
This commit is contained in:
parent
09a638820e
commit
11b3409b5d
4 changed files with 11 additions and 84 deletions
|
@ -7,7 +7,6 @@ use crate::rmeta::*;
|
|||
use rustc_ast as ast;
|
||||
use rustc_attr as attr;
|
||||
use rustc_data_structures::captures::Captures;
|
||||
use rustc_data_structures::fingerprint::{Fingerprint, FingerprintDecoder};
|
||||
use rustc_data_structures::fx::FxHashMap;
|
||||
use rustc_data_structures::svh::Svh;
|
||||
use rustc_data_structures::sync::{Lock, LockGuard, Lrc, OnceCell};
|
||||
|
@ -351,12 +350,6 @@ impl<'a, 'tcx> Decodable<DecodeContext<'a, 'tcx>> for DefIndex {
|
|||
}
|
||||
}
|
||||
|
||||
impl<'a, 'tcx> FingerprintDecoder for DecodeContext<'a, 'tcx> {
|
||||
fn decode_fingerprint(&mut self) -> Result<Fingerprint, String> {
|
||||
Fingerprint::decode_opaque(&mut self.opaque)
|
||||
}
|
||||
}
|
||||
|
||||
impl<'a, 'tcx> Decodable<DecodeContext<'a, 'tcx>> for SyntaxContext {
|
||||
fn decode(decoder: &mut DecodeContext<'a, 'tcx>) -> Result<SyntaxContext, String> {
|
||||
let cdata = decoder.cdata();
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
use crate::rmeta::table::{FixedSizeEncoding, TableBuilder};
|
||||
use crate::rmeta::*;
|
||||
|
||||
use rustc_data_structures::fingerprint::{Fingerprint, FingerprintEncoder};
|
||||
use rustc_data_structures::fx::{FxHashMap, FxIndexSet};
|
||||
use rustc_data_structures::stable_hasher::StableHasher;
|
||||
use rustc_data_structures::sync::{join, par_iter, Lrc, ParallelIterator};
|
||||
|
@ -308,12 +307,6 @@ impl<'a, 'tcx> Encodable<EncodeContext<'a, 'tcx>> for Span {
|
|||
}
|
||||
}
|
||||
|
||||
impl<'a, 'tcx> FingerprintEncoder for EncodeContext<'a, 'tcx> {
|
||||
fn encode_fingerprint(&mut self, f: &Fingerprint) -> Result<(), Self::Error> {
|
||||
self.opaque.encode_fingerprint(f)
|
||||
}
|
||||
}
|
||||
|
||||
impl<'a, 'tcx> TyEncoder<'tcx> for EncodeContext<'a, 'tcx> {
|
||||
const CLEAR_CROSS_CRATE: bool = true;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue