Skip to content

Commit 957750c

Browse files
committed
---
yaml --- r: 138742 b: refs/heads/try2 c: 12f06bb h: refs/heads/master v: v3
1 parent dda739a commit 957750c

File tree

6 files changed

+8
-10
lines changed

6 files changed

+8
-10
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ refs/heads/snap-stage3: 78a7676898d9f80ab540c6df5d4c9ce35bb50463
55
refs/heads/try: 519addf6277dbafccbb4159db4b710c37eaa2ec5
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8-
refs/heads/try2: 959e483fb705e99097a85ce42371bd57b78bd180
8+
refs/heads/try2: 12f06bb496cf5f3ec692f2b71309bb56d4571992
99
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try2/src/libcore/core.rc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ Implicitly, all crates behave as if they included the following prologue:
5050

5151
#[warn(vecs_implicitly_copyable)];
5252
#[deny(non_camel_case_types)];
53-
#[allow(deprecated_self)];
5453
#[allow(deprecated_mutable_fields)];
5554

5655
/* The Prelude. */

branches/try2/src/libcore/dvec.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ priv impl<A> DVec<A> {
108108
pub impl<A> DVec<A> {
109109
// FIXME (#3758): This should not need to be public.
110110
#[inline(always)]
111-
fn check_out<B>(f: &fn(v: ~[A]) -> B) -> B {
111+
fn check_out<B>(&self, f: &fn(v: ~[A]) -> B) -> B {
112112
unsafe {
113113
let mut data = cast::reinterpret_cast(&null::<()>());
114114
data <-> self.data;

branches/try2/src/libcore/hash.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ pub trait Streaming {
6868
fn input(&self, (&[const u8]));
6969
// These can be refactored some when we have default methods.
7070
fn result_bytes(&self) -> ~[u8];
71-
fn result_str() -> ~str;
71+
fn result_str(&self) -> ~str;
7272
fn result_u64(&self) -> u64;
7373
fn reset(&self);
7474
}
@@ -349,8 +349,7 @@ impl Streaming for &SipState {
349349
]
350350
}
351351

352-
// IMPLICIT SELF WARNING: fix me!
353-
fn result_str() -> ~str {
352+
fn result_str(&self) -> ~str {
354353
let r = self.result_bytes();
355354
let mut s = ~"";
356355
for vec::each(r) |b| {

branches/try2/src/libcore/unstable.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ fn LittleLock() -> LittleLock {
228228

229229
pub impl LittleLock {
230230
#[inline(always)]
231-
unsafe fn lock<T>(f: fn() -> T) -> T {
231+
unsafe fn lock<T>(&self, f: fn() -> T) -> T {
232232
struct Unlock {
233233
l: rust_little_lock,
234234
drop {
@@ -280,7 +280,7 @@ pub impl<T:Owned> Exclusive<T> {
280280
// accessing the provided condition variable) are prohibited while inside
281281
// the exclusive. Supporting that is a work in progress.
282282
#[inline(always)]
283-
unsafe fn with<U>(f: fn(x: &mut T) -> U) -> U {
283+
unsafe fn with<U>(&self, f: fn(x: &mut T) -> U) -> U {
284284
unsafe {
285285
let rec = get_shared_mutable_state(&self.x);
286286
do (*rec).lock.lock {
@@ -297,7 +297,7 @@ pub impl<T:Owned> Exclusive<T> {
297297
}
298298

299299
#[inline(always)]
300-
unsafe fn with_imm<U>(f: fn(x: &T) -> U) -> U {
300+
unsafe fn with_imm<U>(&self, f: fn(x: &T) -> U) -> U {
301301
do self.with |x| {
302302
f(cast::transmute_immut(x))
303303
}

branches/try2/src/librustpkg/util.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ pub fn error(msg: ~str) {
253253
}
254254
255255
pub fn hash(data: ~str) -> ~str {
256-
let hasher = hash::default_state();
256+
let hasher = &hash::default_state();
257257
258258
hasher.write_str(data);
259259
hasher.result_str()

0 commit comments

Comments
 (0)