about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-07-05 14:18:28 +0000
committerbors <bors@rust-lang.org>2024-07-05 14:18:28 +0000
commit9a21ac8e7efe9ea26a8065d0959a976ca32039bb (patch)
tree1774c65b799f8124474201cebc46b42a2e5c387c
parent11dd90f7613a4b160ed8398a3f1c7c129ad1a372 (diff)
parentf763d621494d2f6358c3e774596468275e6ad046 (diff)
downloadrust-9a21ac8e7efe9ea26a8065d0959a976ca32039bb.tar.gz
rust-9a21ac8e7efe9ea26a8065d0959a976ca32039bb.zip
Auto merge of #127365 - aDotInTheVoid:compiler-doc-comments, r=Nilstrieb
Fix a few doc comment for compiler-interal API docs.

They only used `//` instead of `///` so weren't picked up by rustdoc.

r? `@Nilstrieb`
-rw-r--r--compiler/rustc_hir_typeck/src/typeck_root_ctxt.rs2
-rw-r--r--compiler/rustc_mir_transform/src/elaborate_drops.rs20
2 files changed, 11 insertions, 11 deletions
diff --git a/compiler/rustc_hir_typeck/src/typeck_root_ctxt.rs b/compiler/rustc_hir_typeck/src/typeck_root_ctxt.rs
index b6e9000ef95..c99e8a7fe8e 100644
--- a/compiler/rustc_hir_typeck/src/typeck_root_ctxt.rs
+++ b/compiler/rustc_hir_typeck/src/typeck_root_ctxt.rs
@@ -18,7 +18,7 @@ use rustc_trait_selection::traits::{
 use std::cell::RefCell;
 use std::ops::Deref;
 
-// Data shared between a "typeck root" and its nested bodies,
+/// Data shared between a "typeck root" and its nested bodies,
 /// e.g. closures defined within the function. For example:
 /// ```ignore (illustrative)
 /// fn foo() {
diff --git a/compiler/rustc_mir_transform/src/elaborate_drops.rs b/compiler/rustc_mir_transform/src/elaborate_drops.rs
index fbbb8c5e472..25bebb0539a 100644
--- a/compiler/rustc_mir_transform/src/elaborate_drops.rs
+++ b/compiler/rustc_mir_transform/src/elaborate_drops.rs
@@ -33,16 +33,16 @@ use std::fmt;
 /// as it would allow running a destructor on a place behind a reference:
 ///
 /// ```text
-// fn drop_term<T>(t: &mut T) {
-//     mir! {
-//         {
-//             Drop(*t, exit)
-//         }
-//         exit = {
-//             Return()
-//         }
-//     }
-// }
+/// fn drop_term<T>(t: &mut T) {
+///     mir! {
+///         {
+///             Drop(*t, exit)
+///         }
+///         exit = {
+///             Return()
+///         }
+///     }
+/// }
 /// ```
 pub struct ElaborateDrops;