Alex Crichton
b782d42cba
Deny all warnings by default in doc tests
...
Allow some common ones that are good for examples, however.
2013-07-26 18:04:20 -07:00
maikklein
b082302727
updated manual
2013-07-19 20:43:04 -04:00
bors
78f8b407e3
auto merge of #7846 : alexcrichton/rust/static-mut-dox, r=pnkfelix
...
It's probably a good idea to at least *mention* them somewhere.
2013-07-18 13:49:36 -07:00
Patrick Walton
2dbb3c3887
test: Fix tests.
2013-07-17 14:57:54 -07:00
Alex Crichton
8885b740f6
Add documentation about mutable statics to rust.md
2013-07-17 08:57:08 -07:00
Felix S. Klock II
8515abe0d9
Add doc and examples for attributes allow/warn/deny/forbid.
...
Fix #7821 .
2013-07-16 18:20:49 +02:00
Jens Nockert
20a2fbd055
I forgot the changes to the docs as well
...
Apparently yesterday wasn't my day, and I forgot to add the changes to
all the tests apparently, and in the end forgot the docs extra much.
Please documentation, forgive me, I really do love you, I hope you
forgive me.
Next time we'll meet tutorial, I promise to bring cookies and tea. I
really want to be best-friends-forever with you, <3.
XOXO
2013-07-09 18:24:30 +02:00
bors
63f7857697
auto merge of #7582 : mitsuhiko/rust/doc-fixes, r=huonw
...
Drop is no longer a keyword, removed it from the intro docs.
2013-07-07 01:44:02 -07:00
bors
e89dcb887b
auto merge of #7549 : sfackler/rust/docs, r=msullivan
...
I'm leaving the Sized kind undocumented since it isn't fully implemented
yet.
2013-07-04 19:01:54 -07:00
Armin Ronacher
8cb1a290a8
Removed drop from the keyword list in the docs
2013-07-04 11:56:11 +02:00
Steven Fackler
c63b3f8e28
Removing the rename warning
...
Now that the finalize->drop rename has happened, this hopefully
shouldn't end up changing again.
2013-07-02 09:58:24 -07:00
Steven Fackler
863e75f0a1
Fixed documentation for finalize->drop change
2013-07-02 09:58:18 -07:00
Steven Fackler
3e265e7842
Small documentation changes
...
I'm leaving the Sized kind undocumented since it isn't fully implemented
yet.
2013-07-01 23:37:11 -07:00
Huon Wilson
c437a16c5d
rustc: add a lint to enforce uppercase statics.
2013-07-01 17:52:57 +10:00
Patrick Walton
f9b54541ee
librustc: Disallow "mut" from distributing over bindings.
...
This is the backwards-incompatible part of per-binding-site "mut".
2013-06-28 10:44:15 -04:00
Huon Wilson
29b0649a6a
Convert vec::{push, push_all, push_all_move} to methods.
2013-06-28 00:20:42 +10:00
bors
3b126e4d6d
auto merge of #7274 : thestinger/rust/size_hint, r=huonw
...
I ran into a weird lifetime bug blocking updating the `collect` method to use `FromIterator`, but everything here works fine.
2013-06-22 23:07:55 -07:00
Daniel Micay
d2e9912aea
vec: remove BaseIter implementation
...
I removed the `static-method-test.rs` test because it was heavily based
on `BaseIter` and there are plenty of other more complex uses of static
methods anyway.
2013-06-23 02:05:20 -04:00
bors
fc83d82fec
auto merge of #7204 : alexcrichton/rust/deriving-to-string, r=pcwalton
...
Closes #7180 and #7179 .
Before, the `deriving(ToStr)` attribute was essentially `fmt!("%?")`. This changes it to recursively invoke `to_str()` on fields instead of relying on `fmt!`-style things. This seems more natural to me and what should actually be expected.
2013-06-22 17:13:51 -07:00
Alex Crichton
30d755957a
Expand the deriving(ToStr) implementation
2013-06-22 09:53:17 -07:00
Huon Wilson
769c2e5f99
Minor doc updates to reflect #[deriving(Zero)], and small release notes adjustments.
...
The `extra::fileinput` module landed just after 0.6 was released, and there are many
more derivable traits.
2013-06-21 00:55:13 -04:00
Niko Matsakis
bada191309
Correct docs
2013-06-16 12:48:08 -04:00
Huon Wilson
e8782eeb63
fix tests, remove some warnings
2013-06-11 02:34:14 +10:00
Huon Wilson
a64e886e3c
std: remove str::contains in favour of the method
2013-06-10 23:02:55 +10:00
Huon Wilson
c32fb53cf9
std: remove str::{len, slice, is_empty} in favour of methods.
2013-06-10 23:02:54 +10:00
Alexei Sholik
c7b19b04cb
Fix duplicate words in the docs
2013-06-06 10:43:58 +03:00
Patrick Walton
8114d0e950
librustc: Disallow multiple patterns from appearing in a "let" declaration.
...
You can still initialize multiple variables at once with "let (x, y) = (1, 2)".
2013-06-04 21:45:42 -07:00
Gábor Horváth
0d9ea4e2d1
Minor grammar fix.
2013-05-30 15:26:25 +02:00
Gábor Horváth
9fd18a93b7
Minor style fix.
2013-05-30 15:24:08 +02:00
Gábor Horváth
e583d5a6b6
Minor documentation addition.
2013-05-30 15:20:30 +02:00
bors
31b2804fda
auto merge of #6825 : caitp/rust/issue-6824, r=Aatch
...
Show `int_suffix_size` to appear 0 or 1 times
Show `exponent | . dec_lit` to appear 0 or 1 times, to show why `3f;` is a valid number
2013-05-29 22:58:35 -07:00
Caitlin Potter
bfe141c4e1
Fixes #6824 - Correct scan_number() grammar
...
Show `int_suffix_size` to appear 0 or 1 times
Show `exponent | . dec_lit` to appear 0 or 1 times, to show why `3f;` is a valid number
2013-05-30 00:51:16 -04:00
Patrick Walton
206ab89629
librustc: Stop reexporting the standard modules from prelude.
2013-05-29 19:04:53 -07:00
Tim Chevalier
248a669381
docs: Don't mention obsolete move operator, as per #5700
2013-05-23 20:27:56 -07:00
Ted Horst
34cfd2183b
more testing fallout from core->std/std->extra move
2013-05-23 15:06:29 -05:00
Corey Richardson
acf920fe4b
Add static_assert doc blurb
2013-05-22 13:13:29 -04:00
John Clements
b71a1ecea2
added and rewrote text for 'do' and 'for' loops
2013-05-20 11:49:21 -07:00
Huon Wilson
cd2eb4701f
syntax: implement #[deriving(DeepClone)]. Fixes #6514 .
2013-05-16 22:55:08 +10:00
Björn Steinbrink
bdc182cc41
Use static string with fail!() and remove fail!(fmt!())
...
fail!() used to require owned strings but can handle static strings
now. Also, it can pass its arguments to fmt!() on its own, no need for
the caller to call fmt!() itself.
2013-05-14 16:36:23 +02:00
bors
3abc5b3ffb
auto merge of #6417 : pcwalton/rust/exprs-in-patterns, r=pcwalton
...
r? @graydon
2013-05-13 13:25:42 -07:00
Huon Wilson
d43908a3a7
doc: document the #[deriving] attribute.
...
Closes #4916 .
2013-05-13 20:04:03 +10:00
Patrick Walton
06ef889cdc
libsyntax: Remove extern mod foo { ... }
from the language.
2013-05-12 16:33:15 -07:00
Alex Crichton
63c7e2f991
Remove the '<->' operator from the language
2013-05-10 22:51:06 -04:00
Daniel Micay
86efd97a10
add gitattributes and fix whitespace issues
2013-05-03 20:01:42 -04:00
Brendan Zabarauskas
ee26c7c433
Revert rename of Div to Quot
2013-05-01 15:40:05 +10:00
Jed Davis
4701716b56
Revert "doc: XFAIL mysterious failure on bots"
...
This reverts commit 2c6dae081b
.
2013-04-30 12:07:10 -07:00
Patrick Walton
2c6dae081b
doc: XFAIL mysterious failure on bots
2013-04-29 14:30:57 -07:00
Patrick Walton
670ab8ac36
librustc: Change labels to use the lifetime notation '
.
2013-04-29 14:30:57 -07:00
Marvin Löbel
3759b5711d
Fixed typo... And a billion other things.
2013-04-24 22:28:02 +02:00
Brendan Zabarauskas
01eb5e8ad3
Rename Div operator trait to Quot and Modulo operator trait to Rem
2013-04-22 01:58:53 +10:00