We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 7f866c7 + 0a99eec commit d1e1affCopy full SHA for d1e1aff
clippy_lints/src/default_numeric_fallback.rs
@@ -26,7 +26,8 @@ declare_clippy_lint! {
26
/// To ensure that every numeric type is chosen explicitly rather than implicitly.
27
///
28
/// ### Known problems
29
- /// This lint can only be allowed at the function level or above.
+ /// This lint is implemented using a custom algorithm independent of rustc's inference,
30
+ /// which results in many false positives and false negatives.
31
32
/// ### Example
33
/// ```no_run
@@ -36,8 +37,8 @@ declare_clippy_lint! {
36
37
38
/// Use instead:
39
- /// let i = 10i32;
40
- /// let f = 1.23f64;
+ /// let i = 10_i32;
41
+ /// let f = 1.23_f64;
42
/// ```
43
#[clippy::version = "1.52.0"]
44
pub DEFAULT_NUMERIC_FALLBACK,
0 commit comments