Commit Graph

36246 Commits

Author SHA1 Message Date
Matt Brubeck
973b788f40 Update docs for ToUppercase/ToLowercase structs
`uppercase` and `lowercase` are currently named `to_uppercase` and `to_lowercase`.
Also adds a link to the `char` type documentation which has much more detail
on these iterators.
2015-03-19 13:34:18 -07:00
bors
08dd30d9eb Auto merge of #23498 - pcwalton:inline-police, r=cmr
r? @cmr
2015-03-19 13:10:37 +00:00
bors
d5408f376f Auto merge of #23507 - jbcrail:fix-comment-spelling, r=alexcrichton
I corrected misspelled comments in several crates.
2015-03-19 09:50:13 +00:00
Patrick Walton
01c125e548 libunicode: Partially inline the fast paths in character class checking. 2015-03-18 22:05:19 -07:00
Patrick Walton
dbd16a5b47 liballoc: Partially inline the refcount manipulation in the Arc
destructor.
2015-03-18 22:05:19 -07:00
Joseph Crail
857035ade7 Fix spelling errors in comments.
I corrected misspelled comments in several crates.
2015-03-19 00:48:08 -04:00
Manish Goregaokar
6f930b99b0 Rm unused feature 2015-03-19 08:49:39 +05:30
Manish Goregaokar
e8c1d771fc Rollup merge of #23428 - Manishearth:ast-doc, r=steveklabnik
I often have to run `ast-json` or look into the pretty-printer source to figure out what the fields of an AST enum mean. I've tried to document most of what I know (and some semi-obvious stuff).

r? @steveklabnik

f? @eddyb
2015-03-19 08:49:38 +05:30
Manish Goregaokar
760f870add Rollup merge of #23497 - steveklabnik:gh21589, r=alexcrichton
Fixes #21589
2015-03-19 08:49:38 +05:30
Manish Goregaokar
f5c61a7899 Rollup merge of #23496 - steveklabnik:gh22309, r=nikomatsakis
Fixes #22309

I am pretty sure that this is the right way to do this, given the other macros, but I'm not 100% sure.
2015-03-19 08:49:37 +05:30
Manish Goregaokar
19b40f72bf Rollup merge of #23495 - pcwalton:inline-cell, r=cmr
This is a significant performance problem in Servo.

r? @brson
2015-03-19 08:49:37 +05:30
Manish Goregaokar
288acc755f Rollup merge of #23494 - mdinger:patch-1, r=steveklabnik
Typo
2015-03-19 08:49:36 +05:30
Manish Goregaokar
34378657ef Rollup merge of #23493 - steveklabnik:gh22927, r=alexcrichton
And do some formatting while I'm here.
2015-03-19 08:49:36 +05:30
Manish Goregaokar
30718dd44b Rollup merge of #23490 - jooert:master, r=steveklabnik
Update documentation to reflect #21824.

r? @steveklabnik
2015-03-19 08:49:35 +05:30
Manish Goregaokar
acc706db4b Rollup merge of #23483 - semarie:openbsd-threads, r=alexcrichton
unbreak openbsd/bitrig build
- remove `pub` from `struct` (error: visibility has no effect inside functions)
- move `pthread_main_np` into function

r? @alexcrichton
2015-03-19 08:49:35 +05:30
Manish Goregaokar
b06c9a01c1 Rollup merge of #23474 - nagisa:patch-1, r=steveklabnik
r? @steveklabnik
2015-03-19 08:49:35 +05:30
Manish Goregaokar
d6986c9ce9 Rollup merge of #23479 - tamird:fix-ios-build, r=aturon
r? @aturon
2015-03-19 08:49:34 +05:30
Manish Goregaokar
a32bb1bcc4 Rollup merge of #23475 - nikomatsakis:closure-ret-syntax, r=acrichto
Require braces when a closure has an explicit return type. This is a [breaking-change]: instead of a closure like `|| -> i32 22`, prefer `|| -> i32 { 22 }`.

Fixes #23420.
2015-03-19 08:49:34 +05:30
Manish Goregaokar
c20c652a92 Space and punctuation fixes 2015-03-19 08:24:43 +05:30
Steve Klabnik
70bf02994a Note ::foo::bar() in the crates guide
Fixes #21589
2015-03-19 08:24:42 +05:30
Manish Goregaokar
d943d9b801 Address huon's comments 2015-03-19 08:24:42 +05:30
Steve Klabnik
f8c63d00e2 Document include!
Fixes #22309
2015-03-19 08:24:41 +05:30
Patrick Walton
592e7ffdf8 core: Inline most cell methods.
This is a significant performance problem in Servo.
2015-03-19 08:24:40 +05:30
mdinger
835c9bbbf0 Update ast.rs
Typo
2015-03-19 08:24:40 +05:30
Steve Klabnik
8a8b2cecbc Document {:.*}
Fixes #22927
2015-03-19 08:24:39 +05:30
Steve Klabnik
351721cde6 Small formatting fixes to fmt.rs 2015-03-19 08:24:39 +05:30
Johannes Oertel
da96d22d3a Rename should_fail to should_panic in docs 2015-03-19 08:24:38 +05:30
Manish Goregaokar
c7392be968 Rollup merge of #23468 - sfackler:stdio-panic, r=alexcrichton
Nothing inside of the read/write interface itself can panic, so any
poison must have been the result of user code which the lock isn't
protecting.

This seems safe to me, but if we don't want to go this route we should update the docs to indicate that these methods can panic.

