Skip to content

Commit 788181d

Browse files
author
Jorge Aparicio
committed
s/Show/Debug/g
1 parent 09ba9f5 commit 788181d

File tree

195 files changed

+577
-577
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

195 files changed

+577
-577
lines changed

src/compiletest/errors.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ pub struct ExpectedError {
1717
pub msg: String,
1818
}
1919

20-
#[derive(PartialEq, Show)]
20+
#[derive(PartialEq, Debug)]
2121
enum WhichLine { ThisLine, FollowPrevious(uint), AdjustBackward(uint) }
2222

2323
/// Looks for either "//~| KIND MESSAGE" or "//~^^... KIND MESSAGE"

src/doc/trpl/error-handling.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,10 +147,10 @@ for all but the most trivial of situations.
147147
Here's an example of using `Result`:
148148

149149
```rust
150-
#[derive(Show)]
150+
#[derive(Debug)]
151151
enum Version { Version1, Version2 }
152152

153-
#[derive(Show)]
153+
#[derive(Debug)]
154154
enum ParseError { InvalidHeaderLength, InvalidVersion }
155155

156156
fn parse_version(header: &[u8]) -> Result<Version, ParseError> {

src/doc/trpl/pointers.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -605,7 +605,7 @@ Sometimes, you need a recursive data structure. The simplest is known as a
605605

606606

607607
```{rust}
608-
#[derive(Show)]
608+
#[derive(Debug)]
609609
enum List<T> {
610610
Cons(T, Box<List<T>>),
611611
Nil,

src/liballoc/arc.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -814,6 +814,6 @@ mod tests {
814814
}
815815

816816
// Make sure deriving works with Arc<T>
817-
#[derive(Eq, Ord, PartialEq, PartialOrd, Clone, Show, Default)]
817+
#[derive(Eq, Ord, PartialEq, PartialOrd, Clone, Debug, Default)]
818818
struct Foo { inner: Arc<int> }
819819
}

src/liballoc/boxed.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
//! Creating a recursive data structure:
3030
//!
3131
//! ```
32-
//! #[derive(Show)]
32+
//! #[derive(Debug)]
3333
//! enum List<T> {
3434
//! Cons(T, Box<List<T>>),
3535
//! Nil,

src/libcollections/enum_set.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ mod test {
272272

273273
use super::{EnumSet, CLike};
274274

275-
#[derive(Copy, PartialEq, Show)]
275+
#[derive(Copy, PartialEq, Debug)]
276276
#[repr(uint)]
277277
enum Foo {
278278
A, B, C

src/libcollections/ring_buf.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1852,21 +1852,21 @@ mod tests {
18521852
})
18531853
}
18541854

1855-
#[derive(Clone, PartialEq, Show)]
1855+
#[derive(Clone, PartialEq, Debug)]
18561856
enum Taggy {
18571857
One(int),
18581858
Two(int, int),
18591859
Three(int, int, int),
18601860
}
18611861

1862-
#[derive(Clone, PartialEq, Show)]
1862+
#[derive(Clone, PartialEq, Debug)]
18631863
enum Taggypar<T> {
18641864
Onepar(int),
18651865
Twopar(int, int),
18661866
Threepar(int, int, int),
18671867
}
18681868

