Add note about elaborate_drops::InitializationData

This commit is contained in:
Dylan MacKenzie 2020-01-21 14:01:32 -08:00
parent 5860e78ce9
commit 168ca9a325

View File

@ -284,6 +284,9 @@ fn param_env(&self) -> ty::ParamEnv<'tcx> {
self.env.param_env
}
// FIXME(ecstaticmorse): This duplicates `dataflow::ResultsCursor` but hardcodes the transfer
// function for `Maybe{Un,}InitializedPlaces` directly. It should be replaced by a a pair of
// `ResultsCursor`s.
fn initialization_data_at(&self, loc: Location) -> InitializationData {
let mut data = InitializationData {
live: self.flow_inits.entry_set_for_block(loc.block).to_owned(),