diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2014-09-17 09:26:26 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2014-09-17 09:37:39 -0700 |
| commit | 3a54a4ee6bb9e0ab02c2556f029c288dda3c3de1 (patch) | |
| tree | e41240f2381fb2bc446b2c65d746d6ebcad412ed | |
| parent | 665e759d5a37a3f03dd8a54e8a54b364c9c8a10c (diff) | |
| download | rust-3a54a4ee6bb9e0ab02c2556f029c288dda3c3de1.tar.gz rust-3a54a4ee6bb9e0ab02c2556f029c288dda3c3de1.zip | |
Test fixes from the rollup
| -rw-r--r-- | src/libnum/bigint.rs | 2 | ||||
| -rw-r--r-- | src/libnum/lib.rs | 1 | ||||
| -rw-r--r-- | src/librustc/middle/traits/util.rs | 4 |
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); |
