diff options
| author | Philipp Krones <hello@philkrones.com> | 2024-05-30 09:44:14 +0200 |
|---|---|---|
| committer | Philipp Krones <hello@philkrones.com> | 2024-05-30 09:44:14 +0200 |
| commit | 89037ea18f101e2e586feb81d2595a47ae42da46 (patch) | |
| tree | e5934c662d0ace18bdc16cccb6c2342f69f3e5d7 /clippy_lints/src/default_numeric_fallback.rs | |
| parent | bda742762157d33dc2b2b52c451bcbf4d5237f08 (diff) | |
| parent | da4b2127c0a144699b946eec3c8c9d4fd7050c17 (diff) | |
| download | rust-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.rs | 5 |
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. |
