Skip to content

Commit 8e25725

Browse files
Explicitly mention perf tradeoff with more precise analysis
1 parent 0365205 commit 8e25725

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

posts/inside-rust/2019-11-23-const-if-match.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -155,8 +155,9 @@ Even though the `Vec` created by `Vec::new` will never actually be dropped
155155
inside the `const fn`, we don't detect that all fields of `tuple` have been moved
156156
out of, and thus conservatively assume that the drop impl for `tuple` will run.
157157
While this particular case is trivial, there are other, more complex ones that
158-
would require a more expensive solution. It is an open question how precise we
159-
want to be here.
158+
would require a more comprehensive solution. It is an open question how precise
159+
we want to be here, since more precision means longer compile times, even for
160+
users that have no need for more expressiveness.
160161

161162
[`const-eval`]: https://github.com/rust-lang/const-eval
162163
[drop]: https://github.com/rust-lang/const-eval/blob/master/static.md#drop

0 commit comments

Comments
 (0)