We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6d8080e commit 101d96dCopy full SHA for 101d96d
clippy_lints/src/missing_const_for_fn.rs
@@ -15,9 +15,7 @@ use syntax_pos::Span;
15
///
16
/// **Why is this bad?**
17
18
-/// Not using `const` is a missed optimization. Instead of having the function execute at runtime,
19
-/// when using `const`, it's evaluated at compiletime. The result of the evaluation is inlined
20
-/// during compilation and doesn't have to be recomputed during runtime.
+/// Not having the function const prevents callers of the function from being const as well.
21
22
/// **Known problems:**
23
0 commit comments