-
Notifications
You must be signed in to change notification settings - Fork 13.7k
Closed
Labels
A-const-evalArea: Constant evaluation, covers all const contexts (static, const fn, ...)Area: Constant evaluation, covers all const contexts (static, const fn, ...)T-langRelevant to the language teamRelevant to the language teamregression-from-stable-to-stablePerformance or correctness regression from one stable version to another.Performance or correctness regression from one stable version to another.
Description
uncommenting the drop impl in the following program causes it to not compile
struct Foo;
/*
impl Drop for Foo {
fn drop(&mut self) { }
}
*/
const fn new(_: Foo) { }
if the definition of Foo
were in another crate, adding that Drop
impl would break compilation of the crate with the const 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.
Metadata
Metadata
Assignees
Labels
A-const-evalArea: Constant evaluation, covers all const contexts (static, const fn, ...)Area: Constant evaluation, covers all const contexts (static, const fn, ...)T-langRelevant to the language teamRelevant to the language teamregression-from-stable-to-stablePerformance or correctness regression from one stable version to another.Performance or correctness regression from one stable version to another.