File tree Expand file tree Collapse file tree 2 files changed +11
-11
lines changed Expand file tree Collapse file tree 2 files changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ use rustc_trait_selection::traits::{
1818use std:: cell:: RefCell ;
1919use 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() {
Original file line number Diff line number Diff 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/// ```
4747pub struct ElaborateDrops ;
4848
You can’t perform that action at this time.
0 commit comments