-
Notifications
You must be signed in to change notification settings - Fork 13k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
341 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,164 @@ | ||
// rustfmt-version: Two | ||
fn main() { | ||
// sample 1 | ||
{ | ||
{ | ||
{ | ||
{ | ||
{ | ||
let push_ident = | ||
if let Some(&node_id) = subgraph_nodes.get(pull_to_push_idx) { | ||
self.node_id_as_ident(node_id, false) | ||
} else { | ||
// Entire subgraph is pull (except for a single send/push handoff output). | ||
assert_eq!( | ||
1, | ||
send_ports.len(), | ||
"If entire subgraph is pull, should have only one handoff output." | ||
); | ||
send_ports[0].clone() | ||
}; | ||
} | ||
} | ||
} | ||
} | ||
} | ||
|
||
// sample 2 | ||
{ | ||
{ | ||
{ | ||
{ | ||
{ | ||
let push_ident = if let Some(&node_id) = | ||
subgraph_nodes.get(pull_to_push_idx) | ||
{ | ||
self.node_id_as_ident(node_id, false) | ||
} else { | ||
// Entire subgraph is pull (except for a single send/push handoff output). | ||
assert_eq!( | ||
1, | ||
send_ports.len(), | ||
"If entire subgraph is pull, should have only one handoff output." | ||
); | ||
send_ports[0].clone() | ||
}; | ||
} | ||
} | ||
} | ||
} | ||
} | ||
|
||
// sample 3 | ||
{ | ||
{ | ||
{ | ||
{ | ||
{ | ||
let push_ident = | ||
if let Some(&node_id) = subgraph_nodes.get(pull_to_push_idx) { | ||
self.node_id_as_ident(node_id, false) | ||
} else { | ||
// Entire subgraph is pull (except for a single send/push handoff output). | ||
assert_eq!( | ||
1, | ||
send_ports.len(), | ||
"If entire subgraph is pull, should have only one handoff output." | ||
); | ||
send_ports[0].clone() | ||
}; | ||
} | ||
} | ||
} | ||
} | ||
} | ||
|
||
// sample 4 | ||
{{{{{ | ||
let push_ident = | ||
if let Some(&node_id) = subgraph_nodes.get(pull_to_push_idx) { | ||
self.node_id_as_ident(node_id, false) | ||
} else { | ||
// Entire subgraph is pull (except for a single send/push handoff output). | ||
assert_eq!( | ||
1, | ||
send_ports.len(), | ||
"If entire subgraph is pull, should have only one handoff output." | ||
); | ||
send_ports[0].clone() | ||
}; | ||
}}}}} | ||
|
||
// sample 5 | ||
{ | ||
{ | ||
{ | ||
{ | ||
{ | ||
let push_ident = | ||
if let Some(&node_id) = subgraph_nodes.get(pull_to_push_idx) { | ||
self.node_id_as_ident(node_id, false) | ||
} else { | ||
// Entire subgraph is pull (except for a single send/push handoff output). | ||
assert_eq!( | ||
1, | ||
send_ports.len(), | ||
"If entire subgraph is pull, should have only one handoff output." | ||
); | ||
send_ports[0].clone() | ||
}; | ||
} | ||
} | ||
} | ||
} | ||
} | ||
|
||
// sample 6 | ||
{ | ||
{ | ||
{ | ||
{ | ||
{ | ||
let push_ident = if let Some(&node_id) = | ||
subgraph_nodes.get(pull_to_push_idx) | ||
{ | ||
self.node_id_as_ident(node_id, false) | ||
} else { | ||
// Entire subgraph is pull (except for a single send/push handoff output). | ||
assert_eq!( | ||
1, | ||
send_ports.len(), | ||
"If entire subgraph is pull, should have only one handoff output." | ||
); | ||
send_ports[0].clone() | ||
}; | ||
} | ||
} | ||
} | ||
} | ||
} | ||
|
||
// sample 7 | ||
{ | ||
{ | ||
{ | ||
{ | ||
{ | ||
let push_ident = | ||
if let Some(&node_id) = subgraph_nodes.get(pull_to_push_idx) { | ||
self.node_id_as_ident(node_id, false) | ||
} else { | ||
// Entire subgraph is pull (except for a single send/push handoff output). | ||
assert_eq!( | ||
1, | ||
send_ports.len(), | ||
"If entire subgraph is pull, should have only one handoff output." | ||
); | ||
send_ports[0].clone() | ||
}; | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,177 @@ | ||
// rustfmt-version: Two | ||
fn main() { | ||
// sample 1 | ||
{ | ||
{ | ||
{ | ||
{ | ||
{ | ||
let push_ident = if let Some(&node_id) = | ||
subgraph_nodes.get(pull_to_push_idx) | ||
{ | ||
self.node_id_as_ident(node_id, false) | ||
} else { | ||
// Entire subgraph is pull (except for a single send/push handoff output). | ||
assert_eq!( | ||
1, | ||
send_ports.len(), | ||
"If entire subgraph is pull, should have only one handoff output." | ||
); | ||
send_ports[0].clone() | ||
}; | ||
} | ||
} | ||
} | ||
} | ||
} | ||
|
||
// sample 2 | ||
{ | ||
{ | ||
{ | ||
{ | ||
{ | ||
let push_ident = if let Some(&node_id) = | ||
subgraph_nodes.get(pull_to_push_idx) | ||
{ | ||
self.node_id_as_ident(node_id, false) | ||
} else { | ||
// Entire subgraph is pull (except for a single send/push handoff output). | ||
assert_eq!( | ||
1, | ||
send_ports.len(), | ||
"If entire subgraph is pull, should have only one handoff output." | ||
); | ||
send_ports[0].clone() | ||
}; | ||
} | ||
} | ||
} | ||
} | ||
} | ||
|
||
// sample 3 | ||
{ | ||
{ | ||
{ | ||
{ | ||
{ | ||
let push_ident = if let Some(&node_id) = | ||
subgraph_nodes.get(pull_to_push_idx) | ||
{ | ||
self.node_id_as_ident(node_id, false) | ||
} else { | ||
// Entire subgraph is pull (except for a single send/push handoff output). | ||
assert_eq!( | ||
1, | ||
send_ports.len(), | ||
"If entire subgraph is pull, should have only one handoff output." | ||
); | ||
send_ports[0].clone() | ||
}; | ||
} | ||
} | ||
} | ||
} | ||
} | ||
|
||
// sample 4 | ||
{ | ||
{ | ||
{ | ||
{ | ||
{ | ||
let push_ident = if let Some(&node_id) = | ||
subgraph_nodes.get(pull_to_push_idx) | ||
{ | ||
self.node_id_as_ident(node_id, false) | ||
} else { | ||
// Entire subgraph is pull (except for a single send/push handoff output). | ||
assert_eq!( | ||
1, | ||
send_ports.len(), | ||
"If entire subgraph is pull, should have only one handoff output." | ||
); | ||
send_ports[0].clone() | ||
}; | ||
} | ||
} | ||
} | ||
} | ||
} | ||
|
||
// sample 5 | ||
{ | ||
{ | ||
{ | ||
{ | ||
{ | ||
let push_ident = if let Some(&node_id) = | ||
subgraph_nodes.get(pull_to_push_idx) | ||
{ | ||
self.node_id_as_ident(node_id, false) | ||
} else { | ||
// Entire subgraph is pull (except for a single send/push handoff output). | ||
assert_eq!( | ||
1, | ||
send_ports.len(), | ||
"If entire subgraph is pull, should have only one handoff output." | ||
); | ||
send_ports[0].clone() | ||
}; | ||
} | ||
} | ||
} | ||
} | ||
} | ||
|
||
// sample 6 | ||
{ | ||
{ | ||
{ | ||
{ | ||
{ | ||
let push_ident = if let Some(&node_id) = | ||
subgraph_nodes.get(pull_to_push_idx) | ||
{ | ||
self.node_id_as_ident(node_id, false) | ||
} else { | ||
// Entire subgraph is pull (except for a single send/push handoff output). | ||
assert_eq!( | ||
1, | ||
send_ports.len(), | ||
"If entire subgraph is pull, should have only one handoff output." | ||
); | ||
send_ports[0].clone() | ||
}; | ||
} | ||
} | ||
} | ||
} | ||
} | ||
|
||
// sample 7 | ||
{ | ||
{ | ||
{ | ||
{ | ||
{ | ||
let push_ident = if let Some(&node_id) = | ||
subgraph_nodes.get(pull_to_push_idx) | ||
{ | ||
self.node_id_as_ident(node_id, false) | ||
} else { | ||
// Entire subgraph is pull (except for a single send/push handoff output). | ||
assert_eq!( | ||
1, | ||
send_ports.len(), | ||
"If entire subgraph is pull, should have only one handoff output." | ||
); | ||
send_ports[0].clone() | ||
}; | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |