let citation = format!("for more information, see {}",
future_incompatible.reference);
if let Some(sp) = span {
- err.span_warn(sp, &explanation);
- err.span_note(sp, &citation);
+ err.fileline_warn(sp, &explanation);
+ err.fileline_note(sp, &citation);
} else {
err.warn(&explanation);
err.note(&citation);
self.sub(Level::Note, msg, Some(sp), Some(EndSpan(sp)));
self
}
+ pub fn fileline_warn(&mut self ,
+ sp: Span,
+ msg: &str)
+ -> &mut DiagnosticBuilder<'a> {
+ self.sub(Level::Warning, msg, Some(sp), Some(FileLine(sp)));
+ self
+ }
pub fn fileline_note(&mut self ,
sp: Span,
msg: &str)