Lines Matching refs:span
48 /// Attach a "help" note to your main message, the note will have it's own span on nightly.
55 /// The span is ignored on stable, the note effectively inherits its parent's (main message) span
58 /// Attach a note to your main message, the note will have it's own span on nightly.
65 /// The span is ignored on stable, the note effectively inherits its parent's (main message) span
104 /// Create a new diagnostic message that points to the `span`
105 pub fn spanned(span: Span, level: Level, message: String) -> Self {
108 first: span,
109 last: span,
118 pub fn span_error(self, span: Span, msg: String) -> Self {
121 first: span,
122 last: span,
128 /// Attach a "help" note to your main message, the note will have it's own span on nightly.
132 /// The span is ignored on stable, the note effectively inherits its parent's (main message) span
133 pub fn span_help(self, span: Span, msg: String) -> Self {
136 first: span,
137 last: span,
149 /// Attach a note to your main message, the note will have it's own span on nightly.
153 /// The span is ignored on stable, the note effectively inherits its parent's (main message) span
154 pub fn span_note(self, span: Span, msg: String) -> Self {
157 first: span,
158 last: span,
199 pub fn span_suggestion(self, span: Span, suggestion: &str, msg: String) -> Self {
201 "help" | "hint" => self.span_help(span, msg),
202 _ => self.span_note(span, msg),
299 Some(tt) => tt.span(),
328 let last = lit.span();