librustc: use #[deriving(Copy)]

This commit is contained in:
Jorge Aparicio 2014-12-14 23:03:34 -05:00
parent f2ef2cda52
commit e64a0072d6
36 changed files with 159 additions and 426 deletions

View file

@ -26,14 +26,13 @@ struct CFGBuilder<'a, 'tcx: 'a> {
loop_scopes: Vec<LoopScope>,
}
#[deriving(Copy)]
struct LoopScope {
loop_id: ast::NodeId, // id of loop/while node
continue_index: CFGIndex, // where to go on a `loop`
break_index: CFGIndex, // where to go on a `break
}
impl Copy for LoopScope {}
pub fn construct(tcx: &ty::ctxt,
blk: &ast::Block) -> CFG {
let mut graph = graph::Graph::new();