]> git.lizzy.rs Git - rust.git/commitdiff
Rollup merge of #47307 - dlrobertson:fix_panic_strings, r=kennytm
authorkennytm <kennytm@gmail.com>
Fri, 12 Jan 2018 18:26:33 +0000 (02:26 +0800)
committerGitHub <noreply@github.com>
Fri, 12 Jan 2018 18:26:33 +0000 (02:26 +0800)
Fix panic strings.

 - Fix panic string in `check_ast_crate`.
 - Update panic string for Duration subtraction on overflow/underflow.

Not sure if the changes to `Duration` are helpful/needed. Mostly just a nit.
Otherwise this is just a one character change :)

On another note: I hit the panic in `check_ast_crate` when compiling
[m-labs/smoltcp] with the following:

```
cargo test --doc --no-default-features --features "std socket-raw"`
```

[m-labs/smoltcp]: https://github.com/m-labs/smoltcp


Trivial merge