Skip to content

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
Collaborator

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
@fee1-dead fee1-dead added the F-const_trait_impl `#![feature(const_trait_impl)]` label Jul 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
F-const_trait_impl `#![feature(const_trait_impl)]` 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