Skip to content

Commit ee64d2c

Browse files
committed
std: Stabilize the prelude module
This commit is an implementation of [RFC 503][rfc] which is a stabilization story for the prelude. Most of the RFC was directly applied, removing reexports. Some reexports are kept around, however: * `range` remains until range syntax has landed to reduce churn. * `Path` and `GenericPath` remain until path reform lands. This is done to prevent many imports of `GenericPath` which will soon be removed. * All `io` traits remain until I/O reform lands so imports can be rewritten all at once to `std::io::prelude::*`. This is a breaking change because many prelude reexports have been removed, and the RFC can be consulted for the exact list of removed reexports, as well as to find the locations of where to import them. [rfc]: https://github.com/rust-lang/rfcs/blob/master/text/0503-prelude-stabilization.md [breaking-change] Closes #20068
1 parent 62fb41c commit ee64d2c

File tree

316 files changed

+1601
-1147
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

316 files changed

+1601
-1147
lines changed

src/compiletest/compiletest.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ extern crate regex;
2222
use std::os;
2323
use std::io;
2424
use std::io::fs;
25-
use std::str::FromStr;
26-
use std::thunk::{Thunk};
25+
use std::str::{FromStr, from_str};
26+
use std::thunk::Thunk;
2727
use getopts::{optopt, optflag, reqopt};
2828
use common::Config;
2929
use common::{Pretty, DebugInfoGdb, DebugInfoLldb, Codegen};

src/compiletest/header.rs

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
use common::Config;
1212
use common;
1313
use util;
14+
use std::str::from_str;
1415

1516
pub struct TestProps {
1617
// Lines that should be expected, in order, on standard out

src/doc/guide-ffi.md

+2
Original file line numberDiff line numberDiff line change
@@ -450,6 +450,8 @@ them.
450450
451451
~~~no_run
452452
extern crate libc;
453+
454+
use std::c_str::ToCStr;
453455
use std::ptr;
454456
455457
#[link(name = "readline")]

0 commit comments

Comments
 (0)