-
Notifications
You must be signed in to change notification settings - Fork 154
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure subclasses gain destructors from supers.
Previously we didn't populate a destructor (Drop) trait for a synthesized subclass even if the superclass had a destructor. We should have done. The general problem of derived classes being unaware of their superclass destructors is #988. The present fix only applies to synthesized subclasses. As well as being incorrect, this also prevented subclasses gaining a make_unique method.
- Loading branch information
Showing
2 changed files
with
53 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters