Auto merge of #25935 - wesleywiser:fix_libcollection_build_warnings, r=alexcrichton
Fixes a bunch of warnings that are generated during the stage0 build of libcollections.
This commit is contained in:
commit
2c8d75d655
4 changed files with 11 additions and 4 deletions
|
@ -37,12 +37,11 @@
|
||||||
#![feature(unsafe_no_drop_flag, filling_drop)]
|
#![feature(unsafe_no_drop_flag, filling_drop)]
|
||||||
#![feature(step_by)]
|
#![feature(step_by)]
|
||||||
#![feature(str_char)]
|
#![feature(str_char)]
|
||||||
#![feature(str_words)]
|
|
||||||
#![feature(slice_patterns)]
|
#![feature(slice_patterns)]
|
||||||
#![feature(utf8_error)]
|
#![feature(utf8_error)]
|
||||||
#![cfg_attr(test, feature(rand, rustc_private, test, hash, collections,
|
#![cfg_attr(test, feature(rand, test))]
|
||||||
collections_drain, collections_range))]
|
|
||||||
#![cfg_attr(test, allow(deprecated))] // rand
|
#![cfg_attr(test, allow(deprecated))] // rand
|
||||||
|
#![cfg_attr(not(test), feature(str_words))]
|
||||||
|
|
||||||
#![feature(no_std)]
|
#![feature(no_std)]
|
||||||
#![no_std]
|
#![no_std]
|
||||||
|
|
|
@ -79,6 +79,10 @@
|
||||||
#![doc(primitive = "slice")]
|
#![doc(primitive = "slice")]
|
||||||
#![stable(feature = "rust1", since = "1.0.0")]
|
#![stable(feature = "rust1", since = "1.0.0")]
|
||||||
|
|
||||||
|
// Many of the usings in this module are only used in the test configuration.
|
||||||
|
// It's cleaner to just turn off the unused_imports warning than to fix them.
|
||||||
|
#![allow(unused_imports)]
|
||||||
|
|
||||||
use alloc::boxed::Box;
|
use alloc::boxed::Box;
|
||||||
use core::clone::Clone;
|
use core::clone::Clone;
|
||||||
use core::cmp::Ordering::{self, Greater, Less};
|
use core::cmp::Ordering::{self, Greater, Less};
|
||||||
|
|
|
@ -47,6 +47,10 @@
|
||||||
#![doc(primitive = "str")]
|
#![doc(primitive = "str")]
|
||||||
#![stable(feature = "rust1", since = "1.0.0")]
|
#![stable(feature = "rust1", since = "1.0.0")]
|
||||||
|
|
||||||
|
// Many of the usings in this module are only used in the test configuration.
|
||||||
|
// It's cleaner to just turn off the unused_imports warning than to fix them.
|
||||||
|
#![allow(unused_imports)]
|
||||||
|
|
||||||
use self::RecompositionState::*;
|
use self::RecompositionState::*;
|
||||||
use self::DecompositionType::*;
|
use self::DecompositionType::*;
|
||||||
|
|
||||||
|
|
|
@ -1801,7 +1801,7 @@ impl<T: fmt::Debug> fmt::Debug for VecDeque<T> {
|
||||||
|
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
mod tests {
|
mod tests {
|
||||||
use core::iter::{Iterator, self};
|
use core::iter::Iterator;
|
||||||
use core::option::Option::Some;
|
use core::option::Option::Some;
|
||||||
|
|
||||||
use test;
|
use test;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue