1
Fork 0
This commit is contained in:
Ralf Jung 2018-11-02 11:24:36 +01:00
parent 91cad39614
commit 0d596f29d9

View file

@ -317,7 +317,7 @@ pub trait ValueVisitor<'a, 'mir, 'tcx: 'mir+'a, M: Machine<'a, 'mir, 'tcx>>: Siz
self.visit_union(v)?; self.visit_union(v)?;
}, },
layout::FieldPlacement::Arbitrary { ref offsets, .. } => { layout::FieldPlacement::Arbitrary { ref offsets, .. } => {
// We collect in a vec because otherwise there are lifetime errors: // FIXME: We collect in a vec because otherwise there are lifetime errors:
// Projecting to a field needs (mutable!) access to `ecx`. // Projecting to a field needs (mutable!) access to `ecx`.
let fields: Vec<EvalResult<'tcx, Self::V>> = let fields: Vec<EvalResult<'tcx, Self::V>> =
(0..offsets.len()).map(|i| { (0..offsets.len()).map(|i| {