Skip to content

Commit bd7138d

Browse files
committed
auto merge of #18368 : alexcrichton/rust/rollup, r=alexcrichton
2 parents e05c3b7 + 4dc06dc commit bd7138d

Some content is hidden

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

86 files changed

+1588
-646
lines changed

.mailmap

+98-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,104 @@
55
# email addresses.
66
#
77

8-
Elly Jones <[email protected]>
9-
8+
Aaron Todd <[email protected]>
9+
10+
11+
Alex Rønne Petersen <[email protected]>
12+
13+
14+
15+
16+
17+
18+
Benjamin Jackman <[email protected]>
19+
20+
blake2-ppc <[email protected]> <blake2-ppc>
21+
22+
23+
Brian Dawn <[email protected]>
24+
Carl-Anton Ingmarsson <[email protected]> <[email protected]>
25+
Carol Willing <[email protected]>
26+
Chris Pressey <[email protected]>
27+
28+
David Klein <[email protected]>
29+
30+
Damien Schoof <[email protected]>
31+
Derek Chiang <[email protected]> Derek Chiang (Enchi Jiang) <[email protected]>
32+
33+
34+
Eduardo Bautista <[email protected]> <=>
35+
36+
Elly Fong-Jones <[email protected]>
37+
38+
39+
Eric Holmes <[email protected]>
40+
41+
42+
Evgeny Sologubov
43+
Falco Hirschenberger <[email protected]> <[email protected]>
44+
Gareth Daniel Smith <[email protected]>
45+
46+
47+
48+
49+
50+
Ilyong Cho <[email protected]>
51+
J. J. Weber <[email protected]>
52+
Jakub Bukaj <[email protected]>
53+
54+
55+
56+
57+
58+
Jeremy Letang <[email protected]>
59+
60+
61+
62+
63+
1064
Junyoung Cho <[email protected]>
65+
66+
67+
68+
Kyeongwoon Lee <[email protected]>
69+
Lee Wondong <[email protected]>
70+
Lennart Kudling <[email protected]>
71+
72+
73+
74+
75+
Luke Metz <[email protected]>
76+
77+
Makoto Nakashima <[email protected]> gifnksm <[email protected]>
78+
Margaret Meyerhofer <[email protected]> <mmeyerho@andrew>
79+
Mark Sinclair <[email protected]>
80+
Mark Sinclair <[email protected]> =Mark Sinclair <[email protected]>
81+
82+
Matthew Auld <[email protected]>
83+
1184
Matthijs Hofstra <[email protected]>
85+
Michael Williams <[email protected]>
86+
Michael Woerister <michaelwoerister@gmail> <[email protected]>
87+
Michael Woerister <michaelwoerister@gmail> <michaelwoerister@posteo>
88+
89+
Philipp Brüschweiler <[email protected]> <[email protected]>
90+
Philipp Brüschweiler <[email protected]> <[email protected]>
91+
Pradeep Kumar <[email protected]>
92+
1293
Rob Arnold <[email protected]>
94+
Robert Gawdzik <[email protected]> Robert Gawdzik ☢ <[email protected]>
95+
Robert Millar <[email protected]>
96+
Ryan Scheel <[email protected]>
97+
Seonghyun Kim <[email protected]>
98+
Simon Barber-Dueck <[email protected]> Simon BD <simon@server>
99+
100+
startling <[email protected]>
101+
102+
Steven Stewart-Gallus <[email protected]> <[email protected]>
103+
104+
105+
106+
107+
108+
Zack Slayton <[email protected]>

configure

+1
Original file line numberDiff line numberDiff line change
@@ -989,6 +989,7 @@ do
989989
make_dir $h/test/doc-guide-container
990990
make_dir $h/test/doc-guide-tasks
991991
make_dir $h/test/doc-guide-plugin
992+
make_dir $h/test/doc-guide-crates
992993
make_dir $h/test/doc-rust
993994
done
994995

