Skip to content

Commit 5109a8a

Browse files
[missing_const_for_fn] fix #7121
1 parent 82d71b1 commit 5109a8a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

clippy_lints/src/missing_const_for_fn.rs

+1
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ declare_clippy_lint! {
4141
/// can't be const as it calls a non-const function. Making `a` const and running Clippy again,
4242
/// will suggest to make `b` const, too.
4343
///
44+
/// If you are marking public function with const, doing opposite will break API compatibility.
4445
/// ### Example
4546
/// ```rust
4647
/// # struct Foo {

0 commit comments

Comments
 (0)