Skip to content

Commit de9cee3

Browse files
committed
---
yaml --- r: 120211 b: refs/heads/dist-snap c: 6559a36 h: refs/heads/master i: 120209: ad2a9b4 120207: 58acfd5 v: v3
1 parent 69bf3a3 commit de9cee3

Some content is hidden

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

84 files changed

+2016
-1441
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ refs/heads/try: 1813e5aa1a03b0596b8de7abd1af31edf5d6098f
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c
9-
refs/heads/dist-snap: e8053b9a7ff91b6a69238c1d7dea99be34bb7a3b
9+
refs/heads/dist-snap: 6559a3675e021c9e8a416fc0d9ef416ddfda2f13
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
1212
refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0

branches/dist-snap/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,

branches/dist-snap/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)