Add comment for the current retag situation
This commit is contained in:
parent
5696d06e22
commit
aaa35b3e48
1 changed files with 6 additions and 1 deletions
|
@ -114,8 +114,13 @@ pub trait ValueAnalysis<'tcx> {
|
||||||
// (A2)
|
// (A2)
|
||||||
state.flood_with(place.as_ref(), self.map(), Self::Value::bottom());
|
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::Nop
|
||||||
| StatementKind::Retag(..)
|
|
||||||
| StatementKind::FakeRead(..)
|
| StatementKind::FakeRead(..)
|
||||||
| StatementKind::Coverage(..)
|
| StatementKind::Coverage(..)
|
||||||
| StatementKind::AscribeUserType(..) => (),
|
| StatementKind::AscribeUserType(..) => (),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue