Skip to content

Commit eb016c5

Browse files
committed
---
yaml --- r: 56356 b: refs/heads/auto c: 25129ee h: refs/heads/master v: v3
1 parent 04b08d5 commit eb016c5

File tree

18 files changed

+79
-386
lines changed

18 files changed

+79
-386
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0
1414
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
1515
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
1616
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
17-
refs/heads/auto: 8205f73ce6201c4cf2780df04ea4ffb1949bbe9b
17+
refs/heads/auto: 25129ee81c74f41b44bc770bd4fbdf483715a860
1818
refs/heads/servo: af82457af293e2a842ba6b7759b70288da276167
1919
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c

branches/auto/src/libcore/cell.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Similar to a mutable option type, but friendlier.
2020
*/
2121

2222
pub struct Cell<T> {
23-
priv value: Option<T>
23+
value: Option<T>
2424
}
2525

2626
impl<T:cmp::Eq> cmp::Eq for Cell<T> {

branches/auto/src/libcore/path.rs

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,8 @@ pub trait GenericPath {
6767
fn is_restricted(&self) -> bool;
6868

6969
fn normalize(&self) -> Self;
70+
71+
fn is_absolute(&self) -> bool;
7072
}
7173

7274
#[cfg(windows)]
@@ -379,10 +381,11 @@ impl ToStr for PosixPath {
379381
// FIXME (#3227): when default methods in traits are working, de-duplicate
380382
// PosixPath and WindowsPath, most of their methods are common.
381383
impl GenericPath for PosixPath {
382-
383384
fn from_str(s: &str) -> PosixPath {
384385
let mut components = ~[];
385-
for str::each_split_nonempty(s, |c| c == '/') |s| { components.push(s.to_owned()) }
386+
for str::each_split_nonempty(s, |c| c == '/') |s| {
387+
components.push(s.to_owned())
388+
}
386389
let is_absolute = (s.len() != 0 && s[0] == '/' as u8);
387390
return PosixPath { is_absolute: is_absolute,
388391
components: components }
@@ -540,6 +543,10 @@ impl GenericPath for PosixPath {
540543
// ..self
541544
}
542545
}
546+
547+
fn is_absolute(&self) -> bool {
548+
self.is_absolute
549+
}
543550
}
544551

545552

@@ -563,7 +570,6 @@ impl ToStr for WindowsPath {
563570

564571

565572
impl GenericPath for WindowsPath {
566-
567573
fn from_str(s: &str) -> WindowsPath {
568574
let host;
569575
let device;
@@ -809,6 +815,10 @@ impl GenericPath for WindowsPath {
809815
components: normalize(self.components)
810816
}
811817
}
818+
819+
fn is_absolute(&self) -> bool {
820+
self.is_absolute
821+
}
812822
}
813823

814824

branches/auto/src/librustc/front/test.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,6 @@ fn mk_std(cx: &TestCtxt) -> @ast::view_item {
274274
ast::view_item_use(
275275
~[@nospan(ast::view_path_simple(id_std,
276276
path_node(~[id_std]),
277-
ast::type_value_ns,
278277
cx.sess.next_node_id()))])
279278
} else {
280279
ast::view_item_extern_mod(id_std, ~[@mi],

branches/auto/src/librustc/middle/resolve.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1413,7 +1413,7 @@ pub impl Resolver {
14131413
14141414
let mut module_path = ~[];
14151415
match view_path.node {
1416-
view_path_simple(_, full_path, _, _) => {
1416+
view_path_simple(_, full_path, _) => {
14171417
let path_len = full_path.idents.len();
14181418
assert!(path_len != 0);
14191419
@@ -1435,7 +1435,7 @@ pub impl Resolver {
14351435
// Build up the import directives.
14361436
let module_ = self.get_module_from_parent(parent);
14371437
match view_path.node {
1438-
view_path_simple(binding, full_path, _, _) => {
1438+
view_path_simple(binding, full_path, _) => {
14391439
let source_ident = *full_path.idents.last();
14401440
let subclass = @SingleImport(binding,
14411441
source_ident);

0 commit comments

Comments
 (0)