Move codec module back into middle

This commit is contained in:
Michael Goulet 2025-03-13 17:53:36 +00:00
parent 6438b9eca8
commit 19c84c8812
16 changed files with 129 additions and 187 deletions

View file

@ -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()
}

View file

@ -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()
}