@@ -33,7 +33,8 @@ pub struct Node {
3333 pub stack_uses : BTreeSet < i64 > ,
3434 pub uses : BTreeSet < Temp > ,
3535 pub return_label : Option < Label > ,
36- pub is_move : bool ,
36+ // TODO: This field is unused. Check out if it's really not needed.
37+ //pub is_move: bool,
3738}
3839
3940pub struct FlowGraph {
@@ -53,6 +54,7 @@ struct GraphBuilder<'a> {
5354 visited : HashMap < usize , Entry > ,
5455}
5556
57+ #[ allow( clippy:: needless_lifetimes) ]
5658impl < ' a > GraphBuilder < ' a > {
5759 fn build ( & mut self , current_index : usize , predecessor : Option < Entry > ) {
5860 if let Some ( & entry) = self . visited . get ( & current_index) {
@@ -68,11 +70,12 @@ impl<'a> GraphBuilder<'a> {
6870 Instruction :: Call { ref return_label, .. } => Some ( return_label. clone ( ) ) ,
6971 _ => None ,
7072 } ;
71- let is_move =
73+ // TODO: This is unused. Check out if it's really not needed.
74+ /*let is_move =
7275 match *instruction {
7376 Instruction::Move { .. } => true,
7477 _ => false,
75- } ;
78+ };*/
7679 let defines =
7780 match * instruction {
7881 Instruction :: Call { ref destination, .. } | Instruction :: Move { ref destination, .. } | Instruction :: Operation { ref destination, .. } =>
@@ -104,7 +107,7 @@ impl<'a> GraphBuilder<'a> {
104107 stack_defines,
105108 stack_uses,
106109 uses,
107- is_move,
110+ // is_move,
108111 } ;
109112 let entry = self . control_flow_graph . insert ( node) ;
110113 self . visited . insert ( current_index, entry) ;
0 commit comments