Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Param in desugaring method ~const bounds as effects #128781

Closed
wants to merge 1 commit into from

Conversation

fee1-dead
Copy link
Member

still a bit WIP. This should help with the interaction of super trait implied bounds and using those in const fn.

r? project-const-traits

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. 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. labels Aug 7, 2024
@fee1-dead
Copy link
Member Author

I believe we might still end up taking a slightly different approach that unifies

pub trait Foo: Bar {
    type Effects: TyCompat<<Self as Bar>::Effects>
}

with

pub fn foo<const RUNTIME: bool, T: Foo>() where Param<RUNTIME>: TyCompat<<T as Bar>::Effects> {}

to imply that T can be safely used as Bar inside the function as well.

@compiler-errors compiler-errors added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Aug 10, 2024
@bors
Copy link
Contributor

bors commented Aug 25, 2024

☔ The latest upstream changes (presumably #129521) made this pull request unmergeable. Please resolve the merge conflicts.

@fee1-dead fee1-dead closed this Sep 30, 2024
@fee1-dead fee1-dead deleted the fx-param branch September 30, 2024 15:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. 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.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants