Skip to content

Commit 3a54a4e

Browse files
committed
Test fixes from the rollup
1 parent 665e759 commit 3a54a4e

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

src/libnum/bigint.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
//! ## Example
2020
//!
2121
//! ```rust
22+
//! # #![allow(deprecated)]
2223
//! use num::bigint::BigUint;
2324
//! use std::num::{Zero, One};
2425
//! use std::mem::replace;
@@ -42,6 +43,7 @@
4243
//! It's easy to generate large random numbers:
4344
//!
4445
//! ```rust
46+
//! # #![allow(deprecated)]
4547
//! use num::bigint::{ToBigInt, RandBigInt};
4648
//! use std::rand;
4749
//!

src/libnum/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
//! approximate a square root to arbitrary precision:
1919
//!
2020
//! ```
21+
//! # #![allow(deprecated)]
2122
//! extern crate num;
2223
//!
2324
//! use num::bigint::BigInt;

src/librustc/middle/traits/util.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -250,9 +250,7 @@ pub fn search_trait_and_supertraits_from_bound(tcx: &ty::ctxt,
250250
* is the path to that trait/supertrait. Else `None`.
251251
*/
252252

253-
for (bound_index, bound) in
254-
transitive_bounds(tcx, &[caller_bound]).enumerate()
255-
{
253+
for bound in transitive_bounds(tcx, &[caller_bound]) {
256254
if test(bound.def_id) {
257255
let vtable_param = VtableParam { bound: bound };
258256
return Some(vtable_param);

0 commit comments

Comments
 (0)