Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rollup of 19 pull requests #40357

Closed
wants to merge 43 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
3aa6f18
add unstable book to the bookshelf
steveklabnik Feb 28, 2017
ae2c9d2
fix link
steveklabnik Mar 2, 2017
6698fb6
Add catch expr to AST and disallow catch as a struct name
cramertj Feb 17, 2017
ace24bb
Temporarily prefix catch block with do keyword
cramertj Mar 3, 2017
b55f1e5
Fix description of closure coercion feature
est31 Mar 4, 2017
3a97fc9
Fix botched member variable rename
shepmaster Mar 4, 2017
cac4bf3
Restore creating the channel-rust-$channel-date.txt files
shepmaster Mar 3, 2017
5a644f4
remove nomicon
steveklabnik Mar 3, 2017
4369aee
import nomicon submodule
steveklabnik Mar 3, 2017
03b83a0
clarify docs for Args and ArgsOs
oconnor663 Mar 5, 2017
86bad49
Issue #39688 - Help people find String::as_bytes() for UTF-8 r? @stev…
jdhorwitz Mar 3, 2017
f121e61
Fix text formatting in README
mmatyas Mar 6, 2017
2e5b380
Remove extra space in test description (of a mod test)
malbarbo Mar 6, 2017
2bb2a29
Improve the style of the sidebar in rustdoc output
wesleywiser Feb 16, 2017
4f424b3
Add compile-fail tests for catch expr in match or condition
cramertj Mar 7, 2017
acd8fe8
Fix a typo in the docs
oli-obk Mar 7, 2017
4fd93df
Update libc to 0.2.21
malbarbo Mar 7, 2017
f283141
README formatting in configure/make section
joelgallant Mar 7, 2017
b5533d2
Update link to COMPILER_TESTS.md in CONTRIBUTING.md
crazymerlyn Mar 7, 2017
df61719
Added remove_from to vec.rs
madseagames Dec 3, 2016
65ac1e9
Add missing urls in some macros doc
GuillaumeGomez Mar 7, 2017
025bf95
Clarify handling of `src` in `ptr::write`
tbu- Mar 7, 2017
f3a2f90
Document why `str.to_{lower,upper}case` return `String`
tbu- Mar 7, 2017
e412af2
rustbuild: Assert directory creation succeeds
alexcrichton Mar 7, 2017
cd9e0e7
Rollup merge of #39921 - cramertj:add-catch-to-ast, r=nikomatsakis
frewsxcv Mar 8, 2017
2bdd89b
Rollup merge of #40154 - steveklabnik:link-unstable-book, r=frewsxcv
frewsxcv Mar 8, 2017
ee3fe63
Rollup merge of #40222 - steveklabnik:extract-nomicon, r=alexcrichton
frewsxcv Mar 8, 2017
e00c7e4
Rollup merge of #40225 - shepmaster:restore-build-date-file, r=alexcr…
frewsxcv Mar 8, 2017
cf806ea
Rollup merge of #40226 - jdhorwitz:master, r=frewsxcv
frewsxcv Mar 8, 2017
ef0d01c
Rollup merge of #40258 - est31:master, r=nikomatsakis
frewsxcv Mar 8, 2017
9bee49f
Rollup merge of #40265 - wesleywiser:rustdoc_style, r=GuillaumeGomez
frewsxcv Mar 8, 2017
a49340f
Rollup merge of #40283 - oconnor663:args_docs, r=alexcrichton
frewsxcv Mar 8, 2017
2563230
Rollup merge of #40292 - mmatyas:readme_fix, r=alexcrichton
frewsxcv Mar 8, 2017
a40a452
Rollup merge of #40293 - malbarbo:rustdoctest, r=alexcrichton
frewsxcv Mar 8, 2017
6232763
Rollup merge of #40316 - oli-obk:patch-4, r=GuillaumeGomez
frewsxcv Mar 8, 2017
e652321
Rollup merge of #40317 - malbarbo:update-libc, r=alexcrichton
frewsxcv Mar 8, 2017
1278188
Rollup merge of #40321 - joelgallant:joelgallant-readme, r=aturon
frewsxcv Mar 8, 2017
b1907e3
Rollup merge of #40325 - eddyb:pr38143, r=alexcrichton
frewsxcv Mar 8, 2017
52fdf16
Rollup merge of #40326 - crazymerlyn:fix-doc-link, r=alexcrichton
frewsxcv Mar 8, 2017
bf00978
Rollup merge of #40327 - GuillaumeGomez:macros-urls, r=frewsxcv
frewsxcv Mar 8, 2017
38d15ad
Rollup merge of #40333 - tbu-:pr_doc_ptr_write, r=alexcrichton
frewsxcv Mar 8, 2017
1911c0b
Rollup merge of #40335 - tbu-:pr_doc_str_to_somecase, r=steveklabnik
frewsxcv Mar 8, 2017
ed9e79b
Rollup merge of #40337 - alexcrichton:racy-dirs, r=brson
frewsxcv Mar 8, 2017
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@
[submodule "src/liblibc"]
path = src/liblibc
url = https://github.com/rust-lang/libc.git
[submodule "src/doc/nomicon"]
path = src/doc/nomicon
url = https://github.com/rust-lang-nursery/nomicon
[submodule "src/tools/cargo"]
path = src/tools/cargo
url = https://github.com/rust-lang/cargo
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -406,5 +406,5 @@ are:
[rr]: https://doc.rust-lang.org/book/README.html
[tlgba]: http://tomlee.co/2014/04/a-more-detailed-tour-of-the-rust-compiler/
[ro]: http://www.rustaceans.org/
[rctd]: ./COMPILER_TESTS.md
[rctd]: ./src/test/COMPILER_TESTS.md
[cheatsheet]: https://buildbot.rust-lang.org/homu/
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ $ ./configure
$ make && sudo make install
```

When using the configure script, the generated config.mk` file may override the
When using the configure script, the generated `config.mk` file may override the
`config.toml` file. To go back to the `config.toml` file, delete the generated
`config.mk` file.

