Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 1a8b4e9

Browse files
committedDec 2, 2018
Auto merge of #56437 - Centril:rollup, r=Centril
Rollup of 14 pull requests Successful merges: - #56110 (Consider references and unions potentially inhabited during privacy-respecting inhabitedness checks) - #56305 (update miri) - #56366 (Stabilize self_in_typedefs feature) - #56372 (Refer to the second borrow as the "second borrow" in E0501.rs) - #56394 (Deal with EINTR in net timeout tests) - #56395 (Stabilize dbg!(...)) - #56401 (Move VecDeque::resize_with out of the impl<T:Clone> block) - #56402 (Improve the unstable book example for #[marker] trait) - #56412 (Update tracking issue for `extern_crate_self`) - #56416 (Remove unneeded body class selector) - #56418 (Fix failing tidy (line endings on Windows)) - #56419 (Remove some uses of try!) - #56424 (Mention raw-ident syntax) - #56432 (Update issue number of `shrink_to` methods to point the tracking issue) Failed merges: r? @ghost
2 parents 8660eba + c03c34c commit 1a8b4e9

File tree

66 files changed

+291
-290
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

66 files changed

+291
-290
lines changed
 

‎Cargo.lock

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -624,6 +624,15 @@ name = "difference"
624624
version = "2.0.0"
625625
source = "registry+https://github.com/rust-lang/crates.io-index"
626626

627+
[[package]]
628+
name = "directories"
629+
version = "1.0.2"
630+
source = "registry+https://github.com/rust-lang/crates.io-index"
631+
dependencies = [
632+
"libc 0.2.43 (registry+https://github.com/rust-lang/crates.io-index)",
633+
"winapi 0.3.6 (registry+https://github.com/rust-lang/crates.io-index)",
634+
]
635+
627636
[[package]]
628637
name = "dlmalloc"
629638
version = "0.0.0"
@@ -1316,6 +1325,7 @@ dependencies = [
13161325
"cargo_metadata 0.6.2 (registry+https://github.com/rust-lang/crates.io-index)",
13171326
"colored 1.6.0 (registry+https://github.com/rust-lang/crates.io-index)",
13181327
"compiletest_rs 0.3.17 (registry+https://github.com/rust-lang/crates.io-index)",
1328+
"directories 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)",
13191329
"env_logger 0.5.12 (registry+https://github.com/rust-lang/crates.io-index)",
13201330
"log 0.4.5 (registry+https://github.com/rust-lang/crates.io-index)",
13211331
"vergen 3.0.3 (registry+https://github.com/rust-lang/crates.io-index)",
@@ -3288,6 +3298,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
32883298
"checksum derive_more 0.13.0 (registry+https://github.com/rust-lang/crates.io-index)" = "3f57d78cf3bd45270dad4e70c21ec77a960b36c7a841ff9db76aaa775a8fb871"
32893299
"checksum diff 0.1.11 (registry+https://github.com/rust-lang/crates.io-index)" = "3c2b69f912779fbb121ceb775d74d51e915af17aaebc38d28a592843a2dd0a3a"
32903300
"checksum difference 2.0.0 (registry+https://github.com/rust-lang/crates.io-index)" = "524cbf6897b527295dff137cec09ecf3a05f4fddffd7dfcd1585403449e74198"
3301+
"checksum directories 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)" = "72d337a64190607d4fcca2cb78982c5dd57f4916e19696b48a575fa746b6cb0f"
32913302
"checksum either 1.5.0 (registry+https://github.com/rust-lang/crates.io-index)" = "3be565ca5c557d7f59e7cfcf1844f9e3033650c929c6566f511e8005f205c1d0"
32923303
"checksum elasticlunr-rs 2.3.3 (registry+https://github.com/rust-lang/crates.io-index)" = "4837d77a1e157489a3933b743fd774ae75074e0e390b2b7f071530048a0d87ee"
32933304
"checksum ena 0.11.0 (registry+https://github.com/rust-lang/crates.io-index)" = "f56c93cc076508c549d9bb747f79aa9b4eb098be7b8cad8830c3137ef52d1e00"

‎src/bootstrap/doc.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -915,13 +915,13 @@ fn symlink_dir_force(config: &Config, src: &Path, dst: &Path) -> io::Result<()>
915915
}
916916
if let Ok(m) = fs::symlink_metadata(dst) {
917917
if m.file_type().is_dir() {
918-
try!(fs::remove_dir_all(dst));
918+
fs::remove_dir_all(dst)?;
919919
} else {
920920
// handle directory junctions on windows by falling back to
921921
// `remove_dir`.
922-
try!(fs::remove_file(dst).or_else(|_| {
922+
fs::remove_file(dst).or_else(|_| {
923923
fs::remove_dir(dst)
924-
}));
924+
})?;
925925
}
926926
}
927927

0 commit comments

Comments
 (0)
Please sign in to comment.