use proper spans
This commit is contained in:
parent
c00ff9c4d0
commit
ca5a6e43dd
7 changed files with 54 additions and 28 deletions
|
@ -1,7 +1,7 @@
|
|||
//! Errors emitted by `rustc_hir_analysis`.
|
||||
|
||||
use rustc_errors::IntoDiagnostic;
|
||||
use rustc_errors::{error_code, Applicability, DiagnosticBuilder, ErrorGuaranteed, Handler};
|
||||
use rustc_errors::{IntoDiagnostic, MultiSpan};
|
||||
use rustc_macros::{Diagnostic, LintDiagnostic};
|
||||
use rustc_middle::ty::Ty;
|
||||
use rustc_span::{symbol::Ident, Span, Symbol};
|
||||
|
@ -275,5 +275,7 @@ pub struct ConstBoundForNonConstTrait {
|
|||
#[diag(hir_analysis_self_in_impl_self)]
|
||||
pub struct SelfInImplSelf {
|
||||
#[primary_span]
|
||||
pub span: Span,
|
||||
pub span: MultiSpan,
|
||||
#[note]
|
||||
pub note: (),
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue