diff options
| author | Michael Goulet <michael@errs.io> | 2022-05-27 20:03:57 -0700 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2022-05-28 12:16:05 -0700 |
| commit | 46389159403ca0973bf88a4c153a2707cdb257d2 (patch) | |
| tree | e840b90c6d65e0b5f6d513eb376b46dd3c320cd4 /compiler/rustc_macros/src | |
| parent | f05a92d15896604faf30d33e73c7d40b98b2ec9c (diff) | |
| download | rust-46389159403ca0973bf88a4c153a2707cdb257d2.tar.gz rust-46389159403ca0973bf88a4c153a2707cdb257d2.zip | |
Make TyCtxt implement Interner, make HashStable generic and move to rustc_type_ir
Diffstat (limited to 'compiler/rustc_macros/src')
| -rw-r--r-- | compiler/rustc_macros/src/serialize.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_macros/src/serialize.rs b/compiler/rustc_macros/src/serialize.rs index 653c728ee42..a39b4413981 100644 --- a/compiler/rustc_macros/src/serialize.rs +++ b/compiler/rustc_macros/src/serialize.rs @@ -8,7 +8,7 @@ pub fn type_decodable_derive(mut s: synstructure::Structure<'_>) -> proc_macro2: if !s.ast().generics.lifetimes().any(|lt| lt.lifetime.ident == "tcx") { s.add_impl_generic(parse_quote! { 'tcx }); } - s.add_impl_generic(parse_quote! {#decoder_ty: ::rustc_type_ir::codec::TyDecoder<I = ::rustc_middle::ty::TyInterner<'tcx>>}); + s.add_impl_generic(parse_quote! {#decoder_ty: ::rustc_type_ir::codec::TyDecoder<I = ::rustc_middle::ty::TyCtxt<'tcx>>}); s.add_bounds(synstructure::AddBounds::Generics); decodable_body(s, decoder_ty) @@ -95,7 +95,7 @@ pub fn type_encodable_derive(mut s: synstructure::Structure<'_>) -> proc_macro2: s.add_impl_generic(parse_quote! {'tcx}); } let encoder_ty = quote! { __E }; - s.add_impl_generic(parse_quote! {#encoder_ty: ::rustc_type_ir::codec::TyEncoder<I = ::rustc_middle::ty::TyInterner<'tcx>>}); + s.add_impl_generic(parse_quote! {#encoder_ty: ::rustc_type_ir::codec::TyEncoder<I = ::rustc_middle::ty::TyCtxt<'tcx>>}); s.add_bounds(synstructure::AddBounds::Generics); encodable_body(s, encoder_ty, false) |
