Skip to content

Commit b5ccda0

Browse files
committed
Auto merge of #40544 - frewsxcv:rollup, r=frewsxcv
Rollup of 18 pull requests - Successful merges: #40387, #40433, #40452, #40456, #40457, #40463, #40466, #40467, #40495, #40496, #40497, #40500, #40503, #40505, #40512, #40514, #40517, #40520 - Failed merges:
2 parents 0aeb9c1 + a2d2a97 commit b5ccda0

File tree

118 files changed

+913
-699
lines changed

Some content is hidden

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

118 files changed

+913
-699
lines changed

.gitmodules

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@
2020
url = https://github.com/rust-lang/libc.git
2121
[submodule "src/doc/nomicon"]
2222
path = src/doc/nomicon
23-
url = https://github.com/rust-lang-nursery/nomicon
23+
url = https://github.com/rust-lang-nursery/nomicon.git
2424
[submodule "src/tools/cargo"]
2525
path = cargo
26-
url = https://github.com/rust-lang/cargo
26+
url = https://github.com/rust-lang/cargo.git
2727
[submodule "reference"]
2828
path = src/doc/reference
2929
url = https://github.com/rust-lang-nursery/reference.git

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,8 +161,9 @@ If you’d like to build the documentation, it’s almost the same:
161161
$ ./x.py doc
162162
```
163163

164-
The generated documentation will appear in a top-level `doc` directory,
165-
created by the `make` rule.
164+
The generated documentation will appear under `doc` in the `build` directory for
165+
the ABI used. I.e., if the ABI was `x86_64-pc-windows-msvc`, the directory will be
166+
`build\x86_64-pc-windows-msvc\doc`.
166167

167168
## Notes
168169

RELEASES.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ Version 1.16.0 (2017-03-16)
44
Language
55
--------
66

7-
* Lifetimes in statics and consts default to `'static`. [RFC 1623]
87
* [The compiler's `dead_code` lint now accounts for type aliases][38051].
98
* [Uninhabitable enums (those without any variants) no longer permit wildcard
109
match patterns][38069]
@@ -5056,7 +5055,7 @@ Version 0.1 (2012-01-20)
50565055

50575056
* Compiler works with the following configurations:
50585057
* Linux: x86 and x86_64 hosts and targets
5059-
* MacOS: x86 and x86_64 hosts and targets
5058+
* macOS: x86 and x86_64 hosts and targets
50605059
* Windows: x86 hosts and targets
50615060

50625061
* Cross compilation / multi-target configuration supported.

src/bootstrap/bin/rustc.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ fn main() {
182182
if env::var("RUSTC_RPATH") == Ok("true".to_string()) {
183183
let rpath = if target.contains("apple") {
184184

185-
// Note that we need to take one extra step on OSX to also pass
185+
// Note that we need to take one extra step on macOS to also pass
186186
// `-Wl,-instal_name,@rpath/...` to get things to work right. To
187187
// do that we pass a weird flag to the compiler to get it to do
188188
// so. Note that this is definitely a hack, and we should likely

src/bootstrap/check.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ pub fn compiletest(build: &Build,
176176
cmd.arg("--docck-python").arg(build.python());
177177

178178
if build.config.build.ends_with("apple-darwin") {
179-
// Force /usr/bin/python on OSX for LLDB tests because we're loading the
179+
// Force /usr/bin/python on macOS for LLDB tests because we're loading the
180180
// LLDB plugin's compiled module which only works with the system python
181181
// (namely not Homebrew-installed python)
182182
cmd.arg("--lldb-python").arg("/usr/bin/python");

src/bootstrap/compile.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ pub fn rustc(build: &Build, target: &str, compiler: &Compiler) {
249249
cargo.env("CFG_LLVM_ROOT", s);
250250
}
251251
// Building with a static libstdc++ is only supported on linux right now,
252-
// not for MSVC or OSX
252+
// not for MSVC or macOS
253253
if build.config.llvm_static_stdcpp &&
254254
!target.contains("windows") &&
255255
!target.contains("apple") {

src/bootstrap/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -846,7 +846,7 @@ impl Build {
846846
.filter(|s| !s.starts_with("-O") && !s.starts_with("/O"))
847847
.collect::<Vec<_>>();
848848

849-
// If we're compiling on OSX then we add a few unconditional flags
849+
// If we're compiling on macOS then we add a few unconditional flags
850850
// indicating that we want libc++ (more filled out than libstdc++) and
851851
// we want to compile for 10.7. This way we can ensure that
852852
// LLVM/jemalloc/etc are all properly compiled.

src/bootstrap/sanity.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,10 +151,10 @@ pub fn check(build: &mut Build) {
151151
}
152152

153153
for target in build.config.target.iter() {
154-
// Can't compile for iOS unless we're on OSX
154+
// Can't compile for iOS unless we're on macOS
155155
if target.contains("apple-ios") &&
156156
!build.config.build.contains("apple-darwin") {
157-
panic!("the iOS target is only supported on OSX");
157+
panic!("the iOS target is only supported on macOS");
158158
}
159159

160160
// Make sure musl-root is valid if specified

src/doc/book/src/documentation.md

Lines changed: 2 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -170,8 +170,6 @@ more than one section:
170170
# fn foo() {}
171171
```
172172

173-
Let's discuss the details of these code blocks.
174-
175173
#### Code block annotations
176174

177175
To write some Rust code in a comment, use the triple graves:
@@ -183,23 +181,8 @@ To write some Rust code in a comment, use the triple graves:
183181
# fn foo() {}
184182
```
185183

186-
If you want something that's not Rust code, you can add an annotation:
187-
188-
```rust
189-
/// ```c
190-
/// printf("Hello, world\n");
191-
/// ```
192-
# fn foo() {}
193-
```
194-
195-
This will highlight according to whatever language you're showing off.
196-
If you're only showing plain text, choose `text`.
197-
198-
It's important to choose the correct annotation here, because `rustdoc` uses it
199-
in an interesting way: It can be used to actually test your examples in a
200-
library crate, so that they don't get out of date. If you have some C code but
201-
`rustdoc` thinks it's Rust because you left off the annotation, `rustdoc` will
202-
complain when trying to generate the documentation.
184+
This will add code highlighting. If you are only showing plain text, put `text`
185+
instead of `rust` after the triple graves (see below).
203186

204187
## Documentation as tests
205188

0 commit comments

Comments
 (0)