Manish Goregaokar
0775959431
Rollup merge of #22867 - FuGangqiang:master, r=steveklabnik
2015-02-28 19:19:02 +05:30
Manish Goregaokar
fcd1c3699a
Rollup merge of #22866 - iKevinY:version-output-doc-fix, r=Manishearth
...
The format of `rustc --version` was changed in #21957 ; this PR updates TRPL accordingly.
2015-02-28 19:19:01 +05:30
Manish Goregaokar
040a811b91
Rollup merge of #22884 - japaric:obsolete, r=alexcrichton
...
This is leftover from #21843
If you still have `|&:| {}` closures in your code, simply remove the `&:` part.
[breaking-change]
2015-02-28 19:19:00 +05:30
Manish Goregaokar
37760c1f25
Rollup merge of #22875 - kmcallister:maceager, r=sfackler
...
MacEager is a MacResult implementation for the common case where you've already built each form of AST that you might return.
Fixes #17637 . Based on #18814 .
This is a [breaking-change] for syntax extensions:
* MacExpr::new becomes MacEager::expr.
* MacPat::new becomes MacEager::pat.
* MacItems::new becomes MacEager::items. It takes a SmallVector directly,
not an iterator.
r? @sfackler
2015-02-28 19:18:59 +05:30
Jorge Aparicio
7ad2e22e4e
remove leftover annotations
2015-02-27 23:35:07 -05:00
FuGangqiang
69bfb6f717
change to iterate over &vet
2015-02-28 09:59:52 +08:00
Keegan McAllister
f66a3f7bba
Replace MacExpr / MacPat / MacItems with MacEager
...
MacEager is a MacResult implementation for the common case where you've already
built each form of AST that you might return.
Fixes #17637 . Based on #18814 .
This is a [breaking-change] for syntax extensions:
* MacExpr::new becomes MacEager::expr.
* MacPat::new becomes MacEager::pat.
* MacItems::new becomes MacEager::items. It takes a SmallVector directly,
not an iterator.
2015-02-27 11:17:05 -08:00
Manish Goregaokar
08c25f37df
Rollup merge of #22748 - jxcl:string-backslash, r=steveklabnik
...
r? @steveklabnik
Closes #22698
I wasn't sure that this was appropriate for the book, but I've added this to the reference. I also noticed that one of the U+ symbols in the character literals section was missing the graves.
2015-02-27 20:37:39 +05:30
Manish Goregaokar
c46fe78c32
Rollup merge of #22732 - jxcl:cargo-new, r=steveklabnik
...
r? @steveklabnik
2015-02-27 20:37:39 +05:30
FuGangqiang
05bdfe8e2e
remove the call .iter()
2015-02-27 21:57:02 +08:00
Kevin Yap
9a4387fbe0
Update expected output of rustc --version
...
The format of `rustc --version` was changed in #21957 .
2015-02-27 03:13:05 -08:00
Alexander Bliskovsky
f618e2e1ec
Changed prose to assert_eq! macro.
2015-02-25 20:29:13 -05:00
Alexander Bliskovsky
65b0655230
Added documentation of backslash ending string literals.
...
Closes #22698
2015-02-25 20:26:24 -05:00
Manish Goregaokar
267c5873e2
Rollup merge of #22784 - rnestler:fix_doc_faq, r=dotdash
...
According to #22650 and bb0bbf639e
the
link changed.
I think this should fix the link on http://doc.rust-lang.org/#faqs
2015-02-25 10:27:17 +05:30
Manish Goregaokar
9692f3bc94
Rollup merge of #22635 - kmcallister:macros-chapter, r=steveklabnik
...
r? @steveklabnik
2015-02-25 10:27:03 +05:30
Keegan McAllister
848a7e6921
Enhance and move information about macro debugging
...
Fixes #22424 .
2015-02-24 16:34:18 -08:00
Keegan McAllister
df0865754e
Tweak wording in the macros guide
2015-02-24 16:28:54 -08:00
Keegan McAllister
1804242a2d
Add a second, more vexing section on recursive macros
...
Fixes #22423 .
2015-02-24 16:28:54 -08:00
Keegan McAllister
65e1e6bb94
Add a section on recursive macros
2015-02-24 16:28:54 -08:00
Raphael Nestler
14c76834fe
Fix "How to submit a bug report" link
...
According to #22650 and bb0bbf639e
the
link changed
2015-02-24 23:26:25 +01:00
Manish Goregaokar
a429bf6a24
Rollup merge of #22458 - steveklabnik:try_in_error_chapter, r=alexcrichton
...
Fixes #22342
2015-02-25 03:21:30 +05:30
Vadim Petrochenkov
2807a1ce02
Use arrays instead of vectors in tests
2015-02-24 21:15:45 +03:00
Steve Klabnik
f31ea22bff
Mention try macro in error chapter
...
Fixes #22342
2015-02-24 12:31:46 -05:00
Manish Goregaokar
8e88762a83
Rollup merge of #22473 - leejunseok:fix_pointer_example, r=steveklabnik
...
Revised an example in the Pointers chapter of TRPL (the guide) as per #21575 .
2015-02-24 12:08:35 +05:30
Manish Goregaokar
c89a30f2ab
Rollup merge of #22740 - frewsxcv:patch-4, r=alexcrichton
...
Fixes #17929
2015-02-24 12:08:33 +05:30
Manish Goregaokar
9ed6c33391
Rollup merge of #22719 - steveklabnik:typo_fix, r=alexcrichton
2015-02-24 12:08:32 +05:30
Manish Goregaokar
05d9999bb4
Rollup merge of #22711 - lummax:patch-1, r=dotdash
...
Update the reference page to the change in #20680 .
2015-02-24 12:08:31 +05:30
Corey Farwell
9f8226a97b
Enforce a white background for the docs
...
Fixes #17929
2015-02-23 18:04:51 -05:00
Alexander Bliskovsky
f49fd40f20
Removed {}
and small wording fixes to "Hello Cargo!" chapter.
2015-02-23 16:38:11 -05:00
Alexander Bliskovsky
0685e7a185
Added section on cargo new
to "Hello Cargo!" chapter.
2015-02-23 16:29:28 -05:00
Manish Goregaokar
4e73d4950d
Rollup merge of #22660 - achernya:tuple-reference, r=alexcrichton
...
The Rust Reference should include the tuple indexing (using a number
as a field) notation; currently it is only available on
http://doc.rust-lang.org/std/primitive.tuple.html and not easily
searchable.
2015-02-23 23:28:48 +05:30
Manish Goregaokar
f73457a1cc
Rollup merge of #22612 - jxcl:iter-replace, r=steveklabnik
...
r? @steveklabnik
I've updated the iterators chapter to reflect the fact that you can now iterate over `for` loops without calling `.iter()`.
2015-02-23 23:28:47 +05:30
Manish Goregaokar
eb06c0ecd2
Rollup merge of #22593 - brson:spatch, r=steveklabnik
...
r? @steveklabnik
2015-02-23 23:28:46 +05:30
Manish Goregaokar
0fab2b9535
Rollup merge of #22556 - brson:str, r=steveklabnik
...
Clarify that `to_string` is how you make `String`. Use a coercion in an example.
r? @steveklabnik
2015-02-23 23:28:46 +05:30
Manish Goregaokar
59726953cc
Rollup merge of #22514 - diamondman:intro_doc_threading, r=steveklabnik
...
Fixed example threaded code in intro doc never printing results. Threads were created with Thread::spawn instead of Thread::scoped. Also added correct thread handling like in the first example of the document.
2015-02-23 23:28:46 +05:30
Steve Klabnik
1049e88d1f
Static and dynamic dispatch: missing word
2015-02-23 11:27:11 -05:00
lummax
282e278460
doc: Fix target_{word_size,pointer_width}
renaming
...
Update the reference page to the change in #20680 .
2015-02-23 14:53:16 +01:00
Manish Goregaokar
46a545100a
Rollup merge of #22270 - steveklabnik:gh22152, r=huonw
...
Fixes #22152
2015-02-23 14:43:38 +05:30
Alexander Bliskovsky
9f2b0671f8
Fixed erroneous statements in iterators.md.
2015-02-22 20:26:54 -05:00
Alexander Bliskovsky
72eaf2c30e
Switch to &vector notation in the iterators chapter.
2015-02-22 20:26:54 -05:00
Jessy Diamond Exum
6154c88ddc
Update intro.md to fix thread spawning example Closes #22419
...
Fixed example threaded code in intro doc never printing results. Threads were created with Thread::spawn instead of Thread::scoped.
2015-02-22 11:45:31 -08:00
Steve Klabnik
d7c02c39e5
Link from literals to their representation
...
Fixes #22152
2015-02-22 14:13:16 -05:00
Alexander Chernyakhovsky
928341e188
Include tuple indexing in the Reference.
...
The Rust Reference should include the tuple indexing (using a number
as a field) notation; currently it is only available on
http://doc.rust-lang.org/std/primitive.tuple.html and not easily
searchable.
2015-02-22 00:25:12 -05:00
Manish Goregaokar
a9570e5549
Rollup merge of #22625 - inrustwetrust:dispatch-doc-grammar, r=huonw
...
As far as I could tell from discussions in other docs pull requests, American spelling is preferred for the docs?
2015-02-22 01:49:46 +05:30
Manish Goregaokar
b7ac60a2f1
Rollup merge of #22524 - stevencrockett:master, r=steveklabnik
...
The text is referring to the io module despite the code using the old_io module.
2015-02-22 01:47:14 +05:30
Manish Goregaokar
9d650ae723
Rollup merge of #22515 - adamhjk:add-else-if-to-docs, r=steveklabnik
...
Adds an example of `else if` to the If section of The Rust Programming
Language.
r? @steveklabnik
2015-02-22 01:46:42 +05:30
Manish Goregaokar
11c70a3b09
Rollup merge of #22267 - steveklabnik:fix_lie, r=Gankro
...
Otherwise, this line is a lie.
2015-02-22 01:46:03 +05:30
inrustwetrust
1b20767460
Minor grammar/spelling fixes to the "Static and Dynamic Dispatch" doc
2015-02-21 11:50:25 +01:00
bors
2b01a37ec3
Auto merge of #21959 - dhuseby:bitrig-support, r=brson
...
This patch adds the necessary pieces to support rust on Bitrig https://bitrig.org
2015-02-21 09:20:48 +00:00
Brian Anderson
fcc21b36a3
docs: Explain static dispatch advantage more clearly
2015-02-20 11:41:39 -08:00