提交 d523acb4 编写于 作者: F Flavio Percoco

Use a Vec<N> instead of VecPerParamSpace<N>

上级 4b09209e
......@@ -265,7 +265,7 @@ pub struct VtableImplData<'tcx, N> {
#[derive(Debug,Clone)]
pub struct VtableDefaultTraitData<N> {
pub trait_def_id: ast::DefId,
pub nested: subst::VecPerParamSpace<N>
pub nested: Vec<N>
}
#[derive(Debug,Clone)]
......@@ -594,7 +594,7 @@ pub fn map_nested<M, F>(&self, op: F) -> VtableDefaultTraitData<M> where
{
VtableDefaultTraitData {
trait_def_id: self.trait_def_id,
nested: self.nested.map(op)
nested: self.nested.iter().map(op).collect()
}
}
......@@ -604,7 +604,7 @@ pub fn map_move_nested<M, F>(self, op: F) -> VtableDefaultTraitData<M> where
let VtableDefaultTraitData { trait_def_id, nested } = self;
VtableDefaultTraitData {
trait_def_id: trait_def_id,
nested: nested.map_move(op)
nested: nested.into_iter().map(op).collect()
}
}
}
......
......@@ -1918,7 +1918,6 @@ fn vtable_default_impl(&mut self,
Err(ErrorReported) => Vec::new()
};
let obligations = VecPerParamSpace::new(obligations, Vec::new(), Vec::new());
debug!("vtable_default_impl_data: obligations={}", obligations.repr(self.tcx()));
VtableDefaultTraitData {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册