diff options
| author | Michael Goulet <michael@errs.io> | 2024-07-15 12:44:24 -0400 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2024-07-15 12:44:24 -0400 |
| commit | 324d2e51ee16f56cc82485694f18a92b2eb315f3 (patch) | |
| tree | 31a26ca0ed426900bc9e6b1e0c802006f3ea2b52 | |
| parent | 247ad3385cb96d816da02edfb6393cc1952e5673 (diff) | |
| download | rust-324d2e51ee16f56cc82485694f18a92b2eb315f3.tar.gz rust-324d2e51ee16f56cc82485694f18a92b2eb315f3.zip | |
Fix feature gating on rustc_index to not use implicit features
| -rw-r--r-- | compiler/rustc_index/src/vec.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler/rustc_index/src/vec.rs b/compiler/rustc_index/src/vec.rs index b866c8b8433..346ce945bf9 100644 --- a/compiler/rustc_index/src/vec.rs +++ b/compiler/rustc_index/src/vec.rs @@ -1,4 +1,4 @@ -#[cfg(feature = "rustc_serialize")] +#[cfg(feature = "nightly")] use rustc_serialize::{Decodable, Decoder, Encodable, Encoder}; use std::borrow::{Borrow, BorrowMut}; @@ -322,14 +322,14 @@ impl<I: Idx, T, const N: usize> From<[T; N]> for IndexVec<I, T> { } } -#[cfg(feature = "rustc_serialize")] +#[cfg(feature = "nightly")] impl<S: Encoder, I: Idx, T: Encodable<S>> Encodable<S> for IndexVec<I, T> { fn encode(&self, s: &mut S) { Encodable::encode(&self.raw, s); } } -#[cfg(feature = "rustc_serialize")] +#[cfg(feature = "nightly")] impl<D: Decoder, I: Idx, T: Decodable<D>> Decodable<D> for IndexVec<I, T> { fn decode(d: &mut D) -> Self { IndexVec::from_raw(Vec::<T>::decode(d)) |
