Skip to content

Commit aaa35b3

Browse files
committed
Add comment for the current retag situation
1 parent 5696d06 commit aaa35b3

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

compiler/rustc_mir_dataflow/src/value_analysis.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,13 @@ pub trait ValueAnalysis<'tcx> {
114114
// (A2)
115115
state.flood_with(place.as_ref(), self.map(), Self::Value::bottom());
116116
}
117+
StatementKind::Retag(..) => {
118+
// A retag modifies the provenance of references. Currently references are only
119+
// tracked if `-Zunsound-mir-opts` is given, but this might change in the future.
120+
// However, it is still unclear how retags should be handled:
121+
// https://github.com/rust-lang/rust/pull/101168#discussion_r985304895
122+
}
117123
StatementKind::Nop
118-
| StatementKind::Retag(..)
119124
| StatementKind::FakeRead(..)
120125
| StatementKind::Coverage(..)
121126
| StatementKind::AscribeUserType(..) => (),

0 commit comments

Comments
 (0)