mirror of
https://github.com/rust-lang/rust-clippy
synced 2025-02-17 14:38:46 +00:00
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
This commit is contained in:
commit
015fb8a9e3
1 changed files with 1 additions and 0 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Reference in a new issue