mk/docs.mk

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
######################################################################
2828
DOCS := index intro tutorial guide guide-ffi guide-macros guide-lifetimes \
2929
guide-tasks guide-container guide-pointers guide-testing \
30-
guide-plugin complement-bugreport \
30+
guide-plugin guide-crates complement-bugreport \
3131
complement-lang-faq complement-design-faq complement-project-faq rust \
3232
rustdoc guide-unsafe guide-strings reference
3333

src/doc/guide-crates.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,7 @@ fn main() {
452452
453453
Rust will give us a compile-time error:
454454
455-
```{rust,ignore}
455+
```{notrust,ignore}
456456
Compiling phrases v0.0.1 (file:///home/you/projects/phrases)
457457
/home/you/projects/phrases/src/main.rs:4:5: 4:40 error: a value named `hello` has already been imported in this module
458458
/home/you/projects/phrases/src/main.rs:4 use phrases::japanese::greetings::hello;

src/doc/guide-plugin.md

+3-4
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ extern crate rustc;
5656
5757
use syntax::codemap::Span;
5858
use syntax::parse::token::{IDENT, get_ident};
59-
use syntax::ast::{TokenTree, TTTok};
59+
use syntax::ast::{TokenTree, TtToken};
6060
use syntax::ext::base::{ExtCtxt, MacResult, DummyResult, MacExpr};
6161
use syntax::ext::build::AstBuilder; // trait for expr_uint
6262
use rustc::plugin::Registry;
@@ -71,7 +71,7 @@ fn expand_rn(cx: &mut ExtCtxt, sp: Span, args: &[TokenTree])
7171
("I", 1)];
7272
7373
let text = match args {
74-
[TTTok(_, IDENT(s, _))] => get_ident(s).to_string(),
74+
[TtToken(_, IDENT(s, _))] => get_ident(s).to_string(),
7575
_ => {
7676
cx.span_err(sp, "argument should be a single identifier");
7777
return DummyResult::any(sp);
@@ -151,8 +151,7 @@ higher-level syntax elements like expressions:
151151
fn expand_foo(cx: &mut ExtCtxt, sp: Span, args: &[TokenTree])
152152
-> Box<MacResult+'static> {
153153
154-
let mut parser =
155-
parse::new_parser_from_tts(cx.parse_sess(), cx.cfg(), args.to_slice())
154+
let mut parser = cx.new_parser_from_tts(args);
156155
157156
let expr: P<Expr> = parser.parse_expr();
158157
```

src/doc/guide-pointers.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,7 @@ great detail, so if you want the full details, check that out.
416416

417417
In general, prefer stack allocation over heap allocation. Using references to
418418
stack allocated information is preferred whenever possible. Therefore,
419-
references are the default pointer type you should use, unless you have
419+
references are the default pointer type you should use, unless you have a
420420
specific reason to use a different type. The other types of pointers cover when
421421
they're appropriate to use in their own best practices sections.
422422

src/doc/guide-strings.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ Rust has two main types of strings: `&str` and `String`.
1414

1515
# &str
1616

17-
The first kind is a `&str`. This is pronounced a 'string slice.' String literals
18-
are of the type `&str`:
17+
The first kind is a `&str`. This is pronounced a 'string slice'.
18+
String literals are of the type `&str`:
1919

2020
```{rust}
2121
let string = "Hello there.";
@@ -121,8 +121,8 @@ Both of these lines will print `12`.
121121
To compare a String to a constant string, prefer `as_slice()`...
122122

123123
```{rust}
124-
fn compare(string: String) {
125-
if string.as_slice() == "Hello" {
124+
fn compare(x: String) {
125+
if x.as_slice() == "Hello" {
126126
println!("yes");
127127
}
128128
}
@@ -131,8 +131,8 @@ fn compare(string: String) {
131131
... over `to_string()`:
132132

133133
```{rust}
134-
fn compare(string: String) {
135-
if string == "Hello".to_string() {
134+
fn compare(x: String) {
135+
if x == "Hello".to_string() {
136136
println!("yes");
137137
}
138138
}

0 commit comments

Comments
 (0)