Skip to content

Commit 015fb8a

Browse files
committed
Auto merge of rust-lang#10618 - KisaragiEffective:patch-2, r=llogiq
[missing_const_for_fn] fix rust-lang#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 rust-lang#7121
2 parents 7de7ca8 + ba1f19e commit 015fb8a

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 a public function with `const`, removing it again will break API compatibility.
4445
/// ### Example
4546
/// ```rust
4647
/// # struct Foo {

0 commit comments

Comments
 (0)