better error for rustc_strict_coherence misuse
This commit is contained in:
@@ -55,3 +55,12 @@ pub struct ConstEvalNonIntError {
|
||||
#[primary_span]
|
||||
pub span: Span,
|
||||
}
|
||||
|
||||
#[derive(Diagnostic)]
|
||||
#[diag(middle_strict_coherence_needs_negative_coherence)]
|
||||
pub(crate) struct StrictCoherenceNeedsNegativeCoherence {
|
||||
#[primary_span]
|
||||
pub span: Span,
|
||||
#[label]
|
||||
pub attr_span: Option<Span>,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user