Skip to content

Commit 6e104dc

Browse files
committed
---
yaml --- r: 62966 b: refs/heads/snap-stage3 c: e900dba h: refs/heads/master v: v3
1 parent 8ae60c5 commit 6e104dc

File tree

11 files changed

+14
-50
lines changed

11 files changed

+14
-50
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: 2d28d645422c1617be58c8ca7ad9a457264ca850
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: 394ac1aae4d8b23b65a2165b2cf00c66936cd437
4+
refs/heads/snap-stage3: e900dba28a1ff1434e037c48da2e99948333a564
55
refs/heads/try: 7b78b52e602bb3ea8174f9b2006bff3315f03ef9
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b

branches/snap-stage3/src/librustc/middle/resolve.rs

Lines changed: 3 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -4595,7 +4595,7 @@ impl Resolver {
45954595
}
45964596

45974597
let name = *path.idents.last();
4598-
let def = match self.resolve_definition_of_name_in_module(containing_module,
4598+
match self.resolve_definition_of_name_in_module(containing_module,
45994599
name,
46004600
namespace,
46014601
xray) {
@@ -4604,28 +4604,9 @@ impl Resolver {
46044604
return None;
46054605
}
46064606
ChildNameDefinition(def) | ImportNameDefinition(def) => {
4607-
def
4607+
return Some(def);
46084608
}
4609-
};
4610-
match containing_module.kind {
4611-
TraitModuleKind | ImplModuleKind => {
4612-
match self.method_map.find(&name) {
4613-
Some(s) => {
4614-
match containing_module.def_id {
4615-
Some(def_id) if s.contains(&def_id) => {
4616-
debug!("containing module was a trait or impl \
4617-
and name was a method -> not resolved");
4618-
return None;
4619-
},
4620-
_ => (),
4621-
}
4622-
},
4623-
None => (),
4624-
}
4625-
},
4626-
_ => (),
4627-
};
4628-
return Some(def);
4609+
}
46294610
}
46304611

46314612
/// Invariant: This must be called only during main resolution, not during

branches/snap-stage3/src/libstd/pipes.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ use option::{None, Option, Some};
9494
use unstable::finally::Finally;
9595
use unstable::intrinsics;
9696
use ptr;
97-
use ptr::Ptr;
97+
use ptr::RawPtr;
9898
use task;
9999
use vec;
100100
use vec::OwnedVector;

branches/snap-stage3/src/libstd/prelude.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ pub use path::GenericPath;
4343
pub use path::Path;
4444
pub use path::PosixPath;
4545
pub use path::WindowsPath;
46-
pub use ptr::Ptr;
46+
pub use ptr::RawPtr;
4747
pub use ascii::{Ascii, AsciiCast, OwnedAsciiCast, AsciiStr};
4848
pub use str::{StrVector, StrSlice, OwnedStr, StrUtil};
4949
pub use from_str::{FromStr};

branches/snap-stage3/src/libstd/ptr.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -296,15 +296,15 @@ pub unsafe fn array_each<T>(arr: **T, cb: &fn(*T)) {
296296
}
297297

298298
#[allow(missing_doc)]
299-
pub trait Ptr<T> {
299+
pub trait RawPtr<T> {
300300
fn is_null(&const self) -> bool;
301301
fn is_not_null(&const self) -> bool;
302302
unsafe fn to_option(&const self) -> Option<&T>;
303303
fn offset(&self, count: uint) -> Self;
304304
}
305305

306306
/// Extension methods for immutable pointers
307-
impl<T> Ptr<T> for *T {
307+
impl<T> RawPtr<T> for *T {
308308
/// Returns true if the pointer is equal to the null pointer.
309309
#[inline(always)]
310310
fn is_null(&const self) -> bool { is_null(*self) }
@@ -336,7 +336,7 @@ impl<T> Ptr<T> for *T {
336336
}
337337

338338
/// Extension methods for mutable pointers
339-
impl<T> Ptr<T> for *mut T {
339+
impl<T> RawPtr<T> for *mut T {
340340
/// Returns true if the pointer is equal to the null pointer.
341341
#[inline(always)]
342342
fn is_null(&const self) -> bool { is_null(*self) }

branches/snap-stage3/src/libstd/rt/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ Several modules in `core` are clients of `rt`:
5656

5757
#[doc(hidden)];
5858

59-
use ptr::Ptr;
59+
use ptr::RawPtr;
6060

6161
/// The global (exchange) heap.
6262
pub mod global_heap;

branches/snap-stage3/src/libstd/rt/stack.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
// except according to those terms.
1010

1111
use container::Container;
12-
use ptr::Ptr;
12+
use ptr::RawPtr;
1313
use vec;
1414
use ops::Drop;
1515
use libc::{c_uint, uintptr_t};

branches/snap-stage3/src/libstd/rt/uv/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ use container::Container;
3838
use option::*;
3939
use str::raw::from_c_str;
4040
use to_str::ToStr;
41-
use ptr::Ptr;
41+
use ptr::RawPtr;
4242
use libc;
4343
use vec;
4444
use ptr;

branches/snap-stage3/src/libstd/str.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ use libc;
3030
use option::{None, Option, Some};
3131
use old_iter::{BaseIter, EqIter};
3232
use ptr;
33-
use ptr::Ptr;
33+
use ptr::RawPtr;
3434
use str;
3535
use to_str::ToStr;
3636
use uint;

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ use old_iter::CopyableIter;
2626
use option::{None, Option, Some};
2727
use ptr::to_unsafe_ptr;
2828
use ptr;
29-
use ptr::Ptr;
29+
use ptr::RawPtr;
3030
use sys;
3131
use uint;
3232
use unstable::intrinsics;

branches/snap-stage3/src/test/compile-fail/call-extern-trait-as-function.rs

Lines changed: 0 additions & 17 deletions
This file was deleted.

0 commit comments

Comments
 (0)