bors
68740b4054
Auto merge of #22061 - pczarn:quote_matcher_and_attr, r=kmcallister
...
Fixes #19674
Fixes #17396 (already closed, yeah)
cc @kmcallister , @cmr
2015-03-05 04:32:51 +00:00
Piotr Czarnecki
3541abedeb
Add quasiquote for matchers and attributes
2015-03-04 16:13:37 +01:00
Felix S. Klock II
cb1b0dd589
Fix doc example to accommodate overloaded-box.
2015-03-03 21:16:03 +01:00
Manish Goregaokar
90686df18c
Rollup merge of #22960 - huonw:static-assert, r=huonw
...
The API this exposes is a little strange (being attached to `static`s),
so it makes sense to conservatively feature gate it. If it is highly
popular, it is possible to reverse this gating.
2015-03-03 17:01:15 +05:30
Huon Wilson
c195783c05
Feature gate #[static_assert].
...
The API this exposes is a little strange (being attached to `static`s),
so it makes sense to conservatively feature gate it. If it is highly
popular, it is possible to reverse this gating.
2015-03-03 13:00:10 +11:00
Manish Goregaokar
16efd0ecbf
Rollup merge of #22911 - djmally:master, r=steveklabnik
...
... example that actually does use an Option
2015-03-03 01:46:28 +05:30
David Mally
a457dd5c78
Changed wording to use Result instead of Option in several places, fixed example that actually does use an Option
2015-02-28 17:40:04 -05:00
Alexander Campbell
fdc45e361c
Change quaranteed -> guaranteed in README.md
2015-02-28 11:33:48 -06:00
Alexander Campbell
d084f7031c
Change slithtly -> slightly in README.md
2015-02-28 11:32:13 -06:00
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