Skip to content

Commit 7ad0513

Browse files
committed
---
yaml --- r: 189212 b: refs/heads/snap-stage3 c: aed31ee h: refs/heads/master v: v3
1 parent 17c767c commit 7ad0513

File tree

5 files changed

+10
-6
lines changed

5 files changed

+10
-6
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: 4d716decb5d9944bc0d79cdc51b03e3af69bc59c
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: 11ddfb8af0fcc69704e09b774de1a382e026f775
4+
refs/heads/snap-stage3: aed31ee08e9adff815e8a5df2499f2e4c6e7916b
55
refs/heads/try: 649d35e4d830b27806705dc5352c86ab6d6fd1a1
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d

branches/snap-stage3/src/librustc_llvm/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@
3131
#![feature(libc)]
3232
#![feature(link_args)]
3333
#![feature(staged_api)]
34-
#![feature(std_misc)]
3534
#![feature(path)]
35+
#![cfg_attr(unix, feature(std_misc))]
3636

3737
extern crate libc;
3838
#[macro_use] #[no_link] extern crate rustc_bitflags;

branches/snap-stage3/src/librustc_trans/lib.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,9 @@
4040
#![feature(unicode)]
4141
#![feature(io)]
4242
#![feature(path)]
43-
#![feature(os)]
4443
#![feature(path_ext)]
4544
#![feature(fs)]
4645
#![feature(hash)]
47-
#![feature(tempdir)]
4846

4947
extern crate arena;
5048
extern crate flate;

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

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1313,6 +1313,8 @@ mod tests {
13131313
check!(fs::set_permissions(&input, p));
13141314
check!(fs::copy(&input, &out));
13151315
assert!(check!(out.metadata()).permissions().readonly());
1316+
check!(fs::set_permissions(&input, attr.permissions()));
1317+
check!(fs::set_permissions(&out, attr.permissions()));
13161318
}
13171319

13181320
#[cfg(not(windows))] // FIXME(#10264) operation not permitted?
@@ -1396,10 +1398,13 @@ mod tests {
13961398
let attr = check!(fs::metadata(&file));
13971399
assert!(attr.permissions().readonly());
13981400

1399-
match fs::set_permissions(&tmpdir.join("foo"), p) {
1400-
Ok(..) => panic!("wanted a panic"),
1401+
match fs::set_permissions(&tmpdir.join("foo"), p.clone()) {
1402+
Ok(..) => panic!("wanted an error"),
14011403
Err(..) => {}
14021404
}
1405+
1406+
p.set_readonly(false);
1407+
check!(fs::set_permissions(&file, p));
14031408
}
14041409

14051410
#[test]

branches/snap-stage3/src/libstd/net/addr.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -592,6 +592,7 @@ mod tests {
592592
}
593593

594594
#[test]
595+
#[cfg(not(windows))]
595596
fn to_socket_addr_str_bad() {
596597
assert!(tsa("1200::AB00:1234::2552:7777:1313:34300").is_err());
597598
}

0 commit comments

Comments
 (0)