Adding a Drop
impl to a type is a breaking change
#58379
Labels
A-const-eval
Area: Constant evaluation, covers all const contexts (static, const fn, ...)
regression-from-stable-to-stable
Performance or correctness regression from one stable version to another.
T-lang
Relevant to the language team, which will review and decide on the PR/issue.
uncommenting the drop impl in the following program causes it to not compile
if the definition of
Foo
were in another crate, adding thatDrop
impl would break compilation of the crate with theconst fn
.cc @Centril
I don't think adding a drop impl was a breaking change before
const fn
. But maybe I just can't come up with an example.The text was updated successfully, but these errors were encountered: