]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc/middle/traits/fulfill.rs
use slicing sugar
[rust.git] / src / librustc / middle / traits / fulfill.rs
index 71a3ad64faf9ba965bd0d02fdbbae8604fc8a4c9..c3b9be85eb5058cd8e92658d12ab3249ee1b24a4 100644 (file)
@@ -227,7 +227,7 @@ pub fn select_where_possible<'a>(&mut self,
     }
 
     pub fn pending_obligations(&self) -> &[PredicateObligation<'tcx>] {
-        self.predicates.index(&FullRange)
+        &self.predicates[]
     }
 
     /// Attempts to select obligations using `selcx`. If `only_new_obligations` is true, then it