Add comment for the current retag situation

This commit is contained in:
Jannis Christopher Köhl 2022-10-12 23:46:31 +02:00
parent 5696d06e22
commit aaa35b3e48

View File

@ -114,8 +114,13 @@ pub trait ValueAnalysis<'tcx> {
// (A2)
state.flood_with(place.as_ref(), self.map(), Self::Value::bottom());
}
StatementKind::Retag(..) => {
// A retag modifies the provenance of references. Currently references are only
// tracked if `-Zunsound-mir-opts` is given, but this might change in the future.
// However, it is still unclear how retags should be handled:
// https://github.com/rust-lang/rust/pull/101168#discussion_r985304895
}
StatementKind::Nop
| StatementKind::Retag(..)
| StatementKind::FakeRead(..)
| StatementKind::Coverage(..)
| StatementKind::AscribeUserType(..) => (),