-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
regression: can't compare X
with _
in const contexts
#100543
Comments
searched nightlies: from nightly-2022-04-01 to nightly-2022-08-11 bisected with cargo-bisect-rustc v0.6.3Host triple: x86_64-unknown-linux-gnu cargo bisect-rustc --start=2022-04-01 -- build This regressed in #99704 cc @fee1-dead |
Maybe "regressed" is better here, maybe it's a legitimate reason to fail. Haven't looked into it. |
I'm going to look into this later, but it seems like a case of wf checks requiring const bounds. |
Repro: #[derive(PartialEq)]
struct S;
const FOO: fn(&S, &S) -> bool = S::eq; |
Just to be sure I understood: is the regression about code that should compile in the next Rust 1.64 or is that code now invalid code and the regression is just a bad diagnostic? thanks! |
@apiraino The code is valid. It should compile in the next Rust 1.64. Hope that helps. |
WG-prioritization assigning priority (Zulip discussion). @rustbot label -I-prioritize +P-medium |
…it, r=oli-obk Fix two const_trait_impl issues r? `@oli-obk` Fixes rust-lang#100222. Fixes rust-lang#100543.
Found in crater:
The text was updated successfully, but these errors were encountered: