diff options
| author | Cameron Steffen <cam.steffen94@gmail.com> | 2025-08-07 14:10:59 -0500 |
|---|---|---|
| committer | Cameron Steffen <cam.steffen94@gmail.com> | 2025-08-08 15:01:01 -0500 |
| commit | 7670cdeb709b33cb7d57a7e2fdb790f50cbe6858 (patch) | |
| tree | 1bcacefc0b19d89e6ea7c64ae03c38174fd47582 /compiler/rustc_lint/src/lints.rs | |
| parent | 2886b36df4a646dd8d82fb65bf0c9d8d96c1f71a (diff) | |
| download | rust-7670cdeb709b33cb7d57a7e2fdb790f50cbe6858.tar.gz rust-7670cdeb709b33cb7d57a7e2fdb790f50cbe6858.zip | |
Refactor map_unit_fn lint
Diffstat (limited to 'compiler/rustc_lint/src/lints.rs')
| -rw-r--r-- | compiler/rustc_lint/src/lints.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/compiler/rustc_lint/src/lints.rs b/compiler/rustc_lint/src/lints.rs index ac6147b1631..73e69a1791a 100644 --- a/compiler/rustc_lint/src/lints.rs +++ b/compiler/rustc_lint/src/lints.rs @@ -902,9 +902,8 @@ pub(crate) struct MappingToUnit { pub argument_label: Span, #[label(lint_map_label)] pub map_label: Span, - #[suggestion(style = "verbose", code = "{replace}", applicability = "maybe-incorrect")] + #[suggestion(style = "verbose", code = "for_each", applicability = "maybe-incorrect")] pub suggestion: Span, - pub replace: String, } // internal.rs |
