Skip to content

Commit d797a85

Browse files
committed
Add comment about Encodable/Decodable impl
1 parent c76f478 commit d797a85

File tree

1 file changed

+2
-0
lines changed
  • compiler/rustc_middle/src/ty

1 file changed

+2
-0
lines changed

compiler/rustc_middle/src/ty/sty.rs

+2
Original file line numberDiff line numberDiff line change
@@ -955,6 +955,8 @@ impl<'tcx> PolyExistentialTraitRef<'tcx> {
955955
/// erase, or otherwise "discharge" these bound vars, we change the
956956
/// type from `Binder<T>` to just `T` (see
957957
/// e.g., `liberate_late_bound_regions`).
958+
///
959+
/// `Decodable` and `Encodable` is implemented for `Binder<T>` using the `impl_binder_encode_decode!` macro.
958960
#[derive(Copy, Clone, PartialEq, Eq, PartialOrd, Ord, Hash, Debug)]
959961
pub struct Binder<T>(T);
960962

0 commit comments

Comments
 (0)