diff options
| author | bors <bors@rust-lang.org> | 2016-04-14 08:23:11 -0700 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2016-04-14 08:23:11 -0700 |
| commit | 073a09fd63c9b4ec3bb4709986a2517ca4c3cdf1 (patch) | |
| tree | 23087cf0681e16d3512f3c9d731e0440547e91c0 /src/librustc_incremental | |
| parent | fbf8a8ce5e1d69d687b74dcc6c2068204164ed2f (diff) | |
| parent | 2fd2210b880498829bf1556aee47f3753887ecfa (diff) | |
| download | rust-073a09fd63c9b4ec3bb4709986a2517ca4c3cdf1.tar.gz rust-073a09fd63c9b4ec3bb4709986a2517ca4c3cdf1.zip | |
Auto merge of #32908 - oli-obk:hygienic_derive_encodable, r=alexcrichton
prevent other `encode` methods from breaking `derive(RustcEncodable)` fixes https://github.com/rust-lang-nursery/rustc-serialize/issues/151
Diffstat (limited to 'src/librustc_incremental')
| -rw-r--r-- | src/librustc_incremental/persist/data.rs | 4 | ||||
| -rw-r--r-- | src/librustc_incremental/persist/directory.rs | 3 |
2 files changed, 2 insertions, 5 deletions
diff --git a/src/librustc_incremental/persist/data.rs b/src/librustc_incremental/persist/data.rs index 8be8bd60b23..60d644ba768 100644 --- a/src/librustc_incremental/persist/data.rs +++ b/src/librustc_incremental/persist/data.rs @@ -11,8 +11,7 @@ //! The data that we will serialize and deserialize. use rustc::dep_graph::DepNode; -use rustc_serialize::{Decoder as RustcDecoder, - Encodable as RustcEncodable, Encoder as RustcEncoder}; +use rustc_serialize::{Decoder as RustcDecoder, Encoder as RustcEncoder}; use super::directory::DefPathIndex; @@ -32,4 +31,3 @@ pub struct SerializedHash { /// the hash itself, computed by `calculate_item_hash` pub hash: u64, } - diff --git a/src/librustc_incremental/persist/directory.rs b/src/librustc_incremental/persist/directory.rs index 0d0054cadc6..7f4c7d919c0 100644 --- a/src/librustc_incremental/persist/directory.rs +++ b/src/librustc_incremental/persist/directory.rs @@ -18,8 +18,7 @@ use rustc::hir::map::DefPath; use rustc::hir::def_id::DefId; use rustc::ty; use rustc::util::nodemap::DefIdMap; -use rustc_serialize::{Decoder as RustcDecoder, - Encodable as RustcEncodable, Encoder as RustcEncoder}; +use rustc_serialize::{Decoder as RustcDecoder, Encoder as RustcEncoder}; use std::fmt::{self, Debug}; /// Index into the DefIdDirectory |
