bors
079951ed2a
auto merge of #17187 : damag/rust/ffi-guide-fixes, r=alexcrichton
...
Updates the callbacks section to refer to the right function name and fixes a couple of minor whitespace issues in the examples.
2014-09-13 13:50:57 +00:00
Markus Unterwaditzer
d36ac4def5
These two lines are actually three.
2014-09-13 15:16:59 +02:00
Tshepang Lekhonkhobe
46e3014ce0
doc: that felt like it needed a stronger break than what comma provides
...
Remove trailing whitespace while at it
2014-09-13 09:40:30 +02:00
bors
ccae356ace
auto merge of #17155 : steveklabnik/rust/dherman_fixes, r=brson
...
Fixing more suggestions from @dherman . I made them individual commits in case we want to discuss any of them further.
2014-09-12 23:30:54 +00:00
Damien Grassart
d4b2edc3ee
Use a space after colons per the Rust coding style:
...
https://github.com/rust-lang/rust-guidelines/blob/master/style/whitespace.md
2014-09-12 09:10:03 +02:00
Damien Grassart
0eedec560c
The example code uses trigger_callback(), not do_callback().
2014-09-12 09:03:15 +02:00
bors
4727381685
auto merge of #16657 : steveklabnik/rust/goodbye_tutorial, r=brson
...
The Guide isn't 100% perfect, but it's basically complete. It's
certainly better than the tutorial is. Time to start pointing more
people its way.
I also just made it consistent to call all things 'guides' rather than
tutorials.
Fixes #9874 . This is the big one.
And two bugs that just go away.
Fixes #14503 .
Fixes #15009 .
2014-09-12 01:15:41 +00:00
Steve Klabnik
c456cca90a
only deprecate the guide rather than 🔥 🔥 🔥
2014-09-11 16:21:32 -04:00
Steve Klabnik
a99ba25f2b
Replace the Tutorial with the Guide.
...
The Guide isn't 100% perfect, but it's basically complete. It's
certainly better than the tutorial is. Time to start pointing more
people its way.
I also just made it consistent to call all things 'guides' rather than
tutorials.
Fixes #9874 . This is the big one.
And two bugs that just go away.
Fixes #14503 .
Fixes #15009 .
2014-09-11 16:21:32 -04:00
bors
d24c82420b
auto merge of #17154 : steveklabnik/rust/array_clarification, r=huonw
...
fixes #17148
2014-09-11 18:50:41 +00:00
bors
1dc31953e7
auto merge of #17153 : steveklabnik/rust/add_link_to_manual, r=sfackler
...
whoops
Fixes https://github.com/rust-lang/rust/pull/16827#issuecomment-55160273
2014-09-11 15:50:45 +00:00
bors
09abbbdafc
auto merge of #16866 : P1start/rust/tuple-indexing, r=brson
...
This allows code to access the fields of tuples and tuple structs behind the feature gate `tuple_indexing`:
```rust
#![feature(tuple_indexing)]
let x = (1i, 2i);
assert_eq!(x.1, 2);
struct Point(int, int);
let origin = Point(0, 0);
assert_eq!(origin.0, 0);
assert_eq!(origin.1, 0);
```
Implements [RFC 53](https://github.com/rust-lang/rfcs/blob/master/active/0053-tuple-accessors.md ). Closes #16950 .
2014-09-11 00:05:41 +00:00
Steve Klabnik
c3943b3c89
don't say 'semantic'
2014-09-10 18:30:28 -04:00
Steve Klabnik
8f7470d864
remove rich hickey love
2014-09-10 18:29:58 -04:00
Steve Klabnik
311227003f
Remove much of the modules section.
...
This part can get _really_ confusing, and we want to make sure that
people succeed in the guide. I plan on making a module guide in the
future to replace the information here.
2014-09-10 18:28:37 -04:00
Steve Klabnik
9c8c82b87d
hello_world.rs -> main.rs
2014-09-10 18:26:17 -04:00
Steve Klabnik
b85191ae0f
dave hates jokes 😉
2014-09-10 18:24:40 -04:00
Steve Klabnik
faf14ae633
Fix vector terminology in the manual.
...
fixes #17148
2014-09-10 17:02:37 -04:00
Steve Klabnik
60415e1032
reintroduce manual link in doc index
...
whoops
Fixes https://github.com/rust-lang/rust/pull/16827#issuecomment-55160273
2014-09-10 16:57:07 -04:00
bors
370f8df2ae
auto merge of #17108 : steveklabnik/rust/explicitness, r=alexcrichton
...
I missed some annotations, and some were in a different style.
2014-09-10 07:35:41 +00:00
bors
6ceb9b4157
auto merge of #16824 : steveklabnik/rust/string_guide_improvements, r=alexcrichton
...
A few steps toward https://github.com/rust-lang/rust/issues/15994
2014-09-10 03:20:40 +00:00
Steve Klabnik
8ddb9c71c3
Add section about Str trait
2014-09-09 18:48:30 -04:00
Steve Klabnik
c8e5068ec9
Be explicit with rustdoc.
...
I missed some annotations, and some were in a different style.
2014-09-09 18:42:05 -04:00
P1start
bf274bc18b
Implement tuple and tuple struct indexing
...
This allows code to access the fields of tuples and tuple structs:
let x = (1i, 2i);
assert_eq!(x.1, 2);
struct Point(int, int);
let origin = Point(0, 0);
assert_eq!(origin.0, 0);
assert_eq!(origin.1, 0);
2014-09-10 10:25:12 +12:00
Alex Crichton
456f00eb7e
rollup merge of #17107 : steveklabnik/uninitialized_bindings
2014-09-09 12:07:14 -07:00
Alex Crichton
8158463122
rollup merge of #17054 : pcwalton/subslice-syntax
2014-09-09 12:07:12 -07:00
Alex Crichton
2c66c296db
rollup merge of #17052 : pcwalton/feature-gate-subslices
2014-09-09 12:07:11 -07:00
bors
504ed55775
auto merge of #16827 : steveklabnik/rust/fix_doc_index, r=brson
...
Fixes #14972
2014-09-09 13:26:16 +00:00
bors
641b1980a4
auto merge of #16825 : steveklabnik/rust/fix_manual_array_terms, r=brson
...
fixes #16015
2014-09-09 04:26:18 +00:00
Patrick Walton
eb678ff87f
librustc: Change the syntax of subslice matching to use postfix ..
...
instead of prefix `..`.
This breaks code that looked like:
match foo {
[ first, ..middle, last ] => { ... }
}
Change this code to:
match foo {
[ first, middle.., last ] => { ... }
}
RFC #55 .
Closes #16967 .
[breaking-change]
2014-09-08 16:12:13 -07:00
Steve Klabnik
18f1f5a06e
guide: Remove reference to uninitialized bindings
...
There isn't a good way to fit this in, so let's just not
mention it.
Fixes #16792 .
2014-09-08 18:50:08 -04:00
Patrick Walton
22179f49e5
librustc: Feature gate subslice matching in non-tail positions.
...
This breaks code that uses the `..xs` form anywhere but at the end of a
slice. For example:
match foo {
[ 1, ..xs, 2 ]
[ ..xs, 1, 2 ]
}
Add the `#![feature(advanced_slice_patterns)]` gate to reenable the
syntax.
RFC #54 .
Closes #16951 .
[breaking-change]
2014-09-08 11:04:14 -07:00
Steve Klabnik
a021330b1d
Fix vector/array/slice terminology in manual.
...
Fixes #16015 .
2014-09-07 05:28:59 -04:00
bors
57781c3c30
auto merge of #17019 : steveklabnik/rust/remove_compromise, r=thestinger
...
@dherman doesn't like it 😄
2014-09-07 07:16:27 +00:00
bors
c964cb229b
auto merge of #17018 : steveklabnik/rust/fix_projects_in_guide, r=huonw
...
Thanks @dherman.
2014-09-07 05:31:25 +00:00
Steve Klabnik
d929d83eec
don't say compromise
...
@dherman doesn't like it 😄
2014-09-05 06:38:53 -04:00
Steve Klabnik
12d66e6ac3
Fix formatting in the guide.
...
Thanks @dherman.
2014-09-05 06:37:22 -04:00
Felix Raimundo
d0f1c7dfb0
Update language item from 'share' to 'sync' #16988
2014-09-05 02:03:26 +02:00
bors
dfbd4669cd
auto merge of #16925 : jbcrail/rust/doc-spelling-errors, r=alexcrichton
...
I fixed spelling mistakes in the documentation.
2014-09-02 10:31:04 +00:00
Joseph Crail
7241267b93
doc: Fix spelling errors.
2014-09-01 20:52:38 -04:00
Steve Klabnik
d32bfe8c2b
Fix pointer types in the manual.
2014-09-01 14:03:00 -04:00
Alex Crichton
33029c5ddd
rollup merge of #16881 : cmr/guide-typo
2014-08-30 23:49:01 -07:00
Alex Crichton
56a029f145
rollup merge of #16852 : steveklabnik/desugar_destructure
2014-08-30 23:48:11 -07:00
Alex Crichton
963861fa40
rollup merge of #16849 : nhowell/patch-1
2014-08-30 23:48:05 -07:00
Alex Crichton
d1a5b277a1
rollup merge of #16839 : treeman/issue-15358
2014-08-30 23:47:23 -07:00
Alex Crichton
89d1c9c48c
rollup merge of #16833 : SebastianZaha/fix-guide-typo
2014-08-30 23:47:12 -07:00
Alex Crichton
c50fffaa9a
rollup merge of #16832 : SebastianZaha/fix-inconsistent-version-numbering
2014-08-30 23:47:07 -07:00
Alex Crichton
fe848fcd3b
rollup merge of #16828 : steveklabnik/more_pointer_guide
2014-08-30 23:46:46 -07:00
Alex Crichton
c6fd2d31ee
rollup merge of #16807 : nham/guide_added_ownership_rule
2014-08-30 23:46:38 -07:00
Alex Crichton
f7f8b20961
rollup merge of #16780 : mdinger/marker_types
2014-08-30 23:46:19 -07:00