diff options
| author | Josh Stone <jistone@redhat.com> | 2025-06-24 10:05:56 -0700 |
|---|---|---|
| committer | Josh Stone <jistone@redhat.com> | 2025-07-01 10:55:49 -0700 |
| commit | e851e3e16e161e624b4108b83889b3fdbd5d44dd (patch) | |
| tree | 20302241c5875bac068af62ba935d81c7ee63df1 /compiler/rustc_serialize/src/serialize.rs | |
| parent | a58050b753387daee70cbf6c231ea1422dd74d47 (diff) | |
| download | rust-e851e3e16e161e624b4108b83889b3fdbd5d44dd.tar.gz rust-e851e3e16e161e624b4108b83889b3fdbd5d44dd.zip | |
Update `cfg(bootstrap)`
Diffstat (limited to 'compiler/rustc_serialize/src/serialize.rs')
| -rw-r--r-- | compiler/rustc_serialize/src/serialize.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler/rustc_serialize/src/serialize.rs b/compiler/rustc_serialize/src/serialize.rs index 846710c3398..6ea70600626 100644 --- a/compiler/rustc_serialize/src/serialize.rs +++ b/compiler/rustc_serialize/src/serialize.rs @@ -4,7 +4,7 @@ use std::borrow::Cow; use std::cell::{Cell, RefCell}; use std::collections::{BTreeMap, BTreeSet, HashMap, HashSet, VecDeque}; use std::hash::{BuildHasher, Hash}; -use std::marker::PhantomData; +use std::marker::{PhantomData, PointeeSized}; use std::num::NonZero; use std::path; use std::rc::Rc; @@ -164,7 +164,7 @@ pub trait Decoder { /// `rustc_metadata::rmeta::Lazy`. /// * `TyEncodable` should be used for types that are only serialized in crate /// metadata or the incremental cache. This is most types in `rustc_middle`. -pub trait Encodable<S: Encoder>: crate::PointeeSized { +pub trait Encodable<S: Encoder>: PointeeSized { fn encode(&self, s: &mut S); } @@ -220,7 +220,7 @@ direct_serialize_impls! { char emit_char read_char } -impl<S: Encoder, T: ?Sized + crate::PointeeSized> Encodable<S> for &T +impl<S: Encoder, T: ?Sized + PointeeSized> Encodable<S> for &T where T: Encodable<S>, { |
