-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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
Revert compute_const
changes in WF
#68977
Comments
I was trying something out to show @ruabmbua their idea can't work yet and accidentally came up with something that compiles even if it shouldn't. I'm pretty sure it's because of this bug. |
Extended example: https://play.rust-lang.org/?version=nightly&mode=debug&edition=2018&gist=aa9afdff6a2f23a8f0cc588fdafe4c17 It would be nice, if is possible to build something like that. Even, if it`s not exactly the same. |
Assigning to myself so I don't forget, but I'm not sure I'll be able to get to this very soon, so if someone else wants to take it, you're welcome to. |
WF is also missing something like this for rust/src/librustc_trait_selection/traits/wf.rs Lines 556 to 593 in 3c6f982
Fixing this might require The other problem is this needs to add rust/src/librustc_typeck/check/mod.rs Lines 3341 to 3348 in 3c6f982
|
@rustbot claim |
See https://github.com/rust-lang/rust/pull/56723/files/03b892860da5aff7a10cf4ca1364dbcacb95bfcd#r376641987. Opening this issue so I don't forget about it.
cc @eddyb
This issue has been assigned to @lcnr via this comment.
The text was updated successfully, but these errors were encountered: