We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fa620d0 commit cd21df2Copy full SHA for cd21df2
clippy_lints/src/format_args.rs
@@ -102,13 +102,10 @@ declare_clippy_lint! {
102
///
103
/// ### Known Problems
104
105
- /// * There may be a false positive if the format string is wrapped in a macro call:
106
- /// ```rust
107
- /// # let var = 42;
108
- /// macro_rules! no_param_str { () => { "{}" }; }
109
- /// macro_rules! pass_through { ($expr:expr) => { $expr }; }
110
- /// println!(no_param_str!(), var);
111
- /// println!(pass_through!("{}"), var);
+ /// There may be a false positive if the format string is expanded from certain proc macros:
+ ///
+ /// ```ignore
+ /// println!(indoc!("{}"), var);
112
/// ```
113
114
/// * Format string uses an indexed argument that cannot be inlined.
0 commit comments