@@ -20,8 +20,8 @@ use tracing::{debug, instrument};
20
20
use crate :: deref_separator:: deref_finder;
21
21
22
22
/// During MIR building, Drop terminators are inserted in every place where a drop may occur.
23
- /// However, in this phase, the presence of these terminators does not guarantee that a destructor will run,
24
- /// as the target of the drop may be uninitialized.
23
+ /// However, in this phase, the presence of these terminators does not guarantee that a destructor
24
+ /// will run, as the target of the drop may be uninitialized.
25
25
/// In general, the compiler cannot determine at compile time whether a destructor will run or not.
26
26
///
27
27
/// At a high level, this pass refines Drop to only run the destructor if the
@@ -30,10 +30,10 @@ use crate::deref_separator::deref_finder;
30
30
/// Once this is complete, Drop terminators in the MIR correspond to a call to the "drop glue" or
31
31
/// "drop shim" for the type of the dropped place.
32
32
///
33
- /// This pass relies on dropped places having an associated move path, which is then used to determine
34
- /// the initialization status of the place and its descendants.
35
- /// It's worth noting that a MIR containing a Drop without an associated move path is probably ill formed,
36
- /// as it would allow running a destructor on a place behind a reference:
33
+ /// This pass relies on dropped places having an associated move path, which is then used to
34
+ /// determine the initialization status of the place and its descendants.
35
+ /// It's worth noting that a MIR containing a Drop without an associated move path is probably ill
36
+ /// formed, as it would allow running a destructor on a place behind a reference:
37
37
///
38
38
/// ```text
39
39
/// fn drop_term<T>(t: &mut T) {
@@ -377,8 +377,8 @@ impl<'a, 'tcx> ElaborateDropsCtxt<'a, 'tcx> {
377
377
) ;
378
378
}
379
379
// A drop and replace behind a pointer/array/whatever.
380
- // The borrow checker requires that these locations are initialized before the assignment,
381
- // so we just leave an unconditional drop.
380
+ // The borrow checker requires that these locations are initialized before the
381
+ // assignment, so we just leave an unconditional drop.
382
382
assert ! ( !data. is_cleanup) ;
383
383
}
384
384
}
0 commit comments