Skip to content

Commit c113786

Browse files
committed
---
yaml --- r: 107561 b: refs/heads/dist-snap c: d25334d h: refs/heads/master i: 107559: 086be7f v: v3
1 parent 11fadfe commit c113786

File tree

4 files changed

+8
-14
lines changed

4 files changed

+8
-14
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ refs/heads/try: f64fdf524a434f0e5cd0bc91d09c144723f3c90d
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c
9-
refs/heads/dist-snap: 505572b3f830c8f5140efaaf2adf8293e29b0db9
9+
refs/heads/dist-snap: d25334d63a206dc9f7465119be983929782a124a
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/arm.rs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,6 @@ use metadata::loader::meta_section_name;
1414
use syntax::abi;
1515

1616
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-
~[~"-mthumb"]
19-
} else {
20-
~[~"-marm"]
21-
};
2217
return target_strs::t {
2318
module_asm: ~"",
2419

@@ -68,6 +63,6 @@ pub fn get_target_strs(target_triple: ~str, target_os: abi::Os) -> target_strs::
6863

6964
target_triple: target_triple,
7065

71-
cc_args: cc_args,
66+
cc_args: ~[~"-marm"],
7267
};
7368
}

branches/dist-snap/src/librustc/driver/driver.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -661,7 +661,6 @@ static architecture_abis : &'static [(&'static str, abi::Architecture)] = &'stat
661661

662662
("arm", abi::Arm),
663663
("xscale", abi::Arm),
664-
("thumb", abi::Arm),
665664

666665
("mips", abi::Mips)];
667666

branches/dist-snap/src/libstd/vec.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -941,7 +941,7 @@ pub trait ImmutableVector<'a, T> {
941941

942942
/// Returns the element of a vector at the given index, or `None` if the
943943
/// index is out of bounds
944-
fn get_opt(&self, index: uint) -> Option<&'a T>;
944+
fn get(&self, index: uint) -> Option<&'a T>;
945945
/// Returns the first element of a vector, failing if the vector is empty.
946946
fn head(&self) -> &'a T;
947947
/// Returns the first element of a vector, or `None` if it is empty
@@ -1118,7 +1118,7 @@ impl<'a,T> ImmutableVector<'a, T> for &'a [T] {
11181118
}
11191119

11201120
#[inline]
1121-
fn get_opt(&self, index: uint) -> Option<&'a T> {
1121+
fn get(&self, index: uint) -> Option<&'a T> {
11221122
if index < self.len() { Some(&self[index]) } else { None }
11231123
}
11241124

@@ -3043,13 +3043,13 @@ mod tests {
30433043
}
30443044

30453045
#[test]
3046-
fn test_get_opt() {
3046+
fn test_get() {
30473047
let mut a = ~[11];
3048-
assert_eq!(a.get_opt(1), None);
3048+
assert_eq!(a.get(1), None);
30493049
a = ~[11, 12];
3050-
assert_eq!(a.get_opt(1).unwrap(), &12);
3050+
assert_eq!(a.get(1).unwrap(), &12);
30513051
a = ~[11, 12, 13];
3052-
assert_eq!(a.get_opt(1).unwrap(), &12);
3052+
assert_eq!(a.get(1).unwrap(), &12);
30533053
}
30543054

30553055
#[test]

0 commit comments

Comments
 (0)