about summary refs log tree commit diff
diff options
context:
space:
mode:
authorOliver Schneider <git-spam-no-reply9815368754983@oli-obk.de>2017-11-03 12:37:11 +0100
committerOliver Schneider <git-spam-no-reply9815368754983@oli-obk.de>2017-11-03 12:37:11 +0100
commit65c899edfe889118af594c37d16e93f6c4b194f6 (patch)
tree460393e55d5ff907bb2e91f768c801a0ec29a881
parent9f3b09116b742b2606dc5f36f9145e0c89e4010b (diff)
downloadrust-65c899edfe889118af594c37d16e93f6c4b194f6.tar.gz
rust-65c899edfe889118af594c37d16e93f6c4b194f6.zip
Remove outdated documentation
-rw-r--r--src/libsyntax/json.rs8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/libsyntax/json.rs b/src/libsyntax/json.rs
index 31fe0c234e8..a304173f36d 100644
--- a/src/libsyntax/json.rs
+++ b/src/libsyntax/json.rs
@@ -85,9 +85,7 @@ struct Diagnostic {
     spans: Vec<DiagnosticSpan>,
     /// Associated diagnostic messages.
     children: Vec<Diagnostic>,
-    /// The message as rustc would render it. Currently this is only
-    /// `Some` for "suggestions", but eventually it will include all
-    /// snippets.
+    /// The message as rustc would render it. Currently this is always `None`
     rendered: Option<String>,
 }
 
@@ -110,9 +108,7 @@ struct DiagnosticSpan {
     /// Label that should be placed at this location (if any)
     label: Option<String>,
     /// If we are suggesting a replacement, this will contain text
-    /// that should be sliced in atop this span. You may prefer to
-    /// load the fully rendered version from the parent `Diagnostic`,
-    /// however.
+    /// that should be sliced in atop this span.
     suggested_replacement: Option<String>,
     /// Macro invocations that created the code at this span, if any.
     expansion: Option<Box<DiagnosticSpanMacroExpansion>>,