Expand Down
25 changes: 22 additions & 3 deletions src/build_helper/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,11 @@

extern crate filetime;

use std::{fs, env};
use std::fs::File;
use std::process::{Command, Stdio};
use std::io;
use std::path::{Path, PathBuf};
use std::process::{Command, Stdio};
use std::{fs, env};

use filetime::FileTime;

Expand Down Expand Up @@ -196,7 +197,7 @@ pub fn native_lib_boilerplate(src_name: &str,

let out_dir = env::var_os("RUSTBUILD_NATIVE_DIR").unwrap_or(env::var_os("OUT_DIR").unwrap());
let out_dir = PathBuf::from(out_dir).join(out_name);
let _ = fs::create_dir_all(&out_dir);
t!(create_dir_racy(&out_dir));
println!("cargo:rustc-link-lib=static={}", link_name);
println!("cargo:rustc-link-search=native={}", out_dir.join(search_subdir).display());

Expand All @@ -223,3 +224,21 @@ fn fail(s: &str) -> ! {
println!("\n\n{}\n\n", s);
std::process::exit(1);
}

fn create_dir_racy(path: &Path) -> io::Result<()> {
match fs::create_dir(path) {
Ok(()) => return Ok(()),
Err(ref e) if e.kind() == io::ErrorKind::AlreadyExists => return Ok(()),
Err(ref e) if e.kind() == io::ErrorKind::NotFound => {}
Err(e) => return Err(e),
}
match path.parent() {
Some(p) => try!(create_dir_racy(p)),
None => return Err(io::Error::new(io::ErrorKind::Other, "failed to create whole tree")),
}
match fs::create_dir(path) {
Ok(()) => Ok(()),
Err(ref e) if e.kind() == io::ErrorKind::AlreadyExists => Ok(()),
Err(e) => Err(e),
}
}
2 changes: 2 additions & 0 deletions src/doc/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ Rust provides a number of book-length sets of documentation, collectively
nicknamed 'The Rust Bookshelf.'

* [The Rust Programming Language][book] teaches you how to program in Rust.
* [The Unstable Book][unstable-book] has documentation for unstable features.
* [The Rustonomicon][nomicon] is your guidebook to the dark arts of unsafe Rust.
* [The Reference][ref] is not a formal spec, but is more detailed and comprehensive than the book.

Expand All @@ -44,4 +45,5 @@ landed before then. That work is being tracked [here][38643].
[err]: error-index.html
[book]: book/index.html
[nomicon]: nomicon/index.html
[unstable-book]: unstable-book/index.html

1 change: 1 addition & 0 deletions src/doc/nomicon
Submodule nomicon added at d08fe9
38 changes: 0 additions & 38 deletions src/doc/nomicon/src/README.md

This file was deleted.

55 changes: 0 additions & 55 deletions src/doc/nomicon/src/SUMMARY.md

This file was deleted.

7 changes: 0 additions & 7 deletions src/doc/nomicon/src/arc-and-mutex.md

This file was deleted.

Loading