Move codec module back into middle
This commit is contained in:
parent
6438b9eca8
commit
19c84c8812
16 changed files with 129 additions and 187 deletions
|
@ -386,13 +386,11 @@ impl<'a, 'tcx> DecodeContext<'a, 'tcx> {
|
|||
}
|
||||
}
|
||||
|
||||
impl<'a, 'tcx> TyDecoder for DecodeContext<'a, 'tcx> {
|
||||
impl<'a, 'tcx> TyDecoder<'tcx> for DecodeContext<'a, 'tcx> {
|
||||
const CLEAR_CROSS_CRATE: bool = true;
|
||||
|
||||
type I = TyCtxt<'tcx>;
|
||||
|
||||
#[inline]
|
||||
fn interner(&self) -> Self::I {
|
||||
fn interner(&self) -> TyCtxt<'tcx> {
|
||||
self.tcx()
|
||||
}
|
||||
|
||||
|
|
|
@ -378,11 +378,9 @@ impl<'a, 'tcx> Encodable<EncodeContext<'a, 'tcx>> for [u8] {
|
|||
}
|
||||
}
|
||||
|
||||
impl<'a, 'tcx> TyEncoder for EncodeContext<'a, 'tcx> {
|
||||
impl<'a, 'tcx> TyEncoder<'tcx> for EncodeContext<'a, 'tcx> {
|
||||
const CLEAR_CROSS_CRATE: bool = true;
|
||||
|
||||
type I = TyCtxt<'tcx>;
|
||||
|
||||
fn position(&self) -> usize {
|
||||
self.opaque.position()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue