Skip to content

Commit b88a20e

Browse files
committed
---
yaml --- r: 135361 b: refs/heads/snap-stage3 c: 8b1d3e6 h: refs/heads/master i: 135359: f0765d6 v: v3
1 parent ab98dd8 commit b88a20e

File tree

2 files changed

+1
-14
lines changed

2 files changed

+1
-14
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: 74090504219e4e37c1a6d9fdd8600f44b51c7b04
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: d07cd175daa24e25ce287ae013e5b6691c39dc36
4+
refs/heads/snap-stage3: 8b1d3e6c1c0a7d24d1c77b567e5fad6e1be6baca
55
refs/heads/try: 14378ea357c06c23607ca61ade44f60a7a64a1c7
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b

branches/snap-stage3/src/libserialize/serialize.rs

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ Core encoding and decoding interfaces.
1616

1717
use std::path;
1818
use std::rc::Rc;
19-
use std::gc::{Gc, GC};
2019
use std::cell::{Cell, RefCell};
2120

2221
pub trait Encoder<E> {
@@ -392,12 +391,6 @@ impl<E, D:Decoder<E>,T:Decodable<D, E>> Decodable<D, E> for Box<T> {
392391
}
393392
}
394393

395-
impl<E, S:Encoder<E>,T:'static + Encodable<S, E>> Encodable<S, E> for Gc<T> {
396-
fn encode(&self, s: &mut S) -> Result<(), E> {
397-
(**self).encode(s)
398-
}
399-
}
400-
401394
impl<E, S:Encoder<E>,T:Encodable<S, E>> Encodable<S, E> for Rc<T> {
402395
#[inline]
403396
fn encode(&self, s: &mut S) -> Result<(), E> {
@@ -412,12 +405,6 @@ impl<E, D:Decoder<E>,T:Decodable<D, E>> Decodable<D, E> for Rc<T> {
412405
}
413406
}
414407

415-
impl<E, D:Decoder<E>,T:Decodable<D, E> + 'static> Decodable<D, E> for Gc<T> {
416-
fn decode(d: &mut D) -> Result<Gc<T>, E> {
417-
Ok(box(GC) try!(Decodable::decode(d)))
418-
}
419-
}
420-
421408
impl<'a, E, S:Encoder<E>,T:Encodable<S, E>> Encodable<S, E> for &'a [T] {
422409
fn encode(&self, s: &mut S) -> Result<(), E> {
423410
s.emit_seq(self.len(), |s| {

0 commit comments

Comments
 (0)