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
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
ddf25c890d
Auto merge of #24572 - steveklabnik:gh24569, r=brson
...
Fixes #24569 .
Should wait until https://github.com/rust-lang/rust-www/pull/114 is merged.
2015-04-19 15:24:19 +00:00
bors
be41e98067
Auto merge of #24567 - tamird:windows-caviats, r=steveklabnik
...
- https://github.com/rust-lang/rust/issues/1237 is closed
- `libgcc` is now statically linked:
https://github.com/rust-lang/rust/pull/17471
2015-04-19 13:20:24 +00:00
bors
bd968a1d65
Auto merge of #24554 - tshepang:let-faq, r=steveklabnik
2015-04-19 03:42:59 +00: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
Steve Klabnik
290da6f016
Remove the 30 minute intro
...
Fixes #24569 .
2015-04-18 17:55:31 -04:00
Tamir Duberstein
a8aa4ee034
Update Windows caveats
...
- https://github.com/rust-lang/rust/issues/1237 is closed
- `libgcc` is now statically linked:
https://github.com/rust-lang/rust/pull/17471
2015-04-18 13:00:40 -07:00
Manish Goregaokar
88601f8d7d
fix doctest (fixup #24466 )
2015-04-19 00:54:42 +05:30
Manish Goregaokar
695efb53d6
Rollup merge of #24548 - graydon:reference-tidying, r=steveklabnik
...
This just deletes some egregious lies and obsolete terminology -- all of which I originally wrote -- from the reference. I expect the reference itself will be deleted soon enough, but I found myself gritting teeth over these bits too much to let them into a 1.0 release.
2015-04-18 23:29:58 +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
Tshepang Lekhonkhobe
4665c3bbfa
doc: improve/fix 'let' FAQ
2015-04-18 17:36:41 +02:00
Graydon Hoare
a99a8b0a92
Remove obsolete discusison of runtime, promote Linkage
to chapter.
2015-04-17 20:02:55 -07:00
Graydon Hoare
744085ed1d
Improve memory-model section very slightly.
2015-04-17 20:01:03 -07:00
Graydon Hoare
f5b2963103
Improve special-traits section very slightly.
2015-04-17 20:00:47 -07:00
Graydon Hoare
7f2f09f1b4
Eliminate the obsolete term 'slot'.
2015-04-17 19:52:29 -07:00
Graydon Hoare
21e2e6eec8
Clean up section on Type aliases.
2015-04-17 19:29:20 -07:00
Graydon Hoare
806d024783
Trim florid language.
2015-04-17 19:24:28 -07:00