Skip to content

Rolling up PRs in the queue #18368

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

Merged
merged 80 commits into from
Oct 28, 2014
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
80 commits
Select commit Hold shift + click to select a range
cb5593a
Guide: Change >= to > in closure
cakebaker Oct 22, 2014
de06faf
Use local cache when there are unbound type variables and where claus…
nikomatsakis Oct 22, 2014
ebdc304
Fixed single quote around string slice and simplify example
areski Oct 22, 2014
70fe20a
Fix codegen breaking aliasing rules for functions with sret results
dotdash Oct 22, 2014
0c3ad8b
build the crates guide
steveklabnik Oct 23, 2014
941d90d
Add syntax::print::pprint::view_item_to_string
SimonSapin Oct 23, 2014
0b8bd6f
plugin-guide: nicer creation of the parser
globin Oct 23, 2014
398b287
Register new snapshots
alexcrichton Oct 23, 2014
53ac852
Fail immediately if linking returns status code != 0
msiemens Oct 22, 2014
d7e910e
Update .mailmap
Oct 23, 2014
e4b913f
s/vtable2/vtable
nrc Oct 23, 2014
4a8d712
Use type-safe wrapper for TypeFlags
nikomatsakis Oct 24, 2014
87a5f0d
Make the Vec data structure layout match raw::Slice.
Oct 25, 2014
1221999
Guide: Fix off-by-one error
cakebaker Oct 25, 2014
81b7e62
Prevent pointer -> int casts in constexprs
arielb1 Oct 25, 2014
3942ab9
make the core::raw struct representation defined
thestinger Oct 25, 2014
019a982
Guide: drop :d formatting where unnecessary
chastell Oct 25, 2014
6a22454
Guide: Cargo now adds bang and drops the semicolon for ‘Hello, world’
chastell Oct 25, 2014
eb903b4
Guide: update Testing output and fix contents to match
chastell Oct 25, 2014
2c744c7
Add test cases for E-needstest issues
Oct 25, 2014
971d776
Add Span and separate open/close delims to TTDelim
brendanzab Oct 22, 2014
ec3f020
Rename TokenTree variants for clarity
brendanzab Oct 22, 2014
6a50b4d
Prevent some vector reallocations
brendanzab Oct 22, 2014
dfb4163
Use standard capitalisation for TokenTree variants
brendanzab Oct 22, 2014
34dacb8
Reduce the size of the TokenTree
brendanzab Oct 22, 2014
94d6eee
Add a KleeneOp enum for clarity
brendanzab Oct 23, 2014
9acce10
Finish cfg syntax transition
sfackler Oct 25, 2014
6598d33
Update parse::test::string_to_tts_1 test
brendanzab Oct 25, 2014
f29535d
Fix bug #17982.
vadimcn Oct 26, 2014
bed5a7d
Add MemWriter::from_vec
sfackler Oct 26, 2014
3040320
Fix spelling mistakes in comments.
jbcrail Oct 26, 2014
2877e47
Ensure unboxed closure upvars are marked as used mutably
bkoropoff Oct 26, 2014
1062955
Tweak mem categorization of upvar mutability
bkoropoff Oct 26, 2014
7129f17
Improve diagnostics that result from the fix for #18335
bkoropoff Oct 26, 2014
6be48ea
Add regression test for #18238 and #18336
bkoropoff Oct 26, 2014
5662bba
Add regression test for #18335
bkoropoff Oct 26, 2014
79e05e9
Implement Show for `Arc<T>`
aochagavia Oct 26, 2014
622ae41
Guide: Add link to FFI explanation
cakebaker Oct 26, 2014
f16744c
Fix a typecheck regression with constant borrowed pointers in patterns
Oct 26, 2014
d257b37
Guide: motivate Box and Rc pointers with need, uses, benefits, and ex…
Oct 22, 2014
8a4bd84
Added Encodable and Decodable for Arc<T>.
csherratt Oct 26, 2014
e5f7090
Preserve struct field pattern shorthand in the prettyprinter.
kevinmehall Oct 27, 2014
25650e0
Guide: Add missing "a"
cakebaker Oct 27, 2014
b8c4eb3
Fix undefined behavior in std::ascii
aochagavia Oct 27, 2014
9dab887
Show a note when closure field is called as method
aochagavia Oct 26, 2014
2ce77b3
Add test for issue 18343
aochagavia Oct 27, 2014
83e91fb
rollup merge of #18221 : jkleint/guide-boxes
alexcrichton Oct 27, 2014
b3c676e
rollup merge of #18229 : bjz/ttdelim
alexcrichton Oct 27, 2014
da57aa5
rollup merge of #18231 : cakebaker/fix_greater_than_forty_two_closure
alexcrichton Oct 27, 2014
0c756de
rollup merge of #18235 : nikomatsakis/issue-18209
alexcrichton Oct 27, 2014
bb70ce6
rollup merge of #18239 : msiemens/fix-ice-rename-failed
alexcrichton Oct 27, 2014
a6883d4
rollup merge of #18244 : areski/pr-fix-string-doc
alexcrichton Oct 27, 2014
e953773
rollup merge of #18250 : dotdash/fix_aliasing
alexcrichton Oct 27, 2014
6f65ad1
rollup merge of #18251 : steveklabnik/build_module_guide
alexcrichton Oct 27, 2014
2f8ee08
rollup merge of #18256 : SimonSapin/view_item_to_string
alexcrichton Oct 27, 2014
ecdb19c
rollup merge of #18257 : globin/master
alexcrichton Oct 27, 2014
dc5a18c
rollup merge of #18265 : jakub-/mailmap
alexcrichton Oct 27, 2014
dea37d7
rollup merge of #18266 : nick29581/vtable2.rs
alexcrichton Oct 27, 2014
ee32c04
rollup merge of #18303 : cgaebel/make-vec-match-slice
alexcrichton Oct 27, 2014
0c736c7
rollup merge of #18309 : cakebaker/fix_off_by_one
alexcrichton Oct 27, 2014
abfc2f3
rollup merge of #18315 : arielb1/constexpr-addr
alexcrichton Oct 27, 2014
9dc9ecc
rollup merge of #18316 : thestinger/raw
alexcrichton Oct 27, 2014
54647bd
rollup merge of #18320 : chastell/guide_simplify_formatting
alexcrichton Oct 27, 2014
dac3234
rollup merge of #18321 : chastell/guide_refresh_testing_output
alexcrichton Oct 27, 2014
f1118cc
rollup merge of #18324 : jakub-/eneedstest
alexcrichton Oct 27, 2014
650214b
rollup merge of #18326 : sfackler/cfg-final
alexcrichton Oct 27, 2014
ed7f4a8
rollup merge of #18327 : vadimcn/17982
alexcrichton Oct 27, 2014
287df9e
rollup merge of #18329 : sfackler/memwriter-clear
alexcrichton Oct 27, 2014
175d6a7
rollup merge of #18332 : jbcrail/fix-comments
alexcrichton Oct 27, 2014
1cc938a
rollup merge of #18337 : bkoropoff/unboxed-imm-upvar-fixes
alexcrichton Oct 27, 2014
cfeff3e
rollup merge of #18344 : aochagavia/show-arc
alexcrichton Oct 27, 2014
15547e1
rollup merge of #18346 : aochagavia/closure-fields
alexcrichton Oct 27, 2014
a1d719d
rollup merge of #18347 : cakebaker/ffi
alexcrichton Oct 27, 2014
c381752
rollup merge of #18356 : jakub-/const-pattern-suptype
alexcrichton Oct 27, 2014
20b9897
rollup merge of #18362 : kevinmehall/pprint-struct-pat-shorthand
alexcrichton Oct 27, 2014
c5cc27f
rollup merge of #18364 : cakebaker/missing_a
alexcrichton Oct 27, 2014
6e9d5a6
rollup merge of #18366 : aochagavia/ascii
alexcrichton Oct 27, 2014
40811f8
rollup merge of #18334 : csherratt/arc-encodable
alexcrichton Oct 27, 2014
a33d761
Test fixes and rebase conflicts from rollup
alexcrichton Oct 27, 2014
4dc06dc
rollup merge of #18259 : alexcrichton/snapshots
alexcrichton Oct 27, 2014
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
100 changes: 98 additions & 2 deletions .mailmap
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,104 @@
# email addresses.
#

