about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAlexey Shmalko <rasen.dubi@gmail.com>2019-04-17 12:03:39 +0300
committerAlexey Shmalko <rasen.dubi@gmail.com>2019-04-17 12:03:39 +0300
commit56c01255686ea66e04835447aa3971fd0d9807f5 (patch)
treec14bcbb4ebbc4231b8baca423a5bee61d1365d57
parent7bf33f00bf4ece4a98c6ea5d8bb9331f2445004b (diff)
downloadrust-56c01255686ea66e04835447aa3971fd0d9807f5.tar.gz
rust-56c01255686ea66e04835447aa3971fd0d9807f5.zip
Promote regular comments to rustdoc comments
-rw-r--r--src/librustc_errors/lib.rs12
-rw-r--r--src/librustc_macros/src/query.rs2
2 files changed, 7 insertions, 7 deletions
diff --git a/src/librustc_errors/lib.rs b/src/librustc_errors/lib.rs
index cb45e13c4d2..7da1a652553 100644
--- a/src/librustc_errors/lib.rs
+++ b/src/librustc_errors/lib.rs
@@ -304,17 +304,17 @@ pub struct Handler {
     continue_after_error: AtomicBool,
     delayed_span_bugs: Lock<Vec<Diagnostic>>,
 
-    // This set contains the `DiagnosticId` of all emitted diagnostics to avoid
-    // emitting the same diagnostic with extended help (`--teach`) twice, which
-    // would be uneccessary repetition.
+    /// This set contains the `DiagnosticId` of all emitted diagnostics to avoid
+    /// emitting the same diagnostic with extended help (`--teach`) twice, which
+    /// would be uneccessary repetition.
     taught_diagnostics: Lock<FxHashSet<DiagnosticId>>,
 
     /// Used to suggest rustc --explain <error code>
     emitted_diagnostic_codes: Lock<FxHashSet<DiagnosticId>>,
 
-    // This set contains a hash of every diagnostic that has been emitted by
-    // this handler. These hashes is used to avoid emitting the same error
-    // twice.
+    /// This set contains a hash of every diagnostic that has been emitted by
+    /// this handler. These hashes is used to avoid emitting the same error
+    /// twice.
     emitted_diagnostics: Lock<FxHashSet<u128>>,
 }
 
diff --git a/src/librustc_macros/src/query.rs b/src/librustc_macros/src/query.rs
index e4a6dfcd4e8..8eacbfbacce 100644
--- a/src/librustc_macros/src/query.rs
+++ b/src/librustc_macros/src/query.rs
@@ -55,7 +55,7 @@ enum QueryModifier {
     /// Generate a dep node based on the dependencies of the query
     Anon,
 
-    // Always evaluate the query, ignoring its depdendencies
+    /// Always evaluate the query, ignoring its depdendencies
     EvalAlways,
 }