Travis Watkins
9f5fc563d3
Fix test failures
2015-01-13 05:43:30 -06:00
Ms2ger
756466bfd0
Rewrite each_attr to return a vector.
2015-01-13 10:41:56 +01:00
Ms2ger
27db3f0585
Return the Vec from csearch::get_item_attrs.
...
Using a closure unnecessarily obfuscates the code.
2015-01-13 10:28:06 +01:00
Ms2ger
56f3554f52
Return the Vec from decoder::get_item_attrs.
...
Using a closure unnecessarily obfuscates the code.
2015-01-13 10:28:06 +01:00
bors
f1241f14dc
auto merge of #20960 : erickt/rust/fix-associated-types-debuginfo, r=michaelwoerister
...
Closes #20797
2015-01-13 09:06:35 +00:00
Brian Anderson
e46620af45
std: Deprecate finally
module
...
No in-tree users. Ugly interface. Closes #14332 .
2015-01-13 00:59:30 -08:00
Travis Watkins
2cc81ac531
Return passed value from black_box
...
By returning the passed value black_box can be used on data being
passed to a function being benchmarked. This ensures the compiler
does not optimize the function for the input which could result in
the entire function being optimized away.
2015-01-13 01:29:01 -06:00
Huon Wilson
af506fa5d1
typeck: move method errors/suggestions to their own file.
2015-01-13 17:05:04 +11:00
bors
4fc9b41238
auto merge of #20955 : nikomatsakis/rust/assoc-types-struct-field-access, r=nick29581
...
Normalize the types of fields we project out of a struct or tuple struct.
Fixes #20954 .
r? @nick29581
2015-01-13 05:01:34 +00:00
JONNALAGADDA Srinivas
ac110df0ff
Expand the section on closures in TRPL.
...
* Include an illustration of a function that accepts two closures.
2015-01-13 10:14:18 +05:30
Steven Fackler
89f1848b55
Initialize memory for BufferedReader buffer
...
It's passed to the underlying reader, so uninitialized memory == sad
times.
We might want to shrink the default buffer size as well. 64k is pretty
huge. Java uses 8k by default, and Go uses 4k for reference.
2015-01-12 19:50:33 -08:00
Kevin Yap
31ac1fb93d
Various changes to Rust Introduction
...
- Make punctuation/formatting consistent with the changes made to "The
Rust Programming Language" in #20782 .
- Use title casing for "Safety and Speed" section.
- Reword some phrases to improve clarity.
2015-01-12 19:25:17 -08:00
Peter Atashian
ee1ca88213
Change Mutex to use SRWLock on Windows.
...
Signed-off-by: Peter Atashian <retep998@gmail.com>
2015-01-12 21:35:39 -05:00
bors
3d5fbae338
auto merge of #20944 : brson/rust/weve-met-with-a-terrible-fate-havent-we, r=brson
...
Closes #13871
2015-01-13 01:08:03 +00:00
Jorge Aparicio
323abc0eb0
add test for issue #20575
...
closes #20575
2015-01-12 18:40:19 -05:00
KernelJ
f071f3b185
Fixes to cfg .mk files for Windows: removed use of unused LDPATH variable on Windows as is done for other platforms, and added GCC flag to ensure MINGW's ANSI compatible STDIO functions are used wherever available (required by jemalloc).
2015-01-12 23:26:22 +00:00
Jorge Aparicio
c1d48a8508
cleanup: &foo[0..a]
-> &foo[..a]
2015-01-12 17:59:37 -05:00
Steve Klabnik
6a7f0a99d8
Add note about TLS lookups in random()
...
Fixes #16072
2015-01-12 17:57:28 -05:00
bors
3d0d9bb6fb
auto merge of #20896 : sfackler/rust/atomic-rename, r=alexcrichton
...
Change any use of AtomicInt to AtomicIsize and AtomicUint to AtomicUsize
Closes #20893
[breaking-change]
2015-01-12 22:56:20 +00:00
Steve Klabnik
71884601f9
Remove dead link from make tips
...
Fixes #17950
2015-01-12 17:12:05 -05:00
Felix S. Klock II
82eefe3687
add --xpretty flowgraph,unlabelled variant.
2015-01-12 22:42:12 +01:00
Adam Roben
1c0acb9d91
Match prose with code when discussing Ordering values
...
Now both the enum values and the prose describing them mention the values in the same order.
2015-01-12 16:18:02 -05:00
Steve Klabnik
0017bfa002
Link to a better place for msys2
...
This is much more helpful.
2015-01-12 15:56:16 -05:00
Steve Klabnik
16a8c4d238
Don't use 'synonym' with regards to newtypes
...
Fixes #20037 .
2015-01-12 15:30:11 -05:00
Steve Klabnik
2297b0cb00
Elaborate on destructuring let
...
Fixes #20471 .
2015-01-12 15:28:09 -05:00
Nick Cameron
bc3a330abb
Some random things
2015-01-13 09:15:59 +13:00
Nick Cameron
22a059ddd1
Add view items to the ast map
2015-01-13 09:15:59 +13:00
Steve Klabnik
e485d297ea
Improve example in the intro.
...
Thank you @bluss for the suggested implementation.
Fixes #20844
2015-01-12 15:14:17 -05:00
Steve Klabnik
b704983ee9
Improve the ownership guide a tad
...
Fixes #19924
2015-01-12 15:12:51 -05:00
bors
3a44a19af2
auto merge of #20894 : swgillespie/rust/emacs-issue-20422, r=pnkfelix
...
rust-mode.el recently started highlighting keywords that were substrings of identifiers. Identifiers such as `xyz_type` would have `type` highlighted, which isn't normal. This patch re-introduces `_` as a word constituent, so that keywords following a `_` don't get syntax highlighted as keywords. Fixes issue #20422
2015-01-12 19:20:56 +00:00
Renato Zannon
d6e67e938b
Vec's IntoIter should be Send/Sync when Vec is ( fixes #21027 )
2015-01-12 17:12:35 -02:00
Steve Klabnik
db7de969cf
Improve clarity of paragraph in the pointer guide
...
Fixes #19067
2015-01-12 13:57:09 -05:00
Steve Klabnik
425f449fda
Remove PDF link on 404 page
...
Fixes #17368
2015-01-12 13:16:07 -05:00
Tom Jakubowski
616db5a501
rustdoc: Show type bindings on object types
...
Fix #20299
2015-01-12 09:43:24 -08:00
Lauri Lehmijoki
eabf208285
Ease parsing of an English sentence
2015-01-12 19:42:52 +02:00
Tom Jakubowski
072a89642b
rustdoc: Remove traces of old closures
2015-01-12 09:25:20 -08:00
Tom Jakubowski
8a69d35e1e
rustdoc: Fix where clauses on re-exports
...
Projection predicates on re-exports, for the time being, are rendered as
equality predicates because that's easier. It would be nice to fix this
in the future.
Some gymnastics were needed to remove redundant bounds from the `types`
and `lifetimes` fields, remove implicit `Sized` bounds, and re-create
`?Sized` bounds.
Fix #20203 , fix #20924 , fix #20911 , fix #20534
2015-01-12 09:25:07 -08:00
Steve Klabnik
95f9e309f7
Clean up wording around uninitialized values.
...
Fixes #20840
2015-01-12 11:49:54 -05:00
Steve Klabnik
be407180d7
Link to sections in the book's README.md
...
Fixes #20852
2015-01-12 10:59:21 -05:00
Steve Klabnik
285277dd80
Clean up unary operators in the reference
...
Fixes #20876
2015-01-12 10:52:34 -05:00
Steve Klabnik
c403794310
Small fix in the book
...
Fixes #20914
2015-01-12 10:47:56 -05:00
Steve Klabnik
ba9e223c57
Small grammar fix in the book
...
Fixes #20993
2015-01-12 10:45:32 -05:00
bors
055cc2ee74
auto merge of #20789 : nikomatsakis/rust/issue-20765-normalize-where-clause, r=nrc
...
Normalize bounds that we extract from where clauses. Fixes #20765 .
r? @nick29581
cc @jroesch
2015-01-12 15:10:38 +00:00
Alexander Korolkov
a3d87fa448
Fix text in TRPL macros guide to match the example
...
Also, update description of macro invocation syntax:
after https://github.com/rust-lang/rust/pull/20563 there is
a number of additional limitations on macro syntax.
2015-01-12 17:39:18 +03:00
Niko Matsakis
47424cda1e
Normalize bounds that we extract from where clauses. Fixes #20765 .
2015-01-12 09:23:50 -05:00
Huon Wilson
933303413e
Update #[deriving] documentation.
...
Syntax and a few fixed bugs etc.
2015-01-13 00:00:19 +11:00
Niko Matsakis
487a4a174a
Fix various oversights in enum field treatment in trans and typeck.
...
Fixes #20996 .
2015-01-12 07:51:35 -05:00
Cam Jackson
e1ff480e43
Remove usage and reference of feature(globs) from the book
2015-01-12 23:06:03 +11:00
bors
a6408fa1d8
auto merge of #20942 : nagisa/rust/shrl-impls, r=nikomatsakis
...
This is only relevant to the code that uses generics such as
fn magic<T: Shl>(a: T) { a << 10u8; }
r? @nikomatsakis
2015-01-12 11:05:30 +00:00
Paul Crowley
8eba032f52
Purge references to Rust tasks from TRPL.
2015-01-12 09:15:33 +00:00