diff options
| author | Zack M. Davis <code@zackmdavis.net> | 2018-06-23 16:57:23 -0700 |
|---|---|---|
| committer | Zack M. Davis <code@zackmdavis.net> | 2018-06-23 22:57:37 -0700 |
| commit | 0b39a82cf49bc376e568560e4f97360f477255d4 (patch) | |
| tree | c0c236f114ac1bcbf55b099a33eec403feb39d56 /src/liballoc/string.rs | |
| parent | a417518173bae739d1aef50c6cf1a1e3bd4c4319 (diff) | |
| download | rust-0b39a82cf49bc376e568560e4f97360f477255d4.tar.gz rust-0b39a82cf49bc376e568560e4f97360f477255d4.zip | |
in which the trivial-casts word to the wise is tucked into a help note
The top level message shouldn't be too long; the replaced-by-coercion/temporary-variable advice can live in a note. Also, don't mention type ascription when it's not actually available as a real thing. (The current state of discussion on the type ascription tracking issue #23416 makes one rather suspect it will never be a stable thing in its current form, but that's not for us to adjudicate in this commit.) While we're here, yank out the differentiating parts of the numeric/other conditional and only have one codepath emitting the diagnostic.
Diffstat (limited to 'src/liballoc/string.rs')
0 files changed, 0 insertions, 0 deletions
