Skip to content

Commit a5aac52

Browse files
committed
---
yaml --- r: 277028 b: refs/heads/try c: a43eb4e h: refs/heads/master
1 parent 128fa9e commit a5aac52

File tree

8 files changed

+30
-10
lines changed

8 files changed

+30
-10
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: 6dbb0e86aec11050480beb76eade6fb805010ba7
33
refs/heads/snap-stage3: 235d77457d80b549dad3ac36d94f235208a1eafb
4-
refs/heads/try: 7bfaeaaf9c41439f9de0cfb03680909de2ca4004
4+
refs/heads/try: a43eb4e774f6d51b7012bba3d25212819ab0e3dc
55
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
66
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
77
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try/src/librustc_driver/driver.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ pub fn compile_input(sess: &Session,
194194
(control.after_analysis.callback)(state);
195195

196196
if control.after_analysis.stop == Compilation::Stop {
197-
return Err(0usize);
197+
return result.and_then(|_| Err(0usize));
198198
}
199199
}
200200

branches/try/src/librustc_typeck/diagnostics.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -632,7 +632,7 @@ recursion limit (which can be set via the `recursion_limit` attribute).
632632
633633
For a somewhat artificial example:
634634
635-
```compile_fail
635+
```compile_fail,ignore
636636
#![recursion_limit="2"]
637637
638638
struct Foo;

branches/try/src/libstd/fs.rs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -965,14 +965,21 @@ pub fn symlink_metadata<P: AsRef<Path>>(path: P) -> io::Result<Metadata> {
965965
fs_imp::lstat(path.as_ref()).map(Metadata)
966966
}
967967

968-
/// Rename a file or directory to a new name.
968+
/// Rename a file or directory to a new name, replacing the original file if
969+
/// `to` already exists.
969970
///
970971
/// This will not work if the new name is on a different mount point.
971972
///
972973
/// # Platform-specific behavior
973974
///
974975
/// This function currently corresponds to the `rename` function on Unix
975976
/// and the `MoveFileEx` function with the `MOVEFILE_REPLACE_EXISTING` flag on Windows.
977+
///
978+
/// Because of this, the behavior when both `from` and `to` exist differs. On
979+
/// Unix, if `from` is a directory, `to` must also be an (empty) directory. If
980+
/// `from` is not a directory, `to` must also be not a directory. In contrast,
981+
/// on Windows, `from` can be anything, but `to` must *not* be a directory.
982+
///
976983
/// Note that, this [may change in the future][changes].
977984
/// [changes]: ../io/index.html#platform-specific-behavior
978985
///

branches/try/src/test/run-pass/coerce-expect-unsized.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
// pretty-expanded FIXME #23616
12-
1311
#![allow(unknown_features)]
1412
#![feature(box_syntax)]
1513

branches/try/src/test/run-pass/deriving-via-extension-hash-enum.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
// pretty-expanded FIXME #23616
12-
1311
#[derive(Hash)]
1412
enum Foo {
1513
Bar(isize, char),

branches/try/src/test/run-pass/foreign-dupe.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@
1010

1111
// calling pin_thread and that's having weird side-effects.
1212

13-
// pretty-expanded FIXME #23616
14-
1513
#![feature(libc)]
1614

1715
mod rustrt1 {
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
// Copyright 2016 The Rust Project Developers. See the COPYRIGHT
2+
// file at the top-level directory of this distribution and at
3+
// http://rust-lang.org/COPYRIGHT.
4+
//
5+
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6+
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7+
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8+
// option. This file may not be copied, modified, or distributed
9+
// except according to those terms.
10+
11+
// compile-flags:--test
12+
// should-fail
13+
14+
#![doc(test(attr(deny(warnings))))]
15+
16+
/// ```no_run
17+
/// let a = 3;
18+
/// ```
19+
pub fn foo() {}

0 commit comments

Comments
 (0)