Skip to content

Commit ecf5767

Browse files
committed
---
yaml --- r: 49525 b: refs/heads/master c: 2b83def h: refs/heads/master i: 49523: 81f9214 v: v3
1 parent a838002 commit ecf5767

File tree

9 files changed

+349
-39
lines changed

9 files changed

+349
-39
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 11ca2efce13eee1e273b29543a8756eb4f69f66f
2+
refs/heads/master: 2b83defa4a48303db642f38e2a9f24460756721d
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: f7a2371c176663d59062ec5158f39faecba45768
55
refs/heads/try: 2a8fb58d79e685d5ca07b039badcf2ae3ef077ea

trunk/src/libcore/core.rc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,7 @@ pub mod rt;
231231
// can be resolved within libcore.
232232
#[doc(hidden)]
233233
pub mod core {
234+
pub use clone;
234235
pub use cmp;
235236
pub use condition;
236237
pub use option;

trunk/src/libcore/either.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ use result;
1717
use vec;
1818

1919
/// The either type
20-
#[deriving(Eq)]
20+
#[deriving(Clone, Eq)]
2121
pub enum Either<T, U> {
2222
Left(T),
2323
Right(U)

trunk/src/libcore/option.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ use iter::{BaseIter, MutableIter};
5252
#[cfg(test)] use str;
5353

5454
/// The option type
55-
#[deriving(Eq)]
55+
#[deriving(Clone, Eq)]
5656
pub enum Option<T> {
5757
None,
5858
Some(T),

trunk/src/libcore/path.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ use option::{None, Option, Some};
2020
use str;
2121
use to_str::ToStr;
2222

23-
#[deriving(Eq)]
23+
#[deriving(Clone, Eq)]
2424
pub struct WindowsPath {
2525
host: Option<~str>,
2626
device: Option<~str>,
@@ -32,7 +32,7 @@ pub fn WindowsPath(s: &str) -> WindowsPath {
3232
GenericPath::from_str(s)
3333
}
3434

35-
#[deriving(Eq)]
35+
#[deriving(Clone, Eq)]
3636
pub struct PosixPath {
3737
is_absolute: bool,
3838
components: ~[~str],

trunk/src/libcore/result.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ use option::{None, Option, Some};
2020
use vec;
2121

2222
/// The result type
23-
#[deriving(Eq)]
23+
#[deriving(Clone, Eq)]
2424
pub enum Result<T, U> {
2525
/// Contains the successful result value
2626
Ok(T),

trunk/src/librustc/middle/resolve.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4741,8 +4741,8 @@ pub impl Resolver {
47414741
let mut j = this.value_ribs.len();
47424742
while j != 0 {
47434743
j -= 1;
4744-
for this.value_ribs[j].bindings.each_key |&k| {
4745-
vec::push(&mut maybes, copy *this.session.str_of(k));
4744+
for this.value_ribs[j].bindings.each_entry |e| {
4745+
vec::push(&mut maybes, copy *this.session.str_of(e.key));
47464746
vec::push(&mut values, uint::max_value);
47474747
}
47484748
}

0 commit comments

Comments
 (0)