r? @alexcrichton
2015-03-19 08:24:36 +05:30
Manish Goregaokar
05354e8522 Rollup merge of #23462 - alexcrichton:stabilize-cloned, r=aturon
This commit stabilizes the `cloned` iterator after tweaking the signature to
require that the iterator is over `&T` instead of `U: Deref<T>`. This method has
had time to bake for awhile now and it's not clear whether the `Deref` bound is
worth it. Additionally, there aren't clear conventions on when to bound and/or
implement the `Deref` trait, so for now the conservative route is to require
references instead of `U: Deref<T>`.

To change this signature to using `Deref` would technically be a
backwards-incompatible change, but it is doubtful that any code will actually
break in practice.
2015-03-19 08:24:36 +05:30
Manish Goregaokar
48df3fb678 Rollup merge of #23457 - nagisa:get-set-resources, r=alexcrichton
Hopefully didn’t miss or mess up anything.

~~EDIT: ah, as usual, just didn’t bother running build before pushing a submit request button. Build pending.~~
2015-03-19 08:24:35 +05:30
Niko Matsakis
c225824bde Require braces when a closure has an explicit return type. This is a
[breaking-change]: instead of a closure like `|| -> i32 22`, prefer `||
-> i32 { 22 }`.

Fixes #23420.
2015-03-18 20:07:27 -04:00
Alex Crichton
fccf5a0005 Register new snapshots 2015-03-18 16:32:32 -07:00
Manish Goregaokar
2a106d68f4 Rollup merge of #23428 - Manishearth:ast-doc, r=huon
I often have to run `ast-json` or look into the pretty-printer source to figure out what the fields of an AST enum mean. I've tried to document most of what I know (and some semi-obvious stuff).

r? @steveklabnik

f? @eddyb
2015-03-18 22:21:09 +05:30
Manish Goregaokar
e245e65ef8 Rollup merge of #23455 - Ryman:trim_matches_doc, r=steveklabnik 2015-03-18 22:21:08 +05:30
Manish Goregaokar
c341fe9f8c Rollup merge of #23450 - alexcrichton:fix-sockaddr-storage, r=brson
The alignment field is actually a \"pointer sized\" type instead of always i64,
requiring that the size of the padding field is also calculated slightly
differently.

Closes #23425
2015-03-18 22:21:08 +05:30
Manish Goregaokar
51bc2f1f37 Rollup merge of #23443 - meqif:ipv6addr-new-documentation-fix, r=steveklabnik
Very minor fix: in `std::net::Ipv6Addr::new`, the documentation had an incomplete representation of the resulting address, missing the last two groups.
2015-03-18 22:21:07 +05:30
Manish Goregaokar
dda42204be Rollup merge of #23392 - WiSaGaN:bugfix/fix_deprecate_link, r=Manishearth
Since module `std::sync::mpsc` is stable now, fix the deprecated link `comm` with `sync::mpsc`.
2015-03-18 22:21:07 +05:30
Manish Goregaokar
a7eca31d80 Rollup merge of #23467 - andersk:loop-labeled-break-value, r=sanxiyn
Closes #23451.
2015-03-18 22:21:07 +05:30
Manish Goregaokar
181441cf66 Rollup merge of #23461 - alexcrichton:feat-char-at, r=aturon
This commit clarifies some of the unstable features in the `str` module by
moving them out of the blanket `core` and `collections` features.

The following methods were moved to the `str_char` feature which generally
encompasses decoding specific characters from a `str` and dealing with the
result. It is unclear if any of these methods need to be stabilized for 1.0 and
the most conservative route for now is to continue providing them but to leave
them as unstable under a more specific name.

* `is_char_boundary`
* `char_at`
* `char_range_at`
* `char_at_reverse`
* `char_range_at_reverse`
* `slice_shift_char`

The following methods were moved into the generic `unicode` feature as they are
specifically enabled by the `unicode` crate itself.

* `nfd_chars`
* `nfkd_chars`
* `nfc_chars`
* `graphemes`
* `grapheme_indices`
* `width`
2015-03-18 22:21:06 +05:30
Steven Fackler
a51cd61164 Add a test 2015-03-18 09:03:17 -07:00
Tamir Duberstein
21d8c418d2 iOS: fallout from 1d5983a 2015-03-18 08:35:53 -07:00
Simonas Kazlauskas
07c7bb9938 Make it clear which value is discarded 2015-03-18 14:36:23 +02:00
Manish Goregaokar
a5828ff7b0 Address huon's comments 2015-03-18 18:06:10 +05:30
Manish Goregaokar
13881df1b2 Clarify Expr 2015-03-18 17:54:57 +05:30
Manish Goregaokar
edf65c43f6 ast: Document Item and ForeignItem 2015-03-18 17:54:57 +05:30
Manish Goregaokar
084f3bcfd4 ast: Document Lit 2015-03-18 17:54:57 +05:30
Manish Goregaokar
b08d5eee6a ast: Document Pat and Block 2015-03-18 17:54:57 +05:30
Manish Goregaokar
1debe9d112 ast: Document paths and where clauses 2015-03-18 17:54:57 +05:30
Manish Goregaokar
c42067c9e9 ast: Document Expr_, UnOp, and BinOp 2015-03-18 17:54:57 +05:30
Simonas Kazlauskas
2d701e6b19 Add {get,set}rlimit and getrusage to libc 2015-03-18 13:10:29 +02:00