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

Trait Solver 5 works in nightly #55

Open
tkr-sh opened this issue Dec 18, 2024 · 1 comment · May be fixed by #57
Open

Trait Solver 5 works in nightly #55

tkr-sh opened this issue Dec 18, 2024 · 1 comment · May be fixed by #57

Comments

@tkr-sh
Copy link
Contributor

tkr-sh commented Dec 18, 2024

Hello!
The trait solver 5 works in nightly, I don't know which feature makes that possible tho. Maybe it should be precised ?

$ cargo +nightly run
warning: trait `Super` is never used
 --> src/main.rs:1:7
  |
1 | trait Super {}
  |       ^^^^^
  |
  = note: `#[warn(dead_code)]` on by default

warning: trait `Sub` is never used
 --> src/main.rs:2:7
  |
2 | trait Sub<T>: Super {}
  |       ^^^

warning: trait `Overlap` is never used
 --> src/main.rs:6:7
  |
6 | trait Overlap<T> {}
  |       ^^^^^^^

warning: `_` (bin "_") generated 3 warnings
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.00s
     Running `target/debug/_`

Really nice problem tho!

@BoxyUwU
Copy link
Owner

BoxyUwU commented Dec 19, 2024

I believe this was made to compiler as part of -Znext-solver=coherence stabilization.

@BoxyUwU BoxyUwU linked a pull request Dec 19, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants