bors
a5d203579b
auto merge of #13758 : sodaplayer/rust/patch-1, r=alexcrichton
...
Rustdoc doesn't seem like it's converting the old format to a table as we can see here:
http://static.rust-lang.org/doc/master/complement-cheatsheet.html#ffi-(foreign-function-interface)
This new format should fix that and it's also rendered by Github's markdown preview.
2014-04-25 23:31:25 -07:00
bors
35f3f7a74b
auto merge of #13748 : hjr3/rust/guide-container-update, r=alexcrichton
2014-04-25 20:06:32 -07:00
bors
395d8857d6
auto merge of #13744 : adrientetar/rust/derp, r=brson
...
- Serve webfonts locally
- Style changes around `blockquote` and `code`
- Minor adjustments from previous changes
Bringing back updated examples: [modified tutorial](http://adrientetar.legtux.org/cached/rust-docs/tutorial.htm ) and [modified manual](http://adrientetar.legtux.org/cached/rust-docs/manual.htm ).
And for rustdoc, [modified `enum.FileType`](http://adrientetar.legtux.org/cached/rust-docs/enum.FileType.htm ), [modified `std`](http://adrientetar.legtux.org/cached/rust-docs/std.htm ) and [modified `std::io`](http://adrientetar.legtux.org/cached/rust-docs/io.htm ).
2014-04-25 18:26:33 -07:00
John Fresco
e7ca1d1c67
Update FFI signature table to use pipe format
...
Rustdoc doesn't seem like it's converting the old format to a table as we can see here:
http://static.rust-lang.org/doc/master/complement-cheatsheet.html#ffi-(foreign-function-interface)
This new format should fix that and it's also rendered by Github's markdown preview.
2014-04-25 13:07:30 -06:00
Herman J. Radtke III
87f2e21e18
doc: Update modules for containers
2014-04-25 08:17:18 -07:00
Michael Fairley
3124057101
Fix variable name in prose to match code it's describing
2014-04-25 10:15:47 -05:00
Adrien Tétar
b3577a10f3
rustdoc: bring it inline
2014-04-25 18:04:59 +09:00
Adrien Tétar
c9d995d384
doc,rustdoc: store webfonts locally
...
- Avoids cross-domain requests restrictions
- Better availability of content
- No HTML queries needed for an offline build
2014-04-25 17:05:56 +09:00
Adrien Tétar
14654835fc
doc: slight design refresh
2014-04-25 16:59:04 +09:00
Adrien Tétar
22160014a4
rustdoc: fixes
2014-04-25 16:56:39 +09:00
Andrew Gallant
b8b7484703
Add a regex crate to the Rust distribution.
...
Also adds a regex_macros crate, which provides natively compiled
regular expressions with a syntax extension.
Closes #3591 .
RFC: 0007-regexps
2014-04-25 00:27:24 -04:00
bors
30fe55066a
auto merge of #13597 : bjz/rust/float-api, r=brson
...
This pull request:
- Merges the `Round` trait into the `Float` trait, continuing issue #10387 .
- Has floating point functions take their parameters by value.
- Cleans up the formatting and organisation in the definition and implementations of the `Float` trait.
More information on the breaking changes can be found in the commit messages.
2014-04-22 22:01:32 -07:00
bors
3ec3c092ee
auto merge of #13683 : aochagavia/rust/pr, r=alexcrichton
...
Replaced "len" by "length", to match the given code example.
2014-04-22 17:26:33 -07:00
bors
1e3358903d
auto merge of #13673 : bmac/rust/utorial-fix, r=alexcrichton
...
This pr updates the "Additional tutorials" link in the scope section to match the "What next?" link in the table of contents.
2014-04-22 14:21:35 -07:00
mdinger
f7d2d5876c
Some more closure changes
2014-04-22 14:11:46 -04:00
Adolfo Ochagavía
f495723733
Fixed typo in tutorial
...
Replaced "len" by "length", to match the given code example.
2014-04-22 14:46:54 +01:00
bors
e6c8c7c9c6
auto merge of #13587 : adrientetar/rust/more-docs, r=brson
...
- Use Fira Sans for headlines, Heuristica for the body (Adobe Utopia derivative). Both are licensed under the SIL OFL license. (I didn't include BoldItalic because it is sparingly used.)
- Split TOC into 2 columns for the docs except manual (too tall, too wide to be readable).
- Some fixes to rustdoc, bring styles in coherency with eachother
- A few tweaks
Two examples: [modified tutorial](http://adrientetar.legtux.org/cached/rust-docs/tutorial.htm ) and [modified manual](http://adrientetar.legtux.org/cached/rust-docs/manual.htm ).
Rustdoc got some fixes, here is [modified `enum.FileType`](http://adrientetar.legtux.org/cached/rust-docs/enum.FileType.htm ), [modified `std`](http://adrientetar.legtux.org/cached/rust-docs/std.htm ) and [modified `std::io`](http://adrientetar.legtux.org/cached/rust-docs/io.htm ).
#13484 , #13485 follow-up.
cc @brson
2014-04-21 21:46:38 -07:00
Brendan McLoughlin
78cdec0951
Update the "Additional tutorials" link
2014-04-21 21:47:22 -04:00
Gary M. Josack
c54a78314f
Fix call order to be the same as definition order
2014-04-20 18:02:21 -07:00
Adrien Tétar
c494a06064
doc: unifying with rustdoc
...
Conflicts:
src/doc/rust.md
2014-04-20 21:11:44 +09:00
bors
a27dc534e4
auto merge of #13640 : jbcrail/rust/spelling-updates, r=alexcrichton
2014-04-20 03:06:29 -07:00
Joseph Crail
ae555e3830
Fix spelling mistakes in documentation and code.
2014-04-20 01:35:14 -04:00
Nick Cameron
ff04aa8e38
Allow inheritance between structs.
...
No subtyping, no interaction with traits. Partially addresses #9912 .
2014-04-20 13:41:18 +12:00
mdinger
36f98fb0bb
Demonstrate accessing external variable in first example
2014-04-19 14:36:53 -04:00
Adrien Tétar
fb9ea2eaca
doc: add webfonts and tweak the styles accordingly
2014-04-19 21:25:35 +09:00
mdinger
b5809644ad
Give more explanation when introducing closures
2014-04-19 03:21:01 -04:00
mdinger
ad0cdd7081
Be more clear about what this lambda expression does
2014-04-18 21:43:29 -04:00
Brendan Zabarauskas
bed70a42ec
Have floating point functions take their parameters by value.
...
Make all of the methods in `std::num::Float` take `self` and their other parameters by value.
Some of the `Float` methods took their parameters by value, and others took them by reference. This standardises them to one convention. The `Float` trait is intended for the built in IEEE 754 numbers only so we don't have to worry about the trait serving types of larger sizes.
[breaking-change]
2014-04-19 10:44:08 +10:00
Richo Healey
919889a1d6
Replace all ~"" with "".to_owned()
2014-04-18 17:25:34 -07:00
Alex Crichton
675b82657e
Update the rest of the compiler with ~[T] changes
2014-04-18 10:57:10 -07:00
Brandon Waskiewicz
58ae1e7c62
Remove rule that is confusing
...
The original text stated that one should only return a unique or managed pointer if you were given one in the first place. This makes it sound as if the function *should* return a unique pointer if it were given a unique pointer. The rest of the section goes on to describe why this is bad, and the example of bad code does exactly what the rule just said to do.
I reworded the original rule into a reference to the more concise rule mentioned at the bottom of the section, which helps add emphasis (a la 'it bears repeating').
2014-04-17 16:59:58 -04:00
Kang Seonghoon
010c107ca5
doc: Removed all definition lists as Sundown doesn't support them.
...
Closes #13561 . Please revert this commit when Sundown (or any
replacement) gets a support for definition lists in the future.
2014-04-17 02:48:28 +09:00
bors
72869b6579
auto merge of #13547 : alexcrichton/rust/remove-priv, r=huonw
...
See [RFC 6](e0c741f1c6/active/0006-remove-priv.md
)
2014-04-16 08:16:35 -07:00
Alex Crichton
5cfbc0e7ae
rustc: Remove private enum variants
...
This removes the `priv` keyword from the language and removes private enum
variants as a result. The remaining use cases of private enum variants were all
updated to be a struct with one private field that is a private enum.
RFC: 0006-remove-priv
Closes #13535
2014-04-16 08:12:43 -07:00
bors
349d66af94
auto merge of #13532 : alexcrichton/rust/rollup, r=alexcrichton
2014-04-15 23:36:58 -07:00
Mihnea Dobrescu-Balaur
ca5babea5f
Update GitHub's Rust projects page.
2014-04-15 19:45:00 -07:00
Tobias Bucher
a5dcbc66db
Remove RUST_LOG="::help" from the docs
...
This feature is no longer present in the current version, it was removed along
with the crate map.
2014-04-15 19:45:00 -07:00
bors
b400a4d272
auto merge of #13498 : johnsoft/rust/fix-transmute-fn-names, r=alexcrichton
...
Regions were renamed to lifetimes a while back, so these functions should probably be renamed as well.
2014-04-15 19:21:57 -07:00
bors
189584e792
auto merge of #13489 : JustAPerson/rust/crate-file-name, r=alexcrichton
...
Before, the `--crate-file-name` flag only checked crate attributes for
possible crate types. Now, if any type is specified by one or more
`--crate-type` flags, only the filenames for those types will be
emitted, and any types specified by crate attributes will be ignored.
2014-04-15 11:02:03 -07:00
bors
8a4ffbf625
auto merge of #13416 : brson/rust/30min, r=alexcrichton
...
This is intended to be the first thing somebody new to the language reads about Rust. It is supposed to be simple and intriguing, to give the user an idea of whether Rust is appropriate for them, and to hint that there's a lot of cool stuff to learn if they just keep diving deeper.
I'm particularly happy with the sequence of concurrency examples.
2014-04-15 06:02:06 -07:00
Brian Anderson
d1eb0e393f
doc: Address feedback about intro
2014-04-14 20:49:29 -07:00
JustAPerson
0162f8e6e1
Only check --crate-type flags if present.
...
Before, normal compilation and the --crate-file-name flag would
generate output based on both #![crate_type] attributes and
--crate-type flags. Now, if one or more flag is specified by command
line, only those will be used.
Closes #11573 .
2014-04-14 16:53:06 -05:00
bors
e2e754810c
auto merge of #13477 : Manishearth/rust/newattr, r=brson
...
See #13476
2014-04-14 07:11:53 -07:00
John Simon
133834084e
Replace 'region' with 'lifetime' in a few transmute function names
2014-04-13 17:42:00 -04:00
Alex Crichton
f862e1256d
doc: Un-ignore lots of guide-ffi tests
...
Using some strategically-placed `#` markers most of the examples are testable
(and their contents are nontrivial).
Closes #13445
2014-04-12 12:18:45 -07:00
Manish Goregaokar
d0aed0995b
Update tutorials to use new attribute syntax ( #13476 )
2014-04-12 09:03:39 +05:30
Liigo Zhuang
408f484b66
libtest: rename BenchHarness
to Bencher
...
Closes #12640
2014-04-11 17:31:13 +08:00
bors
9ff08119e3
auto merge of #13451 : cmr/rust/doc-ffi, r=brson
...
Closes #8748
2014-04-10 22:51:40 -07:00
Corey Richardson
eabf78c7b9
Document the nullable pointer optimization in the FFI guide
...
Closes #8748
2014-04-10 20:29:09 -04:00
Patrick Walton
d8e45ea7c0
libstd: Implement StrBuf
, a new string buffer type like Vec
, and
...
port all code over to use it.
2014-04-10 22:10:10 +10:00