about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-04-09 18:49:52 +0000
committerbors <bors@rust-lang.org>2023-04-09 18:49:52 +0000
commit015fb8a9e33fccf8aa1e53a33f187940a845016f (patch)
tree27870813a8e07281c602b584e37d8406ed86c903
parent7de7ca802ed1eff6963685b6d036b492b2f75478 (diff)
parentba1f19ee3087f6c47a4ba0f06b21361e1d38d90f (diff)
downloadrust-015fb8a9e33fccf8aa1e53a33f187940a845016f.tar.gz
rust-015fb8a9e33fccf8aa1e53a33f187940a845016f.zip
Auto merge of #10618 - KisaragiEffective:patch-2, r=llogiq
[missing_const_for_fn] fix #7121

*Please write a short comment explaining your change (or "none" for internal only changes)*

changelog: [`missing_const_for_fn`] note about removing const may break compatibility

fix #7121
-rw-r--r--clippy_lints/src/missing_const_for_fn.rs1
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..f1831a30461 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 a public function with `const`, removing it again will break API compatibility.
     /// ### Example
     /// ```rust
     /// # struct Foo {