Elly Jones <[email protected]>
ILyoan <[email protected]>
Aaron Todd <[email protected]>
Ahmed Charles <[email protected]> <[email protected]>
Alex Lyon <[email protected]> <[email protected]>
Alex Rønne Petersen <[email protected]>
Andreas Gal <[email protected]> <[email protected]>
Andrew Poelstra <[email protected]> <[email protected]>
Anton Löfgren <[email protected]> <[email protected]>
Ariel Ben-Yehuda <[email protected]> <[email protected]>
Austin Seipp <[email protected]> <[email protected]>
Ben Alpert <[email protected]> <[email protected]>
Benjamin Jackman <[email protected]>
Björn Steinbrink <[email protected]> <[email protected]>
blake2-ppc <[email protected]> <blake2-ppc>
Boris Egorov <[email protected]> <[email protected]>
Brian Anderson <[email protected]> <[email protected]>
Brian Dawn <[email protected]>
Carl-Anton Ingmarsson <[email protected]> <[email protected]>
Carol Willing <[email protected]>
Chris Pressey <[email protected]>
Clark Gaebel <[email protected]> <[email protected]>
David Klein <[email protected]>
David Manescu <[email protected]> <[email protected]>
Damien Schoof <[email protected]>
Derek Chiang <[email protected]> Derek Chiang (Enchi Jiang) <[email protected]>
Dylan Braithwaite <[email protected]> <[email protected]>
Eduardo Bautista <[email protected]> <[email protected]>
Eduardo Bautista <[email protected]> <=>
Elliott Slaughter <[email protected]> <[email protected]>
Elly Fong-Jones <[email protected]>
Eric Holk <[email protected]> <[email protected]>
Eric Holk <[email protected]> <[email protected]>
Eric Holmes <[email protected]>
Eric Reed <[email protected]> <[email protected]>
Erick Tryzelaar <[email protected]> <[email protected]>
Evgeny Sologubov
Falco Hirschenberger <[email protected]> <[email protected]>
Gareth Daniel Smith <[email protected]>
Georges Dubus <[email protected]> <[email protected]>
Graham Fawcett <[email protected]> <[email protected]>
Graydon Hoare <[email protected]> <[email protected]>
Heather <[email protected]> <[email protected]>
Heather <[email protected]> <[email protected]>
Ilyong Cho <[email protected]>
J. J. Weber <[email protected]>
Jakub Bukaj <[email protected]>
Jakub Bukaj <[email protected]> <[email protected]>
James Deng <[email protected]> <[email protected]>
James Miller <[email protected]> <[email protected]>
Jason Orendorff <[email protected]> <[email protected]>
Jason Orendorff <[email protected]> <[email protected]>
Jeremy Letang <[email protected]>
Jihyun Yu <[email protected]> jihyun <[email protected]>
Jihyun Yu <[email protected]> <[email protected]>
John Clements <[email protected]> <[email protected]>
Jorge Aparicio <[email protected]> <[email protected]>
Jonathan Bailey <[email protected]> <[email protected]>
Junyoung Cho <[email protected]>
Jyun-Yan You <[email protected]> <[email protected]>
Kang Seonghoon <[email protected]> <[email protected]>
Keegan McAllister <[email protected]> <[email protected]>
Kyeongwoon Lee <[email protected]>
Lee Wondong <[email protected]>
Lennart Kudling <[email protected]>
Lindsey Kuper <[email protected]> <[email protected]>
Lindsey Kuper <[email protected]> <[email protected]>
Luqman Aden <[email protected]> <[email protected]>
Luqman Aden <[email protected]> <[email protected]>
Luke Metz <[email protected]>
Makoto Nakashima <[email protected]> <[email protected]>
Makoto Nakashima <[email protected]> gifnksm <[email protected]>
Margaret Meyerhofer <[email protected]> <mmeyerho@andrew>
Mark Sinclair <[email protected]>
Mark Sinclair <[email protected]> =Mark Sinclair <[email protected]>
Matt Brubeck <[email protected]> <[email protected]>
Matthew Auld <[email protected]>
Matthew McPherrin <[email protected]> <[email protected]>
Matthijs Hofstra <[email protected]>
Michael Williams <[email protected]>
Michael Woerister <michaelwoerister@gmail> <[email protected]>
Michael Woerister <michaelwoerister@gmail> <michaelwoerister@posteo>
Neil Pankey <[email protected]> <[email protected]>
Philipp Brüschweiler <[email protected]> <[email protected]>
Philipp Brüschweiler <[email protected]> <[email protected]>
Pradeep Kumar <[email protected]>
Richard Diamond <[email protected]> <[email protected]>
Rob Arnold <[email protected]>
Robert Gawdzik <[email protected]> Robert Gawdzik ☢ <[email protected]>
Robert Millar <[email protected]>
Ryan Scheel <[email protected]>
Seonghyun Kim <[email protected]>
Simon Barber-Dueck <[email protected]> Simon BD <simon@server>
Simon Sapin <[email protected]> <[email protected]>
startling <[email protected]>
Steven Fackler <[email protected]> <[email protected]>
Steven Stewart-Gallus <[email protected]> <[email protected]>
Tim Chevalier <[email protected]> <[email protected]>
Torsten Weber <[email protected]> <[email protected]>
William Ting <[email protected]> <[email protected]>
Youngsoo Son <[email protected]> <[email protected]>
Zack Corr <[email protected]> <[email protected]>
Zack Slayton <[email protected]>
1 change: 1 addition & 0 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -989,6 +989,7 @@ do
make_dir $h/test/doc-guide-container
make_dir $h/test/doc-guide-tasks
make_dir $h/test/doc-guide-plugin
make_dir $h/test/doc-guide-crates
make_dir $h/test/doc-rust
done

