Skip to content

Commit 65c899e

Browse files
committed
Remove outdated documentation
1 parent 9f3b091 commit 65c899e

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/libsyntax/json.rs

+2-6
Original file line numberDiff line numberDiff 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>>,

0 commit comments

Comments
 (0)