Skip to content

Commit 58444fa

Browse files
committed
---
yaml --- r: 195223 b: refs/heads/tmp c: d65fee2 h: refs/heads/master i: 195221: 241f261 195219: de6a3cf 195215: d76fba9 v: v3
1 parent b565fa1 commit 58444fa

File tree

7 files changed

+9
-18
lines changed

7 files changed

+9
-18
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ refs/heads/building: 126db549b038c84269a1e4fe46f051b2c15d6970
3434
refs/heads/beta: d8be84eb4499e21bd98a3500c8760540996df23b
3535
refs/heads/windistfix: 7608dbad651f02e837ed05eef3d74a6662a6e928
3636
refs/tags/1.0.0-alpha: e42bd6d93a1d3433c486200587f8f9e12590a4d7
37-
refs/heads/tmp: 1c78478c1249cb007e60a97fa38fcfafbf895ad0
37+
refs/heads/tmp: d65fee28d356bf4ca8e95e9ced43db28b6db7246
3838
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f
3939
refs/tags/homu-tmp: 53a183f0274316596bf9405944d4f0468d8c93e4
4040
refs/heads/gate: 97c84447b65164731087ea82685580cc81424412

branches/tmp/src/compiletest/compiletest.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
#![feature(box_syntax)]
1414
#![feature(collections)]
1515
#![feature(old_io)]
16-
#![feature(old_path)]
1716
#![feature(rustc_private)]
1817
#![feature(unboxed_closures)]
1918
#![feature(std_misc)]

branches/tmp/src/compiletest/procsrv.rs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,27 +8,25 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
#![allow(deprecated)] // for old path, for dynamic_lib
12-
1311
use std::dynamic_lib::DynamicLibrary;
1412
use std::io::prelude::*;
15-
use std::old_path::Path;
13+
use std::path::PathBuf;
1614
use std::process::{ExitStatus, Command, Child, Output, Stdio};
1715

1816
fn add_target_env(cmd: &mut Command, lib_path: &str, aux_path: Option<&str>) {
1917
// Need to be sure to put both the lib_path and the aux path in the dylib
2018
// search path for the child.
2119
let mut path = DynamicLibrary::search_path();
2220
match aux_path {
23-
Some(p) => path.insert(0, Path::new(p)),
21+
Some(p) => path.insert(0, PathBuf::from(p)),
2422
None => {}
2523
}
26-
path.insert(0, Path::new(lib_path));
24+
path.insert(0, PathBuf::from(lib_path));
2725

2826
// Add the new dylib search path var
2927
let var = DynamicLibrary::envvar();
3028
let newpath = DynamicLibrary::create_path(&path);
31-
let newpath = String::from_utf8(newpath).unwrap();
29+
let newpath = newpath.to_str().unwrap().to_string();
3230
cmd.env(var, &newpath);
3331
}
3432

branches/tmp/src/librustc/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131
#![feature(core)]
3232
#![feature(hash)]
3333
#![feature(libc)]
34-
#![feature(old_path)]
3534
#![feature(quote)]
3635
#![feature(rustc_diagnostic_macros)]
3736
#![feature(rustc_private)]

branches/tmp/src/librustdoc/lib.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
#![feature(exit_status)]
2828
#![feature(set_stdio)]
2929
#![feature(libc)]
30-
#![feature(old_path)]
3130
#![feature(rustc_private)]
3231
#![feature(staged_api)]
3332
#![feature(std_misc)]
@@ -65,8 +64,6 @@ use std::path::PathBuf;
6564
use std::rc::Rc;
6665
use std::sync::mpsc::channel;
6766

68-
#[allow(deprecated)] use std::old_path::Path;
69-
7067
use externalfiles::ExternalHtml;
7168
use serialize::Decodable;
7269
use serialize::json::{self, Json};
@@ -434,7 +431,7 @@ fn rust_input(cratefile: &str, externs: core::Externs, matches: &getopts::Matche
434431
// Load all plugins/passes into a PluginManager
435432
let path = matches.opt_str("plugin-path")
436433
.unwrap_or("/tmp/rustdoc/plugins".to_string());
437-
let mut pm = plugins::PluginManager::new(Path::new(path));
434+
let mut pm = plugins::PluginManager::new(PathBuf::from(path));
438435
for pass in &passes {
439436
let plugin = match PASSES.iter()
440437
.position(|&(p, _, _)| {

branches/tmp/src/librustdoc/plugins.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ use std::dynamic_lib as dl;
1616
use serialize::json;
1717
use std::mem;
1818
use std::string::String;
19-
use std::old_path::{Path, GenericPath};
19+
use std::path::PathBuf;
2020

2121
pub type PluginJson = Option<(String, json::Json)>;
2222
pub type PluginResult = (clean::Crate, PluginJson);
@@ -27,12 +27,12 @@ pub struct PluginManager {
2727
dylibs: Vec<dl::DynamicLibrary> ,
2828
callbacks: Vec<PluginCallback> ,
2929
/// The directory plugins will be loaded from
30-
pub prefix: Path,
30+
pub prefix: PathBuf,
3131
}
3232

3333
impl PluginManager {
3434
/// Create a new plugin manager
35-
pub fn new(prefix: Path) -> PluginManager {
35+
pub fn new(prefix: PathBuf) -> PluginManager {
3636
PluginManager {
3737
dylibs: Vec::new(),
3838
callbacks: Vec::new(),

branches/tmp/src/libstd/dynamic_lib.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@ use env;
2121
use ffi::{AsOsStr, CString, OsString};
2222
use mem;
2323
use path::{Path, PathBuf};
24-
#[cfg(not(target_os = "android"))] use os;
25-
#[cfg(not(target_os = "android"))] use str;
2624

2725
pub struct DynamicLibrary {
2826
handle: *mut u8

0 commit comments

Comments
 (0)