Test fixes from the rollup
This commit is contained in:
parent
665e759d5a
commit
3a54a4ee6b
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user