diff options
| author | Flavio Percoco <flaper87@gmail.com> | 2014-03-29 01:05:46 +0100 |
|---|---|---|
| committer | Flavio Percoco <flaper87@gmail.com> | 2014-03-29 01:12:32 +0100 |
| commit | a9c6061c9a542a617020073d0a6b187849d0e348 (patch) | |
| tree | d5e4add67f7a0d840d34a7fec5bf48e3b1134a28 /src/libsyntax/codemap.rs | |
| parent | cbfc0a5e33eb3d97a2995d120536b8dadc0cc0a2 (diff) | |
| download | rust-a9c6061c9a542a617020073d0a6b187849d0e348.tar.gz rust-a9c6061c9a542a617020073d0a6b187849d0e348.zip | |
Register new snapshot
Diffstat (limited to 'src/libsyntax/codemap.rs')
| -rw-r--r-- | src/libsyntax/codemap.rs | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/src/libsyntax/codemap.rs b/src/libsyntax/codemap.rs index f3ff7f97ee2..974868c1610 100644 --- a/src/libsyntax/codemap.rs +++ b/src/libsyntax/codemap.rs @@ -110,23 +110,6 @@ impl Eq for Span { impl TotalEq for Span {} -// FIXME: remove stage0 Encodables/Decodables after snapshot -#[cfg(stage0)] -impl<S:Encoder> Encodable<S> for Span { - /* Note #1972 -- spans are encoded but not decoded */ - fn encode(&self, s: &mut S) { - s.emit_nil() - } -} - -#[cfg(stage0)] -impl<D:Decoder> Decodable<D> for Span { - fn decode(_d: &mut D) -> Span { - DUMMY_SP - } -} - -#[cfg(not(stage0))] impl<S:Encoder<E>, E> Encodable<S, E> for Span { /* Note #1972 -- spans are encoded but not decoded */ fn encode(&self, s: &mut S) -> Result<(), E> { @@ -134,7 +117,6 @@ impl<S:Encoder<E>, E> Encodable<S, E> for Span { } } -#[cfg(not(stage0))] impl<D:Decoder<E>, E> Decodable<D, E> for Span { fn decode(_d: &mut D) -> Result<Span, E> { Ok(DUMMY_SP) |
