diff options
| author | Andrew Lilley Brinker <andrewabrinker@gmail.com> | 2020-09-09 19:36:15 -0700 |
|---|---|---|
| committer | Andrew Lilley Brinker <andrewabrinker@gmail.com> | 2020-09-09 19:36:15 -0700 |
| commit | 01bf35010fb76154475fb722773731073fb50fa3 (patch) | |
| tree | fda12c9a98fb15213dece468f0e937c9377b2add /src/doc/rustc | |
| parent | 97eb606e4b2becd17d46a67d87169f52b210e67c (diff) | |
| download | rust-01bf35010fb76154475fb722773731073fb50fa3.tar.gz rust-01bf35010fb76154475fb722773731073fb50fa3.zip | |
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.
Diffstat (limited to 'src/doc/rustc')
| -rw-r--r-- | src/doc/rustc/src/lints/listing/allowed-by-default.md | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/doc/rustc/src/lints/listing/allowed-by-default.md b/src/doc/rustc/src/lints/listing/allowed-by-default.md index d3dfc3197e2..d2d8c471efc 100644 --- a/src/doc/rustc/src/lints/listing/allowed-by-default.md +++ b/src/doc/rustc/src/lints/listing/allowed-by-default.md @@ -232,7 +232,8 @@ error: lifetime name `'x` only used once ## trivial-casts -This lint detects trivial casts which could be removed. Some example code +This lint detects trivial casts which could be replaced with coercion, which may require +type ascription or a temporary variable. Some example code that triggers this lint: ```rust |
