Skip to content

Commit 07d6322

Browse files
committed
auto merge of #14157 : pcwalton/rust/detildestr-rustdoc, r=pcwalton
r? @brson
2 parents e8053b9 + 9ba91e1 commit 07d6322

Some content is hidden

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

94 files changed

+2372
-1701
lines changed

src/librustc/back/archive.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,12 +129,12 @@ impl<'a> Archive<'a> {
129129
}
130130

131131
/// Lists all files in an archive
132-
pub fn files(&self) -> Vec<~str> {
132+
pub fn files(&self) -> Vec<StrBuf> {
133133
let output = run_ar(self.sess, "t", None, [&self.dst]);
134134
let output = str::from_utf8(output.output.as_slice()).unwrap();
135135
// use lines_any because windows delimits output with `\r\n` instead of
136136
// just `\n`
137-
output.lines_any().map(|s| s.to_owned()).collect()
137+
output.lines_any().map(|s| s.to_strbuf()).collect()
138138
}
139139

140140
fn add_archive(&mut self, archive: &Path, name: &str,

src/librustc/back/arm.rs

Lines changed: 32 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -13,56 +13,57 @@ use driver::config::cfg_os_to_meta_os;
1313
use metadata::loader::meta_section_name;
1414
use syntax::abi;
1515

16-
pub fn get_target_strs(target_triple: ~str, target_os: abi::Os) -> target_strs::t {
17-
let cc_args = if target_triple.contains("thumb") {
18-
vec!("-mthumb".to_owned())
16+
pub fn get_target_strs(target_triple: StrBuf, target_os: abi::Os) -> target_strs::t {
17+
let cc_args = if target_triple.as_slice().contains("thumb") {
18+
vec!("-mthumb".to_strbuf())
1919
} else {
20-
vec!("-marm".to_owned())
20+
vec!("-marm".to_strbuf())
2121
};
2222
return target_strs::t {
23-
module_asm: "".to_owned(),
23+
module_asm: "".to_strbuf(),
2424

25-
meta_sect_name: meta_section_name(cfg_os_to_meta_os(target_os)).to_owned(),
25+
meta_sect_name:
26+
meta_section_name(cfg_os_to_meta_os(target_os)).to_strbuf(),
2627

2728
data_layout: match target_os {
2829
abi::OsMacos => {
29-
"e-p:32:32:32".to_owned() +
30-
"-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64" +
31-
"-f32:32:32-f64:64:64" +
32-
"-v64:64:64-v128:64:128" +
33-
"-a0:0:64-n32"
30+
"e-p:32:32:32\
31+
-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64\
32+
-f32:32:32-f64:64:64\
33+
-v64:64:64-v128:64:128\
34+
-a0:0:64-n32".to_strbuf()
3435
}
3536

3637
abi::OsWin32 => {
37-
"e-p:32:32:32".to_owned() +
38-
"-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64" +
39-
"-f32:32:32-f64:64:64" +
40-
"-v64:64:64-v128:64:128" +
41-
"-a0:0:64-n32"
38+
"e-p:32:32:32\
39+
-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64\
40+
-f32:32:32-f64:64:64\
41+
-v64:64:64-v128:64:128\
42+
-a0:0:64-n32".to_strbuf()
4243
}
4344

4445
abi::OsLinux => {
45-
"e-p:32:32:32".to_owned() +
46-
"-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64" +
47-
"-f32:32:32-f64:64:64" +
48-
"-v64:64:64-v128:64:128" +
49-
"-a0:0:64-n32"
46+
"e-p:32:32:32\
47+
-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64\
48+
-f32:32:32-f64:64:64\
49+
-v64:64:64-v128:64:128\
50+
-a0:0:64-n32".to_strbuf()
5051
}
5152

5253
abi::OsAndroid => {
53-
"e-p:32:32:32".to_owned() +
54-
"-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64" +
55-
"-f32:32:32-f64:64:64" +
56-
"-v64:64:64-v128:64:128" +
57-
"-a0:0:64-n32"
54+
"e-p:32:32:32\
55+
-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64\
56+
-f32:32:32-f64:64:64\
57+
-v64:64:64-v128:64:128\
58+
-a0:0:64-n32".to_strbuf()
5859
}
5960

6061
abi::OsFreebsd => {
61-
"e-p:32:32:32".to_owned() +
62-
"-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64" +
63-
"-f32:32:32-f64:64:64" +
64-
"-v64:64:64-v128:64:128" +
65-
"-a0:0:64-n32"
62+
"e-p:32:32:32\
63+
-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64\
64+
-f32:32:32-f64:64:64\
65+
-v64:64:64-v128:64:128\
66+
-a0:0:64-n32".to_strbuf()
6667
}
6768
},
6869

0 commit comments

Comments
 (0)