@@ -20,8 +20,8 @@ use tracing::{debug, instrument};
2020use crate :: deref_separator:: deref_finder;
2121
2222/// 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.
2525/// In general, the compiler cannot determine at compile time whether a destructor will run or not.
2626///
2727/// 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;
3030/// Once this is complete, Drop terminators in the MIR correspond to a call to the "drop glue" or
3131/// "drop shim" for the type of the dropped place.
3232///
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:
3737///
3838/// ```text
3939/// fn drop_term<T>(t: &mut T) {
@@ -377,8 +377,8 @@ impl<'a, 'tcx> ElaborateDropsCtxt<'a, 'tcx> {
377377 ) ;
378378 }
379379 // 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.
382382 assert ! ( !data. is_cleanup) ;
383383 }
384384 }
0 commit comments