Test fixes from the rollup

This commit is contained in:
Alex Crichton 2014-09-17 09:26:26 -07:00
parent 665e759d5a
commit 3a54a4ee6b
3 changed files with 4 additions and 3 deletions
src
libnum
librustc/middle/traits

@ -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;
//!

@ -18,6 +18,7 @@
//! approximate a square root to arbitrary precision:
//!
//! ```
//! # #![allow(deprecated)]
//! extern crate num;
//!
//! use num::bigint::BigInt;

@ -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);