librustc: use #[deriving(Copy)]
This commit is contained in:
parent
f2ef2cda52
commit
e64a0072d6
36 changed files with 159 additions and 426 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue