mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-23 21:23:56 +00:00
[missing_const_for_fn] fix #7121
This commit is contained in:
parent
82d71b1b3a
commit
5109a8a840
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 public function with const, doing opposite will break API compatibility.
|
||||
/// ### Example
|
||||
/// ```rust
|
||||
/// # struct Foo {
|
||||
|
|
Loading…
Reference in a new issue