Expand Down
2 changes: 1 addition & 1 deletion mk/docs.mk
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
######################################################################
DOCS := index intro tutorial guide guide-ffi guide-macros guide-lifetimes \
guide-tasks guide-container guide-pointers guide-testing \
guide-plugin complement-bugreport \
guide-plugin guide-crates complement-bugreport \
complement-lang-faq complement-design-faq complement-project-faq rust \
rustdoc guide-unsafe guide-strings reference

Expand Down
2 changes: 1 addition & 1 deletion src/doc/guide-crates.md
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,7 @@ fn main() {

Rust will give us a compile-time error:

```{rust,ignore}
```{notrust,ignore}
Compiling phrases v0.0.1 (file:///home/you/projects/phrases)
/home/you/projects/phrases/src/main.rs:4:5: 4:40 error: a value named `hello` has already been imported in this module
/home/you/projects/phrases/src/main.rs:4 use phrases::japanese::greetings::hello;
Expand Down
7 changes: 3 additions & 4 deletions src/doc/guide-plugin.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ extern crate rustc;

use syntax::codemap::Span;
use syntax::parse::token::{IDENT, get_ident};
use syntax::ast::{TokenTree, TTTok};
use syntax::ast::{TokenTree, TtToken};
use syntax::ext::base::{ExtCtxt, MacResult, DummyResult, MacExpr};
use syntax::ext::build::AstBuilder; // trait for expr_uint
use rustc::plugin::Registry;
Expand All @@ -71,7 +71,7 @@ fn expand_rn(cx: &mut ExtCtxt, sp: Span, args: &[TokenTree])
("I", 1)];

let text = match args {
[TTTok(_, IDENT(s, _))] => get_ident(s).to_string(),
[TtToken(_, IDENT(s, _))] => get_ident(s).to_string(),
_ => {
cx.span_err(sp, "argument should be a single identifier");
return DummyResult::any(sp);
Expand Down Expand Up @@ -151,8 +151,7 @@ higher-level syntax elements like expressions:
fn expand_foo(cx: &mut ExtCtxt, sp: Span, args: &[TokenTree])
-> Box<MacResult+'static> {

let mut parser =
parse::new_parser_from_tts(cx.parse_sess(), cx.cfg(), args.to_slice())
let mut parser = cx.new_parser_from_tts(args);

let expr: P<Expr> = parser.parse_expr();
```
Expand Down
2 changes: 1 addition & 1 deletion src/doc/guide-pointers.md
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,7 @@ great detail, so if you want the full details, check that out.

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

Expand Down
12 changes: 6 additions & 6 deletions src/doc/guide-strings.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ Rust has two main types of strings: `&str` and `String`.

# &str

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

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

```{rust}
fn compare(string: String) {
if string.as_slice() == "Hello" {
fn compare(x: String) {
if x.as_slice() == "Hello" {
println!("yes");
}
}
Expand All @@ -131,8 +131,8 @@ fn compare(string: String) {
... over `to_string()`:

```{rust}
fn compare(string: String) {
if string == "Hello".to_string() {
fn compare(x: String) {
if x == "Hello".to_string() {
println!("yes");
}
}
Expand Down
Loading