Remove #[derive(Show)]

This commit is contained in:
Vadim Petrochenkov 2015-10-18 19:03:42 +03:00
parent be91042913
commit 025cf75864
9 changed files with 19 additions and 17 deletions

View file

@ -10,7 +10,7 @@
use std::cell::Cell;
#[derive(Show)]
#[derive(Debug)]
struct B<'a> {
a: [Cell<Option<&'a B<'a>>>; 2]
}

View file

@ -10,7 +10,7 @@
use std::mem;
#[derive(PartialEq, Show)]
#[derive(PartialEq, Debug)]
enum Foo {
A(u32),
Bar([u16; 4]),

View file

@ -8,8 +8,12 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#[derive(Show)]
//~^ WARNING derive(Show) is deprecated
#![feature(rustc_private)]
extern crate serialize;
#[derive(Encodable)]
//~^ WARNING derive(Encodable) is deprecated in favor of derive(RustcEncodable)
struct Test1;
fn main() { }

View file

@ -10,7 +10,7 @@
use std::cell::Cell;
#[derive(Show)]
#[derive(Debug)]
struct C<'a> {
v: Vec<Cell<Option<&'a C<'a>>>>,
}

View file

@ -10,12 +10,12 @@
use std::cell::Cell;
#[derive(Show)]
#[derive(Debug)]
struct Refs<'a> {
v: Vec<Cell<Option<&'a C<'a>>>>,
}
#[derive(Show)]
#[derive(Debug)]
struct C<'a> {
refs: Refs<'a>,
}