about summary refs log tree commit diff
path: root/clippy_lints/src/default_numeric_fallback.rs
diff options
context:
space:
mode:
authorPhilipp Krones <hello@philkrones.com>2024-05-30 09:44:14 +0200
committerPhilipp Krones <hello@philkrones.com>2024-05-30 09:44:14 +0200
commit89037ea18f101e2e586feb81d2595a47ae42da46 (patch)
treee5934c662d0ace18bdc16cccb6c2342f69f3e5d7 /clippy_lints/src/default_numeric_fallback.rs
parentbda742762157d33dc2b2b52c451bcbf4d5237f08 (diff)
parentda4b2127c0a144699b946eec3c8c9d4fd7050c17 (diff)
downloadrust-89037ea18f101e2e586feb81d2595a47ae42da46.tar.gz
rust-89037ea18f101e2e586feb81d2595a47ae42da46.zip
Merge remote-tracking branch 'upstream/master' into rustup
Diffstat (limited to 'clippy_lints/src/default_numeric_fallback.rs')
-rw-r--r--clippy_lints/src/default_numeric_fallback.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/clippy_lints/src/default_numeric_fallback.rs b/clippy_lints/src/default_numeric_fallback.rs
index 1d6c4ce72e1..fbc4ede37b1 100644
--- a/clippy_lints/src/default_numeric_fallback.rs
+++ b/clippy_lints/src/default_numeric_fallback.rs
@@ -22,9 +22,8 @@ declare_clippy_lint! {
     ///
     /// See [RFC0212](https://github.com/rust-lang/rfcs/blob/master/text/0212-restore-int-fallback.md) for more information about the fallback.
     ///
-    /// ### Why is this bad?
-    /// For those who are very careful about types, default numeric fallback
-    /// can be a pitfall that cause unexpected runtime behavior.
+    /// ### Why restrict this?
+    /// To ensure that every numeric type is chosen explicitly rather than implicitly.
     ///
     /// ### Known problems
     /// This lint can only be allowed at the function level or above.