]> git.lizzy.rs Git - rust.git/commit
Reword `trivial_casts` lint to better explain.
authorAndrew Lilley Brinker <andrewabrinker@gmail.com>
Thu, 10 Sep 2020 02:36:15 +0000 (19:36 -0700)
committerAndrew Lilley Brinker <andrewabrinker@gmail.com>
Thu, 10 Sep 2020 02:36:15 +0000 (19:36 -0700)
commit01bf35010fb76154475fb722773731073fb50fa3
treefda12c9a98fb15213dece468f0e937c9377b2add
parent97eb606e4b2becd17d46a67d87169f52b210e67c
Reword `trivial_casts` lint to better explain.

The current description of the trivial casts lint under the "allowed
by default" listing in the rustc book indicates the lint is for lints
which may be removed, which is less clear than saying it's for lints
which may be replaced by coercion (which is the wording used by the
error message included in the doc).

This commit changes the wording slightly to better describe what the
lint does.
src/doc/rustc/src/lints/listing/allowed-by-default.md