Skip to content

Replace #[default_method_body_is_const] with #[const_trait]#96964

Merged
bors merged 5 commits intorust-lang:masterfrom
oli-obk:const_trait_mvp
May 30, 2022
Merged

Replace #[default_method_body_is_const] with #[const_trait]#96964
bors merged 5 commits intorust-lang:masterfrom
oli-obk:const_trait_mvp

Conversation

@oli-obk
Copy link
Contributor

@oli-obk oli-obk commented May 12, 2022

pulled out of #96077

related issues: #67792 and #92158

cc @fee1-dead

This is groundwork to only allowing impl const Trait for traits that are marked with #[const_trait]. This is necessary to prevent adding a new default method from becoming a breaking change (as it could be a non-const fn).

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merged-by-bors This PR was explicitly merged by bors. perf-regression Performance regression. perf-regression-triaged The performance regression has been triaged. S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. T-libs Relevant to the library team, which will review and decide on the PR/issue. T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

10 participants