Skip to content

Commit c531c74

Browse files
author
blake2-ppc
committed
---
yaml --- r: 79666 b: refs/heads/auto c: 5f69a58 h: refs/heads/master v: v3
1 parent fd4e3b3 commit c531c74

File tree

3 files changed

+3
-8
lines changed

3 files changed

+3
-8
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0
1313
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
1414
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
1515
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
16-
refs/heads/auto: 77dff93a4baa4164311e14763cfcbb05e410359b
16+
refs/heads/auto: 5f69a58e0ccf3d85b5f12f26ecf78ee7e7fec270
1717
refs/heads/servo: af82457af293e2a842ba6b7759b70288da276167
1818
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c
1919
refs/tags/0.1: b19db808c2793fe2976759b85a355c3ad8c8b336

branches/auto/src/librustc/middle/typeck/infer/combine.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ pub trait Combine {
8888
// future we could allow type parameters to declare a
8989
// variance.
9090

91-
if vec::same_length(as_, bs) {
91+
if as_.len() == bs.len() {
9292
result::fold_(as_.iter().zip(bs.iter())
9393
.map(|(a, b)| eq_tys(self, *a, *b)))
9494
.then(|| Ok(as_.to_owned()))
@@ -419,7 +419,7 @@ pub fn super_fn_sigs<C:Combine>(
419419
this: &C, a: &ty::FnSig, b: &ty::FnSig) -> cres<ty::FnSig> {
420420

421421
fn argvecs<C:Combine>(this: &C, a_args: &[ty::t], b_args: &[ty::t]) -> cres<~[ty::t]> {
422-
if vec::same_length(a_args, b_args) {
422+
if a_args.len() == b_args.len() {
423423
result::collect(a_args.iter().zip(b_args.iter())
424424
.map(|(a, b)| this.args(*a, *b)))
425425
} else {

branches/auto/src/libstd/vec.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -123,11 +123,6 @@ use unstable::raw::{Box, Repr, Slice, Vec};
123123
use vec;
124124
use util;
125125

126-
/// Returns true if two vectors have the same length
127-
pub fn same_length<T, U>(xs: &[T], ys: &[U]) -> bool {
128-
xs.len() == ys.len()
129-
}
130-
131126
/**
132127
* Creates and initializes an owned vector.
133128
*

0 commit comments

Comments
 (0)