File tree 1 file changed +2
-6
lines changed
1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -85,9 +85,7 @@ struct Diagnostic {
85
85
spans : Vec < DiagnosticSpan > ,
86
86
/// Associated diagnostic messages.
87
87
children : Vec < Diagnostic > ,
88
- /// The message as rustc would render it. Currently this is only
89
- /// `Some` for "suggestions", but eventually it will include all
90
- /// snippets.
88
+ /// The message as rustc would render it. Currently this is always `None`
91
89
rendered : Option < String > ,
92
90
}
93
91
@@ -110,9 +108,7 @@ struct DiagnosticSpan {
110
108
/// Label that should be placed at this location (if any)
111
109
label : Option < String > ,
112
110
/// If we are suggesting a replacement, this will contain text
113
- /// that should be sliced in atop this span. You may prefer to
114
- /// load the fully rendered version from the parent `Diagnostic`,
115
- /// however.
111
+ /// that should be sliced in atop this span.
116
112
suggested_replacement : Option < String > ,
117
113
/// Macro invocations that created the code at this span, if any.
118
114
expansion : Option < Box < DiagnosticSpanMacroExpansion > > ,
You can’t perform that action at this time.
0 commit comments