]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_mir/borrow_check/constraints/mod.rs
Auto merge of #69076 - cjgillot:split_trait, r=matthewjasper
[rust.git] / src / librustc_mir / borrow_check / constraints / mod.rs
index 8a242b7ee25ba861beb07b0131e8cd4a9d0f1c0e..ef70b127ac5bd4b1bf513a542f57536408711379 100644 (file)
@@ -1,11 +1,12 @@
-use crate::borrow_check::nll::type_check::Locations;
 use rustc::mir::ConstraintCategory;
 use rustc::ty::RegionVid;
 use rustc_data_structures::graph::scc::Sccs;
-use rustc_index::vec::{Idx, IndexVec};
+use rustc_index::vec::IndexVec;
 use std::fmt;
 use std::ops::Index;
 
+use crate::borrow_check::type_check::Locations;
+
 crate mod graph;
 
 /// A set of NLL region constraints. These include "outlives"
@@ -92,11 +93,7 @@ pub struct OutlivesConstraint {
 
 impl fmt::Debug for OutlivesConstraint {
     fn fmt(&self, formatter: &mut fmt::Formatter<'_>) -> fmt::Result {
-        write!(
-            formatter,
-            "({:?}: {:?}) due to {:?}",
-            self.sup, self.sub, self.locations
-        )
+        write!(formatter, "({:?}: {:?}) due to {:?}", self.sup, self.sub, self.locations)
     }
 }