Remove unused TyEncoder::tcx
required method
This commit is contained in:
parent
fa41639427
commit
a72b739bf0
@ -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
|
||||
}
|
||||
|
@ -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>;
|
||||
|
@ -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()
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user