Remove unused TyEncoder::tcx required method

This commit is contained in:
LeSeulArtichaut 2020-12-14 23:33:47 +01:00
parent fa41639427
commit a72b739bf0
3 changed files with 0 additions and 8 deletions

View File

@ -319,10 +319,6 @@ fn position(&self) -> usize {
self.opaque.position()
}
fn tcx(&self) -> TyCtxt<'tcx> {
self.tcx
}
fn type_shorthands(&mut self) -> &mut FxHashMap<Ty<'tcx>, usize> {
&mut self.type_shorthands
}

View File

@ -69,7 +69,6 @@ fn encoder_position(&self) -> usize {
pub trait TyEncoder<'tcx>: Encoder {
const CLEAR_CROSS_CRATE: bool;
fn tcx(&self) -> TyCtxt<'tcx>;
fn position(&self) -> usize;
fn type_shorthands(&mut self) -> &mut FxHashMap<Ty<'tcx>, usize>;
fn predicate_shorthands(&mut self) -> &mut FxHashMap<ty::Predicate<'tcx>, usize>;

View File

@ -1044,9 +1044,6 @@ impl<'a, 'tcx, E> TyEncoder<'tcx> for CacheEncoder<'a, 'tcx, E>
{
const CLEAR_CROSS_CRATE: bool = false;
fn tcx(&self) -> TyCtxt<'tcx> {
self.tcx
}
fn position(&self) -> usize {
self.encoder.encoder_position()
}