From 3a54a4ee6bb9e0ab02c2556f029c288dda3c3de1 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Wed, 17 Sep 2014 09:26:26 -0700 Subject: [PATCH] Test fixes from the rollup --- src/libnum/bigint.rs | 2 ++ src/libnum/lib.rs | 1 + 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);