about summary refs log tree commit diff
path: root/clippy_lints/src/casts
diff options
context:
space:
mode:
authorJason Newcomb <jsnewcomb@pm.me>2023-02-25 19:08:29 -0500
committerJason Newcomb <jsnewcomb@pm.me>2023-02-25 19:28:50 -0500
commit0413fb35babdfe8fe2456e7b3d520f1ffb5de231 (patch)
tree9938720b708db9e681ba8c47a2f93ab99bba4286 /clippy_lints/src/casts
parente5df17aae5f9554ea8d241b4af91109400dc5cbd (diff)
downloadrust-0413fb35babdfe8fe2456e7b3d520f1ffb5de231.tar.gz
rust-0413fb35babdfe8fe2456e7b3d520f1ffb5de231.zip
Merge commit '149392b0baa4730c68f3c3eadf5c6ed7b16b85a4' into clippyup
Diffstat (limited to 'clippy_lints/src/casts')
-rw-r--r--clippy_lints/src/casts/cast_possible_truncation.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/clippy_lints/src/casts/cast_possible_truncation.rs b/clippy_lints/src/casts/cast_possible_truncation.rs
index f3f8b8d8798..823970e35ab 100644
--- a/clippy_lints/src/casts/cast_possible_truncation.rs
+++ b/clippy_lints/src/casts/cast_possible_truncation.rs
@@ -168,7 +168,7 @@ pub(super) fn check(
     let suggestion = format!("{cast_to_snip}::try_from({name_of_cast_from})");
 
     span_lint_and_then(cx, CAST_POSSIBLE_TRUNCATION, expr.span, &msg, |diag| {
-        diag.help("if this is intentional allow the lint with `#[allow(clippy::cast_precision_loss)]` ...");
+        diag.help("if this is intentional allow the lint with `#[allow(clippy::cast_possible_truncation)]` ...");
         diag.span_suggestion_with_style(
             expr.span,
             "... or use `try_from` and handle the error accordingly",