Const generic equivalence check overrides diagnostic::on_unimplemented #134881
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
F-generic_const_exprs
`#![feature(generic_const_exprs)]`
requires-nightly
This issue requires a nightly compiler in some way.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Code
Current output
Desired output
Rationale and extra context
In the given example, the
A
does not implement the traitEquivalent<B>
and there is a custom#[diagnostic::on_unimplemented]
message. However, the diagnostic message is not shown, instead the mismatch betweentrue
andfalse
const generics in the implementation of the equivalence check is leaked.Other cases
Rust Version
Anything else?
https://play.rust-lang.org/?version=nightly&mode=debug&edition=2021&gist=eaf4f6a4a8d5336e43446dc1d0e9b575
The text was updated successfully, but these errors were encountered: