Steve Klabnik
defdc4418a
TRPL: type aliases and unsized types
2015-04-22 13:27:13 -04:00
Steve Klabnik
a5ae4cc19d
TRPL: attributes & conditional compilation
2015-04-22 11:27:31 -04:00
bors
50cd2e84d5
Auto merge of #24671 - steveklabnik:doc_const_static, r=alexcrichton
...
r? @alexcrichton
2015-04-22 06:37:57 +00:00
Steve Klabnik
a04f6c5293
TRPL: const and static
2015-04-21 19:47:07 -04:00
Alex Crichton
a1dd5ac787
rollup merge of #24636 : alexcrichton/remove-deprecated
...
Conflicts:
src/libcore/result.rs
2015-04-21 15:28:53 -07:00
Alex Crichton
a568a7f9f2
std: Bring back f32::from_str_radix as an unstable API
...
This API was exercised in a few tests and mirrors the `from_str_radix`
functionality of the integer types.
2015-04-21 15:23:54 -07:00
Alex Crichton
44338cb944
rollup merge of #24672 : steveklabnik/edit_tuple_structs
...
I thought I edited all the last little chapters, but I missed this one.
r? @alexcrichton
2015-04-21 15:23:18 -07:00
Alex Crichton
0feaf6154c
rollup merge of #24669 : steveklabnik/fix
...
This section was added but the list wasn't updated.
2015-04-21 15:23:17 -07:00
Alex Crichton
83008b2e9b
rollup merge of #24667 : steveklabnik/more_editing
...
r? @alexcrichton
2015-04-21 15:23:16 -07:00
Alex Crichton
1a6c18d660
rollup merge of #24665 : sw17ch/document-complete-slice-syntax
...
The documentation doesn't appear to describe the `&foo[..]` syntax.
I tried looking in `primitive-types.html#slices` and `std/primitive.slice.html`.
There's an example of partially slicing an array in trpl and a mention of `&foo[..]` in [the standard library documentation](https://doc.rust-lang.org/std/primitive.slice.html ), but neither place, from what I can see, actually describes the behavior of `&foo[..]`.
+r? @steveklabnik
2015-04-21 15:23:15 -07:00
Alex Crichton
ee9d4eefba
rollup merge of #24663 : steveklabnik/gh24639
...
Fixes #24639
2015-04-21 15:23:14 -07:00
Alex Crichton
251f8d3fbd
rollup merge of #24654 : mdinger/patch-2
...
This just fixes some comments made on https://github.com/rust-lang/rust/pull/24632 . The second I think is better unless @steveklabnik actually meant something else.
2015-04-21 15:23:12 -07:00
Steve Klabnik
f78ee1aff1
Document functional update syntax
...
Fixes #24639
2015-04-21 16:18:51 -04:00
Steve Klabnik
b0105b5a59
TRPL editing: tuple structs
2015-04-21 15:25:43 -04:00
Steve Klabnik
f0a3b6c509
Add research to README of TRPL
...
This section was added but the list wasn't updated.
2015-04-21 13:49:23 -04:00
Steve Klabnik
0070625495
small edits for recently written book chapters
2015-04-21 13:17:43 -04:00
John Van Enk
5f7556cd39
Add an example of completely slicing an object.
2015-04-21 09:21:52 -07:00
Steve Klabnik
9cc0af8d69
Refocus unsafe code chapter on unsafe itself.
2015-04-21 08:28:06 -04:00
mdinger
dc596695c9
Fix typos
2015-04-21 01:05:26 -04:00
Steve Klabnik
9ddcc38b6e
Refocus unsafe code chapter on unsafe itself.
2015-04-20 21:17:46 -04:00
Steve Klabnik
1d082de2d9
Rollup merge of #24643 - steveklabnik:doc_if_let, r=jakub-
...
and while let
2015-04-20 21:15:54 -04:00
Steve Klabnik
52ec8bdf73
Rollup merge of #24632 - steveklabnik:casting_guide, r=alexcrichton
...
Due to documenting `transmute`, addresses part of #12905
2015-04-20 21:15:54 -04:00
Steve Klabnik
9f87362308
Rollup merge of #24631 - steveklabnik:unsafe_guide, r=alexcrichton
...
Many unsafe features are now in the unstable section, so this section is
really just about raw pointers now. That also makes sense for its place
in the TOC.
This addresses part of #12905 .
2015-04-20 21:15:54 -04:00
Steve Klabnik
05ee6f0709
Rollup merge of #24630 - steveklabnik:quickfix, r=alexcrichton
2015-04-20 21:15:53 -04:00
Steve Klabnik
81b603e7a5
Rollup merge of #24577 - steveklabnik:gh24573, r=alexcrichton
...
Fixes #24573
2015-04-20 21:15:52 -04:00
Steve Klabnik
ff12b7b308
Rollup merge of #24571 - steveklabnik:editing, r=alexcrichton
...
A bunch of chapters, fixes an issue or two as well.
r? @alexcrichton
2015-04-20 21:15:52 -04:00
Steve Klabnik
de13f95f21
Rollup merge of #24516 - steveklabnik:gh22621, r=alexcrichton
...
Fixes #22621
2015-04-20 21:15:52 -04:00
Steve Klabnik
570b250b8f
TRPL: if let
...
and while let
2015-04-20 19:48:24 -04:00
Steve Klabnik
1e29abec59
Add common macros to TRPL
...
Fixes #22621
2015-04-20 14:40:54 -04:00
Steve Klabnik
1150fb0f88
TRPL: unsafe -> raw pointers
...
Many unsafe features are now in the unstable section, so this section is
really just about raw pointers now. That also makes sense for its place
in the TOC.
This addresses part of #12905 .
2015-04-20 13:38:05 -04:00
Steve Klabnik
0f20c9d8b7
Remove feature gated examples from the reference.
...
The slice patterns example was nice, so let's put it with the other
slice pattern feature gate documentation.
Fixes #24573
2015-04-20 13:33:57 -04:00
Steve Klabnik
9a65045611
TRPL: casting
...
Due to documenting `transmute`, addresses part of #12905
2015-04-20 11:55:29 -04:00
Steve Klabnik
fbd3261e37
Fix small typo in TRPL intro
2015-04-20 10:42:17 -04:00
Steve Klabnik
14af25797f
TRPL edits: generics
2015-04-20 09:44:21 -04:00
Steve Klabnik
1c48227b3c
Remove inverse example from generics part of TRPL
...
Fixes #24325 .
2015-04-20 09:44:21 -04:00
Steve Klabnik
e289b689d4
TRPL edits: traits
...
Let's talk about generics first, since we use traits to bound them
in funtions.
Partially addresses #24325
Fixes #24271
2015-04-20 09:44:10 -04:00
Steve Klabnik
1646ebd5ba
move Deref coercions to syntax and semantics
...
It's a language feature, so it belongs here.
2015-04-20 09:37:49 -04:00
Steve Klabnik
5b54a4f03b
TRPL copyedits: strings
2015-04-20 09:37:49 -04:00
Steve Klabnik
73d3d68550
TRPL editing: vectors
2015-04-20 09:37:49 -04:00
Steve Klabnik
a3a2049166
Move drop back in TRPL TOC
...
It's a trait implementation, so we need traits first.
2015-04-20 09:37:49 -04:00
Steve Klabnik
f81b1fcf8c
TRPL edits: method syntax
2015-04-20 09:37:49 -04:00
Steve Klabnik
7f43c5782c
TRPL editing: structs
2015-04-20 09:37:48 -04:00
Steve Klabnik
44db46a308
TRPL editing: move patterns back
...
We want to talk about how to pattern match on structs, so let's bump
it back one.
2015-04-20 09:37:48 -04:00
Steve Klabnik
9661efac8b
TRPL editing: patterns
...
Partially addresses #24388
2015-04-20 09:37:48 -04:00
Steve Klabnik
836c8a826b
TRPL editing: match
2015-04-20 09:37:46 -04:00
Steve Klabnik
213708867e
TRPL editing: enums
...
Now that we're not doing the guessing game, a lot of this is irrelevant.
2015-04-20 09:37:45 -04:00
bors
00978a9879
Auto merge of #24383 - avdi:patch-1, r=steveklabnik
...
"Dynamically typed" didn't seem like a relevant distinction; there are statically-compiled dynamically-typed languages. Another term that might work here (despite being notoriously vague) is "scripting languages".
2015-04-18 23:35:50 +00:00
Manish Goregaokar
88601f8d7d
fix doctest (fixup #24466 )
2015-04-19 00:54:42 +05:30
Manish Goregaokar
514e06d65d
Rollup merge of #24466 - steveklabnik:more_more_more, r=alexcrichton
...
Link to the big chapter for now, and add move semantics.
2015-04-18 23:29:57 +05:30
Manish Goregaokar
1b6bd92790
Rollup merge of #24515 - steveklabnik:gh24070, r=Gankro
...
Fixes #24070
or rather, fixes it even though it's already been fixed: slices are before now. But the linking is nice anyway.
2015-04-17 19:01:32 +05:30