]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_middle/ty/layout.rs
Rollup merge of #75485 - RalfJung:pin, r=nagisa
[rust.git] / src / librustc_middle / ty / layout.rs
index 5aa94ba3d09fd0b46229b4396b08395f45047994..16e65d2cca4cbcfed06447c84d90c7dcc04053d0 100644 (file)
@@ -165,7 +165,7 @@ fn to_int_ty(&self, tcx: TyCtxt<'tcx>) -> Ty<'tcx> {
 /// - For a slice, this is the length.
 pub const FAT_PTR_EXTRA: usize = 1;
 
-#[derive(Copy, Clone, Debug, RustcEncodable, RustcDecodable)]
+#[derive(Copy, Clone, Debug, TyEncodable, TyDecodable)]
 pub enum LayoutError<'tcx> {
     Unknown(Ty<'tcx>),
     SizeOverflow(Ty<'tcx>),