Reformat use declarations.
The previous commit updated `rustfmt.toml` appropriately. This commit is the outcome of running `x fmt --all` with the new formatting options.
This commit is contained in:
@@ -9,10 +9,11 @@
|
||||
//! Thomas Lengauer and Robert Endre Tarjan.
|
||||
//! <https://www.cs.princeton.edu/courses/archive/spr03/cs423/download/dominators.pdf>
|
||||
|
||||
use super::ControlFlowGraph;
|
||||
use std::cmp::Ordering;
|
||||
|
||||
use rustc_index::{Idx, IndexSlice, IndexVec};
|
||||
|
||||
use std::cmp::Ordering;
|
||||
use super::ControlFlowGraph;
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests;
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
use super::*;
|
||||
|
||||
use super::super::tests::TestGraph;
|
||||
use super::*;
|
||||
|
||||
#[test]
|
||||
fn diamond() {
|
||||
|
||||
@@ -20,8 +20,9 @@
|
||||
//! the field `next_edge`). Each of those fields is an array that should
|
||||
//! be indexed by the direction (see the type `Direction`).
|
||||
|
||||
use rustc_index::bit_set::BitSet;
|
||||
use std::fmt::Debug;
|
||||
|
||||
use rustc_index::bit_set::BitSet;
|
||||
use tracing::debug;
|
||||
|
||||
#[cfg(test)]
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
use crate::graph::implementation::*;
|
||||
use tracing::debug;
|
||||
|
||||
use crate::graph::implementation::*;
|
||||
|
||||
type TestGraph = Graph<&'static str, &'static str>;
|
||||
|
||||
fn create_graph() -> TestGraph {
|
||||
|
||||
@@ -1,7 +1,9 @@
|
||||
use super::{DirectedGraph, StartNode, Successors};
|
||||
use std::ops::ControlFlow;
|
||||
|
||||
use rustc_index::bit_set::BitSet;
|
||||
use rustc_index::{IndexSlice, IndexVec};
|
||||
use std::ops::ControlFlow;
|
||||
|
||||
use super::{DirectedGraph, StartNode, Successors};
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests;
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
use super::super::tests::TestGraph;
|
||||
|
||||
use super::*;
|
||||
|
||||
#[test]
|
||||
|
||||
@@ -8,13 +8,15 @@
|
||||
//! Typical examples would include: minimum element in SCC, maximum element
|
||||
//! reachable from it, etc.
|
||||
|
||||
use std::fmt::Debug;
|
||||
use std::ops::Range;
|
||||
|
||||
use rustc_index::{Idx, IndexSlice, IndexVec};
|
||||
use tracing::{debug, instrument};
|
||||
|
||||
use crate::fx::FxHashSet;
|
||||
use crate::graph::vec_graph::VecGraph;
|
||||
use crate::graph::{DirectedGraph, NumEdges, Successors};
|
||||
use rustc_index::{Idx, IndexSlice, IndexVec};
|
||||
use std::fmt::Debug;
|
||||
use std::ops::Range;
|
||||
use tracing::{debug, instrument};
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
use crate::fx::FxHashMap;
|
||||
use std::cmp::max;
|
||||
|
||||
use super::*;
|
||||
use crate::fx::FxHashMap;
|
||||
|
||||
pub struct TestGraph {
|
||||
num_nodes: usize,
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
use crate::graph::{DirectedGraph, NumEdges, Predecessors, Successors};
|
||||
use rustc_index::{Idx, IndexVec};
|
||||
|
||||
use crate::graph::{DirectedGraph, NumEdges, Predecessors, Successors};
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests;
|
||||
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
use crate::graph;
|
||||
|
||||
use super::*;
|
||||
use crate::graph;
|
||||
|
||||
fn create_graph() -> VecGraph<usize> {
|
||||
// Create a simple graph
|
||||
|
||||
Reference in New Issue
Block a user