X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=compiler%2Frustc_middle%2Fsrc%2Fty%2Fcodec.rs;h=8cc8286c1dbe67ea25fba051aab058f27ba18d2b;hb=02cbc017d7c0febeecc91cb6c10a6b3128d7a623;hp=75f2d45eadb81dbdea74246cedd6188b6002b6eb;hpb=5726f1f3ac9e8f1cd3a54c6631f64b7f1ddc14d1;p=rust.git diff --git a/compiler/rustc_middle/src/ty/codec.rs b/compiler/rustc_middle/src/ty/codec.rs index 75f2d45eadb..8cc8286c1db 100644 --- a/compiler/rustc_middle/src/ty/codec.rs +++ b/compiler/rustc_middle/src/ty/codec.rs @@ -310,7 +310,7 @@ fn decode(decoder: &mut D) -> &'tcx Self { impl<'tcx, D: TyDecoder>> Decodable for ty::Const<'tcx> { fn decode(decoder: &mut D) -> Self { - let consts: ty::ConstS<'tcx> = Decodable::decode(decoder); + let consts: ty::ConstData<'tcx> = Decodable::decode(decoder); decoder.interner().mk_const(consts.kind, consts.ty) } }