1869-
#[derive(Clone, PartialEq, Show)]
1869+
#[derive(Clone, PartialEq, Debug)]
18701870
struct RecCy {
18711871
x: int,
18721872
y: int,

src/libcollections/string.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ pub struct String {
4141

4242
/// A possible error value from the `String::from_utf8` function.
4343
#[stable(feature = "rust1", since = "1.0.0")]
44-
#[derive(Show)]
44+
#[derive(Debug)]
4545
pub struct FromUtf8Error {
4646
bytes: Vec<u8>,
4747
error: Utf8Error,
@@ -50,7 +50,7 @@ pub struct FromUtf8Error {
5050
/// A possible error value from the `String::from_utf16` function.
5151
#[stable(feature = "rust1", since = "1.0.0")]
5252
#[allow(missing_copy_implementations)]
53-
#[derive(Show)]
53+
#[derive(Debug)]
5454
pub struct FromUtf16Error(());
5555

5656
impl String {

src/libcollections/vec.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -811,7 +811,7 @@ impl<T> Vec<T> {
811811
/// let w = v.map_in_place(|i| i + 3);
812812
/// assert_eq!(w.as_slice(), [3, 4, 5].as_slice());
813813
///
814-
/// #[derive(PartialEq, Show)]
814+
/// #[derive(PartialEq, Debug)]
815815
/// struct Newtype(u8);
816816
/// let bytes = vec![0x11, 0x22];
817817
/// let newtyped_bytes = bytes.map_in_place(|x| Newtype(x));
@@ -2279,7 +2279,7 @@ mod tests {
22792279
#[test]
22802280
fn test_map_in_place_zero_sized() {
22812281
let v = vec![(), ()];
2282-
#[derive(PartialEq, Show)]
2282+
#[derive(PartialEq, Debug)]
22832283
struct ZeroSized;
22842284
assert_eq!(v.map_in_place(|_| ZeroSized), [ZeroSized, ZeroSized]);
22852285
}
@@ -2288,11 +2288,11 @@ mod tests {
22882288
fn test_map_in_place_zero_drop_count() {
22892289
use std::sync::atomic::{AtomicUsize, Ordering, ATOMIC_USIZE_INIT};
22902290

2291-
#[derive(Clone, PartialEq, Show)]
2291+
#[derive(Clone, PartialEq, Debug)]
22922292
struct Nothing;
22932293
impl Drop for Nothing { fn drop(&mut self) { } }
22942294

2295-
#[derive(Clone, PartialEq, Show)]
2295+
#[derive(Clone, PartialEq, Debug)]
22962296
struct ZeroSized;
22972297
impl Drop for ZeroSized {
22982298
fn drop(&mut self) {

src/libcore/any.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ impl Any {
166166
///
167167
/// A `TypeId` is currently only available for types which ascribe to `'static`,
168168
/// but this limitation may be removed in the future.
169-
#[derive(Clone, Copy, PartialEq, Eq, Show, Hash)]
169+
#[derive(Clone, Copy, PartialEq, Eq, Debug, Hash)]
170170
#[stable(feature = "rust1", since = "1.0.0")]
171171
pub struct TypeId {
172172
t: u64,

src/libcore/cmp.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ pub trait Eq: PartialEq<Self> {
105105
}
106106

107107
/// An ordering is, e.g, a result of a comparison between two values.
108-
#[derive(Clone, Copy, PartialEq, Show)]
108+
#[derive(Clone, Copy, PartialEq, Debug)]
109109
#[stable(feature = "rust1", since = "1.0.0")]
110110
pub enum Ordering {
111111
/// An ordering where a compared value is less [than another].

src/libcore/fmt/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ pub type Result = result::Result<(), Error>;
4848
/// some other means.
4949
#[unstable(feature = "core",
5050
reason = "core and I/O reconciliation may alter this definition")]
51-
#[derive(Copy, Show)]
51+
#[derive(Copy, Debug)]
5252
pub struct Error;
5353

5454
/// A collection of methods that are required to format a message into a stream.

src/libcore/iter.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1224,7 +1224,7 @@ impl_multiplicative! { f32, 1.0 }
12241224
impl_multiplicative! { f64, 1.0 }
12251225

12261226
/// `MinMaxResult` is an enum returned by `min_max`. See `IteratorOrdExt::min_max` for more detail.
1227-
#[derive(Clone, PartialEq, Show)]
1227+
#[derive(Clone, PartialEq, Debug)]
12281228
#[unstable(feature = "core",
12291229
reason = "unclear whether such a fine-grained result is widely useful")]
12301230
pub enum MinMaxResult<T> {

src/libcore/marker.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ pub trait Sized {
5050
/// words:
5151
///
5252
/// ```
53-
/// #[derive(Show)]
53+
/// #[derive(Debug)]
5454
/// struct Foo;
5555
///
5656
/// let x = Foo;
@@ -66,7 +66,7 @@ pub trait Sized {
6666
///
6767
/// ```
6868
/// // we can just derive a `Copy` implementation
69-
/// #[derive(Show, Copy)]
69+
/// #[derive(Debug, Copy)]
7070
/// struct Foo;
7171
///
7272
/// let x = Foo;

src/libcore/nonzero.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ unsafe impl Zeroable for u64 {}
3131
/// A wrapper type for raw pointers and integers that will never be
3232
/// NULL or 0 that might allow certain optimizations.
3333
#[lang="non_zero"]
34-
#[derive(Copy, Clone, Eq, PartialEq, Ord, PartialOrd, Show, Hash)]
34+
#[derive(Copy, Clone, Eq, PartialEq, Ord, PartialOrd, Debug, Hash)]
3535
#[unstable(feature = "core")]
3636
pub struct NonZero<T: Zeroable>(T);
3737

src/libcore/num/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1241,7 +1241,7 @@ impl_num_cast! { f32, to_f32 }
12411241
impl_num_cast! { f64, to_f64 }
12421242

12431243
/// Used for representing the classification of floating point numbers
1244-
#[derive(Copy, PartialEq, Show)]
1244+
#[derive(Copy, PartialEq, Debug)]
12451245
#[unstable(feature = "core", reason = "may be renamed")]
12461246
pub enum FpCategory {
12471247
/// "Not a Number", often obtained by dividing by zero

src/libcore/ops.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
//! ```rust
3636
//! use std::ops::{Add, Sub};
3737
//!
38-
//! #[derive(Show)]
38+
//! #[derive(Debug)]
3939
//! struct Point {
4040
//! x: int,
4141
//! y: int

src/libcore/option.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ use slice;
163163
// which basically means it must be `Option`.
164164

165165
/// The `Option` type.
166-
#[derive(Clone, Copy, PartialEq, PartialOrd, Eq, Ord, Show, Hash)]
166+
#[derive(Clone, Copy, PartialEq, PartialOrd, Eq, Ord, Debug, Hash)]
167167
#[stable(feature = "rust1", since = "1.0.0")]
168168
pub enum Option<T> {
169169
/// No value

src/libcore/result.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
//! defined and used like so:
3131
//!
3232
//! ```
33-
//! #[derive(Show)]
33+
//! #[derive(Debug)]
3434
//! enum Version { Version1, Version2 }
3535
//!
3636
//! fn parse_version(header: &[u8]) -> Result<Version, &'static str> {
@@ -239,7 +239,7 @@ use slice;
239239
/// `Result` is a type that represents either success (`Ok`) or failure (`Err`).
240240
///
241241
/// See the [`std::result`](index.html) module documentation for details.
242-
#[derive(Clone, Copy, PartialEq, PartialOrd, Eq, Ord, Show, Hash)]
242+
#[derive(Clone, Copy, PartialEq, PartialOrd, Eq, Ord, Debug, Hash)]
243243
#[must_use]
244244
#[stable(feature = "rust1", since = "1.0.0")]
245245
pub enum Result<T, E> {

src/libcore/simd.rs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838

3939
#[unstable(feature = "core")]
4040
#[simd]
41-
#[derive(Copy, Show)]
41+
#[derive(Copy, Debug)]
4242
#[repr(C)]
4343
pub struct i8x16(pub i8, pub i8, pub i8, pub i8,
4444
pub i8, pub i8, pub i8, pub i8,
@@ -47,26 +47,26 @@ pub struct i8x16(pub i8, pub i8, pub i8, pub i8,
4747

4848
#[unstable(feature = "core")]
4949
#[simd]
50-
#[derive(Copy, Show)]
50+
#[derive(Copy, Debug)]
5151
#[repr(C)]
5252
pub struct i16x8(pub i16, pub i16, pub i16, pub i16,
5353
pub i16, pub i16, pub i16, pub i16);
5454

5555
#[unstable(feature = "core")]
5656
#[simd]
57-
#[derive(Copy, Show)]
57+
#[derive(Copy, Debug)]
5858
#[repr(C)]
5959
pub struct i32x4(pub i32, pub i32, pub i32, pub i32);
6060

6161
#[unstable(feature = "core")]
6262
#[simd]
63-
#[derive(Copy, Show)]
63+
#[derive(Copy, Debug)]
6464
#[repr(C)]
6565
pub struct i64x2(pub i64, pub i64);
6666

6767
#[unstable(feature = "core")]
6868
#[simd]
69-
#[derive(Copy, Show)]
69+
#[derive(Copy, Debug)]
7070
#[repr(C)]
7171
pub struct u8x16(pub u8, pub u8, pub u8, pub u8,
7272
pub u8, pub u8, pub u8, pub u8,
@@ -75,31 +75,31 @@ pub struct u8x16(pub u8, pub u8, pub u8, pub u8,
7575

7676
#[unstable(feature = "core")]
7777
#[simd]
78-
#[derive(Copy, Show)]
78+
#[derive(Copy, Debug)]
7979
#[repr(C)]
8080
pub struct u16x8(pub u16, pub u16, pub u16, pub u16,
8181
pub u16, pub u16, pub u16, pub u16);
8282

8383
#[unstable(feature = "core")]
8484
#[simd]
85-
#[derive(Copy, Show)]
85+
#[derive(Copy, Debug)]
8686
#[repr(C)]
8787
pub struct u32x4(pub u32, pub u32, pub u32, pub u32);
8888

8989
#[unstable(feature = "core")]
9090
#[simd]
91-
#[derive(Copy, Show)]
91+
#[derive(Copy, Debug)]
9292
#[repr(C)]
9393
pub struct u64x2(pub u64, pub u64);
9494

9595
#[unstable(feature = "core")]
9696
#[simd]
97-
#[derive(Copy, Show)]
97+
#[derive(Copy, Debug)]
9898
#[repr(C)]
9999
pub struct f32x4(pub f32, pub f32, pub f32, pub f32);
100100

101101
#[unstable(feature = "core")]
102102
#[simd]
103-
#[derive(Copy, Show)]
103+
#[derive(Copy, Debug)]
104104
#[repr(C)]
105105
pub struct f64x2(pub f64, pub f64);

src/libcore/str/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ Section: Creating a string
144144
*/
145145

146146
/// Errors which can occur when attempting to interpret a byte slice as a `str`.
147-
#[derive(Copy, Eq, PartialEq, Clone, Show)]
147+
#[derive(Copy, Eq, PartialEq, Clone, Debug)]
148148
#[unstable(feature = "core",
149149
reason = "error enumeration recently added and definitions may be refined")]
150150
pub enum Utf8Error {

src/libcoretest/any.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ use core::any::*;
1111
use test::Bencher;
1212
use test;
1313

14-
#[derive(PartialEq, Show)]
14+
#[derive(PartialEq, Debug)]
1515
struct Test;
1616

1717
static TEST: &'static str = "Test";

0 commit comments

Comments
 (0)