1
Fork 0

use proper spans

This commit is contained in:
Boxy 2022-10-27 22:18:26 +01:00
parent c00ff9c4d0
commit ca5a6e43dd
7 changed files with 54 additions and 28 deletions

View file

@ -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: (),
}