diff options
| author | Maybe Waffle <waffle.lapkin@gmail.com> | 2024-04-14 15:15:03 +0000 |
|---|---|---|
| committer | Maybe Waffle <waffle.lapkin@gmail.com> | 2024-04-14 15:46:40 +0000 |
| commit | 398da593a53161c1ef9ca7dabbc5e9edf67deac6 (patch) | |
| tree | 540996de1e73ca1f6c0ba581a1754b4a624bf519 /compiler/rustc_borrowck/src | |
| parent | 029cb1b13b6388b95e64e8996ec8b41a9f3cf16e (diff) | |
| download | rust-398da593a53161c1ef9ca7dabbc5e9edf67deac6.tar.gz rust-398da593a53161c1ef9ca7dabbc5e9edf67deac6.zip | |
Merge `WithNumNodes` into DirectedGraph
Diffstat (limited to 'compiler/rustc_borrowck/src')
| -rw-r--r-- | compiler/rustc_borrowck/src/constraints/graph.rs | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/compiler/rustc_borrowck/src/constraints/graph.rs b/compiler/rustc_borrowck/src/constraints/graph.rs index 8b7d9ec2cd6..470da9cbae6 100644 --- a/compiler/rustc_borrowck/src/constraints/graph.rs +++ b/compiler/rustc_borrowck/src/constraints/graph.rs @@ -216,9 +216,7 @@ impl<'s, 'tcx, D: ConstraintGraphDirection> Iterator for Successors<'s, 'tcx, D> impl<'s, 'tcx, D: ConstraintGraphDirection> graph::DirectedGraph for RegionGraph<'s, 'tcx, D> { type Node = RegionVid; -} -impl<'s, 'tcx, D: ConstraintGraphDirection> graph::WithNumNodes for RegionGraph<'s, 'tcx, D> { fn num_nodes(&self) -> usize { self.constraint_graph.first_constraints.len() } |
