Skip to content

Commit 324d2e5

Browse files
Fix feature gating on rustc_index to not use implicit features
1 parent 247ad33 commit 324d2e5

File tree

1 file changed

+3
-3
lines changed
  • compiler/rustc_index/src

1 file changed

+3
-3
lines changed

compiler/rustc_index/src/vec.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#[cfg(feature = "rustc_serialize")]
1+
#[cfg(feature = "nightly")]
22
use rustc_serialize::{Decodable, Decoder, Encodable, Encoder};
33

44
use std::borrow::{Borrow, BorrowMut};
@@ -322,14 +322,14 @@ impl<I: Idx, T, const N: usize> From<[T; N]> for IndexVec<I, T> {
322322
}
323323
}
324324

325-
#[cfg(feature = "rustc_serialize")]
325+
#[cfg(feature = "nightly")]
326326
impl<S: Encoder, I: Idx, T: Encodable<S>> Encodable<S> for IndexVec<I, T> {
327327
fn encode(&self, s: &mut S) {
328328
Encodable::encode(&self.raw, s);
329329
}
330330
}
331331

332-
#[cfg(feature = "rustc_serialize")]
332+
#[cfg(feature = "nightly")]
333333
impl<D: Decoder, I: Idx, T: Decodable<D>> Decodable<D> for IndexVec<I, T> {
334334
fn decode(d: &mut D) -> Self {
335335
IndexVec::from_raw(Vec::<T>::decode(d))

0 commit comments

Comments
 (0)