diff options
| author | Kisaragi <48310258+KisaragiEffective@users.noreply.github.com> | 2023-04-10 00:55:32 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-04-10 00:55:32 +0900 |
| commit | 5109a8a840bab0db9909a9ea3237987de45b28be (patch) | |
| tree | e713bf7467c64355b2c6d4c3c3368ee19387dfe2 | |
| parent | 82d71b1b3acf31d688788d83a88acd91b78790c6 (diff) | |
| download | rust-5109a8a840bab0db9909a9ea3237987de45b28be.tar.gz rust-5109a8a840bab0db9909a9ea3237987de45b28be.zip | |
[missing_const_for_fn] fix #7121
| -rw-r--r-- | clippy_lints/src/missing_const_for_fn.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clippy_lints/src/missing_const_for_fn.rs b/clippy_lints/src/missing_const_for_fn.rs index 87bd007a26a..0cde9cb08f8 100644 --- a/clippy_lints/src/missing_const_for_fn.rs +++ b/clippy_lints/src/missing_const_for_fn.rs @@ -41,6 +41,7 @@ declare_clippy_lint! { /// can't be const as it calls a non-const function. Making `a` const and running Clippy again, /// will suggest to make `b` const, too. /// + /// If you are marking public function with const, doing opposite will break API compatibility. /// ### Example /// ```rust /// # struct Foo { |
