don't point at const usage site for resolution-time errors
also share the code that emits the actual error
This commit is contained in:
parent
89ac57db4d
commit
9ac8b363e3
47 changed files with 133 additions and 171 deletions
|
@ -239,13 +239,6 @@ pub struct LongRunningWarn {
|
|||
pub item_span: Span,
|
||||
}
|
||||
|
||||
#[derive(Diagnostic)]
|
||||
#[diag(const_eval_erroneous_constant)]
|
||||
pub(crate) struct ErroneousConstUsed {
|
||||
#[primary_span]
|
||||
pub span: Span,
|
||||
}
|
||||
|
||||
#[derive(Subdiagnostic)]
|
||||
#[note(const_eval_non_const_impl)]
|
||||
pub(crate) struct NonConstImplNote {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue