From d797a8549124b64410ae9e45392eac328aa71829 Mon Sep 17 00:00:00 2001 From: Jack Huey Date: Sun, 17 Jan 2021 12:32:05 -0500 Subject: [PATCH] Add comment about Encodable/Decodable impl --- compiler/rustc_middle/src/ty/sty.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/compiler/rustc_middle/src/ty/sty.rs b/compiler/rustc_middle/src/ty/sty.rs index cdf443975f42..e08233b545d2 100644 --- a/compiler/rustc_middle/src/ty/sty.rs +++ b/compiler/rustc_middle/src/ty/sty.rs @@ -955,6 +955,8 @@ impl<'tcx> PolyExistentialTraitRef<'tcx> { /// erase, or otherwise "discharge" these bound vars, we change the /// type from `Binder` to just `T` (see /// e.g., `liberate_late_bound_regions`). +/// +/// `Decodable` and `Encodable` is implemented for `Binder` using the `impl_binder_encode_decode!` macro. #[derive(Copy, Clone, PartialEq, Eq, PartialOrd, Ord, Hash, Debug)] pub struct Binder(T);