File tree 1 file changed +6
-0
lines changed
1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -120,6 +120,9 @@ impl Diagnostic {
120
120
}
121
121
122
122
/// Adds a span/label to be included in the resulting snippet.
123
+ /// This label will be shown together with the original span/label used when creating the
124
+ /// diagnostic, *not* a span added by one of the `span_*` methods.
125
+ ///
123
126
/// This is pushed onto the `MultiSpan` that was created when the
124
127
/// diagnostic was first built. If you don't call this function at
125
128
/// all, and you just supplied a `Span` to create the diagnostic,
@@ -196,6 +199,7 @@ impl Diagnostic {
196
199
self
197
200
}
198
201
202
+ /// Prints the span with a note above it.
199
203
pub fn span_note < S : Into < MultiSpan > > ( & mut self ,
200
204
sp : S ,
201
205
msg : & str )
@@ -209,6 +213,7 @@ impl Diagnostic {
209
213
self
210
214
}
211
215
216
+ /// Prints the span with a warn above it.
212
217
pub fn span_warn < S : Into < MultiSpan > > ( & mut self ,
213
218
sp : S ,
214
219
msg : & str )
@@ -222,6 +227,7 @@ impl Diagnostic {
222
227
self
223
228
}
224
229
230
+ /// Prints the span with some help above it.
225
231
pub fn span_help < S : Into < MultiSpan > > ( & mut self ,
226
232
sp : S ,
227
233
msg : & str )
You can’t perform that action at this time.
0 commit comments