Skip to content

Commit cb33f95

Browse files
committed
remove what seems to be an outdated comment
Even in the PR that introduced this comment, it does not seem like these locals are actually ignored -- just their `source_info` is adjusted: https://github.com/rust-lang/rust/pull/44700/files#diff-ae2f3c7e2f9744f7ef43e96072b10e98d4e3fe74a3a399a3ad8a810fbe56c520R139
1 parent 94332bb commit cb33f95

File tree

1 file changed

+0
-3
lines changed
  • compiler/rustc_middle/src/mir

1 file changed

+0
-3
lines changed

compiler/rustc_middle/src/mir/mod.rs

-3
Original file line numberDiff line numberDiff line change
@@ -821,9 +821,6 @@ pub struct LocalDecl<'tcx> {
821821
/// flag drop flags to avoid triggering this check as they are introduced
822822
/// after typeck.
823823
///
824-
/// Unsafety checking will also ignore dereferences of these locals,
825-
/// so they can be used for raw pointers only used in a desugaring.
826-
///
827824
/// This should be sound because the drop flags are fully algebraic, and
828825
/// therefore don't affect the OIBIT or outlives properties of the
829826
/// generator.

0 commit comments

Comments
 (0)