Skip to content

Commit f763d62

Browse files
committed
Fix a few doc comment for compiler-interal API docs.
They only used `//` instead of `///` so weren't picked up by rustdoc.
1 parent 11dd90f commit f763d62

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

compiler/rustc_hir_typeck/src/typeck_root_ctxt.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ use rustc_trait_selection::traits::{
1818
use std::cell::RefCell;
1919
use std::ops::Deref;
2020

21-
// Data shared between a "typeck root" and its nested bodies,
21+
/// Data shared between a "typeck root" and its nested bodies,
2222
/// e.g. closures defined within the function. For example:
2323
/// ```ignore (illustrative)
2424
/// fn foo() {

compiler/rustc_mir_transform/src/elaborate_drops.rs

+10-10
Original file line numberDiff line numberDiff line change
@@ -33,16 +33,16 @@ use std::fmt;
3333
/// as it would allow running a destructor on a place behind a reference:
3434
///
3535
/// ```text
36-
// fn drop_term<T>(t: &mut T) {
37-
// mir! {
38-
// {
39-
// Drop(*t, exit)
40-
// }
41-
// exit = {
42-
// Return()
43-
// }
44-
// }
45-
// }
36+
/// fn drop_term<T>(t: &mut T) {
37+
/// mir! {
38+
/// {
39+
/// Drop(*t, exit)
40+
/// }
41+
/// exit = {
42+
/// Return()
43+
/// }
44+
/// }
45+
/// }
4646
/// ```
4747
pub struct ElaborateDrops;
4848

0 commit comments

Comments
 (0)