File tree 2 files changed +11
-11
lines changed
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::{
18
18
use std:: cell:: RefCell ;
19
19
use std:: ops:: Deref ;
20
20
21
- // Data shared between a "typeck root" and its nested bodies,
21
+ /// Data shared between a "typeck root" and its nested bodies,
22
22
/// e.g. closures defined within the function. For example:
23
23
/// ```ignore (illustrative)
24
24
/// fn foo() {
Original file line number Diff line number Diff line change @@ -33,16 +33,16 @@ use std::fmt;
33
33
/// as it would allow running a destructor on a place behind a reference:
34
34
///
35
35
/// ```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
+ /// }
46
46
/// ```
47
47
pub struct ElaborateDrops ;
48
48
You can’t perform that action at this time.
0 commit comments