Skip to content

Commit fc98c5a

Browse files
committed
update comment
1 parent 8404358 commit fc98c5a

File tree

1 file changed

+3
-7
lines changed
  • compiler/rustc_borrowck/src/type_check/liveness

1 file changed

+3
-7
lines changed

Diff for: compiler/rustc_borrowck/src/type_check/liveness/trace.rs

+3-7
Original file line numberDiff line numberDiff line change
@@ -164,13 +164,9 @@ impl<'me, 'typeck, 'flow, 'tcx> LivenessResults<'me, 'typeck, 'flow, 'tcx> {
164164
/// Runs dropck for locals whose liveness isn't relevant. This is
165165
/// necessary to eagerly detect unbound recursion during drop glue computation.
166166
///
167-
/// These locals should not result in any liveness constraints given that they
168-
/// should otherwise not be considered boring and get dropped. This is currently
169-
/// not the case due to mismatches between `Ty::needs_drop` and `compute_drop_data`.
170-
/// See #110288 and RFC 3417 for more details.
171-
///
172-
/// FIXME: Assert that the returned liveness constraints are empty once these
173-
/// inconsistencies are fixed.
167+
/// These are all the locals which do not potentially reference a region local
168+
/// to this body. Locals which only reference free regions are always drop-live
169+
/// and can therefore safely be dropped.
174170
fn dropck_boring_locals(&mut self, boring_locals: Vec<Local>) {
175171
for local in boring_locals {
176172
let local_ty = self.cx.body.local_decls[local].ty;

0 commit comments

Comments
 (0)