]> git.lizzy.rs Git - rust.git/commitdiff
Rollup merge of #60897 - seanmonstar:patch-4, r=sfackler
authorPietro Albini <pietro@pietroalbini.org>
Fri, 31 May 2019 11:33:51 +0000 (13:33 +0200)
committerGitHub <noreply@github.com>
Fri, 31 May 2019 11:33:51 +0000 (13:33 +0200)
error: remove StringError from Debug output

Seeing `StringError("something something")` in debug output can cause
 someone to think there was an error dealing with `String`s, not that the
error type is just a string. So, remove that noise.

For example:

```
io error: Custom { kind: InvalidData, error: StringError("corrupt data") }
```

With this change:

```
io error: Custom { kind: InvalidData, error: "corrupt data" }
```

1  2 
src/libstd/error.rs

Simple merge