Skip to content

Commit 12e5529

Browse files
committed
Renamed non_unique to alias, which is the terminology Rust uses for this more often and is more succinct.
1 parent 60bcb56 commit 12e5529

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

pdg/src/info.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ pub struct NodeInfo {
1818
flows_to_load: Option<NodeId>,
1919
flows_to_pos_offset: Option<NodeId>,
2020
flows_to_neg_offset: Option<NodeId>,
21-
non_unique: Option<NodeId>,
21+
aliases: Option<NodeId>,
2222
}
2323

2424
impl Display for NodeInfo {
@@ -28,7 +28,7 @@ impl Display for NodeInfo {
2828
("load", self.flows_to_load),
2929
("+offset", self.flows_to_neg_offset),
3030
("-offset", self.flows_to_neg_offset),
31-
("non unique by", self.non_unique),
31+
("alias", self.aliases),
3232
]
3333
.into_iter()
3434
.filter_map(|(name, node)| Some((name, node?)))
@@ -174,7 +174,7 @@ pub fn augment_with_info(pdg: &mut Graphs) {
174174
let mut idx_flow_to_load = HashMap::new();
175175
let mut idx_flow_to_pos_offset = HashMap::new();
176176
let mut idx_flow_to_neg_offset = HashMap::new();
177-
let mut idx_non_unique = HashMap::new();
177+
let mut idx_aliases = HashMap::new();
178178
for (idx, _) in g.nodes.iter_enumerated() {
179179
if let Some(descmutidx) = check_flows_to_node_kind(g, &idx, node_does_mutation) {
180180
idx_flow_to_store.insert(idx, descmutidx);
@@ -189,7 +189,7 @@ pub fn augment_with_info(pdg: &mut Graphs) {
189189
idx_flow_to_neg_offset.insert(idx, descnegoidx);
190190
}
191191
if let Some(non_unique_idx) = check_whether_rules_obeyed(g, &idx) {
192-
idx_non_unique.insert(idx, non_unique_idx);
192+
idx_aliases.insert(idx, non_unique_idx);
193193
}
194194
}
195195
for (idx, node) in g.nodes.iter_enumerated_mut() {
@@ -198,7 +198,7 @@ pub fn augment_with_info(pdg: &mut Graphs) {
198198
flows_to_load: idx_flow_to_load.remove(&idx),
199199
flows_to_pos_offset: idx_flow_to_pos_offset.remove(&idx),
200200
flows_to_neg_offset: idx_flow_to_pos_offset.remove(&idx),
201-
non_unique: idx_non_unique.remove(&idx),
201+
aliases: idx_aliases.remove(&idx),
202202
})
203203
}
204204
}

0 commit comments

Comments
 (0)