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,

0 commit comments

Comments
 (0)