mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-29 10:13:54 +00:00
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`
This commit is contained in:
commit
9a21ac8e7e
@ -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() {
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user