moved note as unspanned note, moved note to the bottom of the msg
This commit is contained in:
parent
e6e8892051
commit
a54a66830d
47 changed files with 54 additions and 244 deletions
|
@ -46,7 +46,6 @@ pub struct CycleUsage {
|
|||
#[derive(Diagnostic)]
|
||||
#[diag(query_system_cycle, code = "E0391")]
|
||||
pub struct Cycle {
|
||||
#[note]
|
||||
#[primary_span]
|
||||
pub span: Span,
|
||||
pub stack_bottom: String,
|
||||
|
@ -58,6 +57,8 @@ pub struct Cycle {
|
|||
pub alias: Option<Alias>,
|
||||
#[subdiagnostic]
|
||||
pub cycle_usage: Option<CycleUsage>,
|
||||
#[note]
|
||||
pub note_span: (),
|
||||
}
|
||||
|
||||
#[derive(Diagnostic)]
|
||||
|
|
|
@ -607,6 +607,7 @@ pub(crate) fn report_cycle<'a, D: DepKind>(
|
|||
alias,
|
||||
cycle_usage: cycle_usage,
|
||||
stack_count,
|
||||
note_span: (),
|
||||
};
|
||||
|
||||
cycle_diag.into_diagnostic(&sess.parse_sess.span_diagnostic)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue