about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2014-09-17 09:26:26 -0700
committerAlex Crichton <alex@alexcrichton.com>2014-09-17 09:37:39 -0700
commit3a54a4ee6bb9e0ab02c2556f029c288dda3c3de1 (patch)
treee41240f2381fb2bc446b2c65d746d6ebcad412ed
parent665e759d5a37a3f03dd8a54e8a54b364c9c8a10c (diff)
downloadrust-3a54a4ee6bb9e0ab02c2556f029c288dda3c3de1.tar.gz
rust-3a54a4ee6bb9e0ab02c2556f029c288dda3c3de1.zip
Test fixes from the rollup
-rw-r--r--src/libnum/bigint.rs2
-rw-r--r--src/libnum/lib.rs1
-rw-r--r--src/librustc/middle/traits/util.rs4
3 files changed, 4 insertions, 3 deletions
diff --git a/src/libnum/bigint.rs b/src/libnum/bigint.rs
index c97f9513fc3..3f91ce11915 100644
--- a/src/libnum/bigint.rs
+++ b/src/libnum/bigint.rs
@@ -19,6 +19,7 @@
 //! ## Example
 //!
 //! ```rust
+//! # #![allow(deprecated)]
 //! use num::bigint::BigUint;
 //! use std::num::{Zero, One};
 //! use std::mem::replace;
@@ -42,6 +43,7 @@
 //! It's easy to generate large random numbers:
 //!
 //! ```rust
+//! # #![allow(deprecated)]
 //! use num::bigint::{ToBigInt, RandBigInt};
 //! use std::rand;
 //!
diff --git a/src/libnum/lib.rs b/src/libnum/lib.rs
index 43fe82ee899..17071d22dee 100644
--- a/src/libnum/lib.rs
+++ b/src/libnum/lib.rs
@@ -18,6 +18,7 @@
 //! approximate a square root to arbitrary precision:
 //!
 //! ```
+//! # #![allow(deprecated)]
 //! extern crate num;
 //!
 //! use num::bigint::BigInt;
diff --git a/src/librustc/middle/traits/util.rs b/src/librustc/middle/traits/util.rs
index 11b954f2ba6..1eae4ac1932 100644
--- a/src/librustc/middle/traits/util.rs
+++ b/src/librustc/middle/traits/util.rs
@@ -250,9 +250,7 @@ pub fn search_trait_and_supertraits_from_bound(tcx: &ty::ctxt,
      * is the path to that trait/supertrait. Else `None`.
      */
 
-    for (bound_index, bound) in
-        transitive_bounds(tcx, &[caller_bound]).enumerate()
-    {
+    for bound in transitive_bounds(tcx, &[caller_bound]) {
         if test(bound.def_id) {
             let vtable_param = VtableParam { bound: bound };
             return Some(vtable_param);