Skip to content

Commit 95d9046

Browse files
committedMar 4, 2015
std: Deprecate std::old_io::fs
This commit deprecates the majority of std::old_io::fs in favor of std::fs and its new functionality. Some functions remain non-deprecated but are now behind a feature gate called `old_fs`. These functions will be deprecated once suitable replacements have been implemented. The compiler has been migrated to new `std::fs` and `std::path` APIs where appropriate as part of this change.
1 parent 3b3bb0e commit 95d9046

Some content is hidden

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

80 files changed

+1430
-1209
lines changed
 

‎mk/docs.mk

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,11 +273,13 @@ compiler-docs: $(COMPILER_DOC_TARGETS)
273273
trpl: doc/book/index.html
274274

275275
doc/book/index.html: $(RUSTBOOK_EXE) $(wildcard $(S)/src/doc/trpl/*.md) | doc/
276+
@$(call E, rustbook: $@)
276277
$(Q)rm -rf doc/book
277278
$(Q)$(RUSTBOOK) build $(S)src/doc/trpl doc/book
278279

279280
style: doc/style/index.html
280281

281282
doc/style/index.html: $(RUSTBOOK_EXE) $(wildcard $(S)/src/doc/style/*.md) | doc/
283+
@$(call E, rustbook: $@)
282284
$(Q)rm -rf doc/style
283285
$(Q)$(RUSTBOOK) build $(S)src/doc/style doc/style

‎src/compiletest/common.rs

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ pub use self::Mode::*;
1111

1212
use std::fmt;
1313
use std::str::FromStr;
14+
use std::path::PathBuf;
1415

1516
#[derive(Clone, Copy, PartialEq, Debug)]
1617
pub enum Mode {
@@ -68,13 +69,13 @@ pub struct Config {
6869
pub run_lib_path: String,
6970

7071
// The rustc executable
71-
pub rustc_path: Path,
72+
pub rustc_path: PathBuf,
7273

7374
// The clang executable
74-
pub clang_path: Option<Path>,
75+
pub clang_path: Option<PathBuf>,
7576

7677
// The llvm binaries path
77-
pub llvm_bin_path: Option<Path>,
78+
pub llvm_bin_path: Option<PathBuf>,
7879

7980
// The valgrind path
8081
pub valgrind_path: Option<String>,
@@ -84,13 +85,13 @@ pub struct Config {
8485
pub force_valgrind: bool,
8586

8687
// The directory containing the tests to run
87-
pub src_base: Path,
88+
pub src_base: PathBuf,
8889

8990
// The directory where programs should be built
90-
pub build_base: Path,
91+
pub build_base: PathBuf,
9192

9293
// Directory for auxiliary libraries
93-
pub aux_base: Path,
94+
pub aux_base: PathBuf,
9495

9596
// The name of the stage being built (stage1, etc)
9697
pub stage_id: String,
@@ -105,7 +106,7 @@ pub struct Config {
105106
pub filter: Option<String>,
106107

107108
// Write out a parseable log of tests that were run
108-
pub logfile: Option<Path>,
109+
pub logfile: Option<PathBuf>,
109110

110111
// A command line to prefix program execution with,
111112
// for running under valgrind
@@ -133,7 +134,7 @@ pub struct Config {
133134
pub lldb_version: Option<String>,
134135

135136
// Path to the android tools
136-
pub android_cross_path: Path,
137+
pub android_cross_path: PathBuf,
137138

138139
// Extra parameter to run adb on arm-linux-androideabi
139140
pub adb_path: String,

0 commit comments

Comments
 (0)
Please sign in to comment.