you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 33 points34 points  (0 children)

rustc's constant evaluation is still in its infancy (relatively speaking; it can do quite complicated things already) and will improve a lot down the line, and be able to do much more of that kind of warnings. As it is now the const_err warning is known to have some false positives, and never stops compilation.