File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -85,9 +85,7 @@ struct Diagnostic {
8585 spans : Vec < DiagnosticSpan > ,
8686 /// Associated diagnostic messages.
8787 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`
9189 rendered : Option < String > ,
9290}
9391
@@ -110,9 +108,7 @@ struct DiagnosticSpan {
110108 /// Label that should be placed at this location (if any)
111109 label : Option < String > ,
112110 /// 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.
116112 suggested_replacement : Option < String > ,
117113 /// Macro invocations that created the code at this span, if any.
118114 expansion : Option < Box < DiagnosticSpanMacroExpansion > > ,
You can’t perform that action at this time.
0 commit comments