Graydon Hoare
951f460aa8
tidy version numbers and copyright dates
2013-04-01 16:15:49 -07:00
Brian Anderson
243e601e51
doc: Update tutorial description of core
2013-04-01 14:30:14 -07:00
Luqman Aden
d617030d63
Update tutorial.md
...
Change fn() -> &fn().
2013-03-31 18:34:51 -07:00
Patrick Walton
1e91595520
librustc: Remove fail_unless!
2013-03-29 16:39:08 -07:00
Daniel Micay
0189ef3600
tutorial: add an example of freezing a managed box
2013-03-29 15:45:10 -04:00
Daniel Micay
f78af18127
tutorial: improve the managed boxes section
2013-03-29 15:45:10 -04:00
Daniel Micay
85ed840e23
tutorial: improve the owned boxes section
2013-03-29 15:45:07 -04:00
Daniel Micay
777ad8b204
tutorial: use "owned box" consistently
2013-03-29 14:16:52 -04:00
Daniel Micay
d4509f270b
tutorial: only Owned types can have a Drop impl
2013-03-28 18:41:55 -04:00
Daniel Micay
467502216e
tutorial: cleaner libc use statements
2013-03-28 17:53:29 -04:00
Patrick Walton
b07b36bbf3
test: Fix tests
2013-03-26 22:45:22 -07:00
Alex Crichton
31f6e64324
doc: Remove mentions of oldmap::HashMap
2013-03-26 19:20:02 -04:00
Graydon Hoare
b481829306
docs: update to avoid mention of const.
2013-03-25 15:53:02 -07:00
Patrick Walton
28efc234f4
libcore: Fix obsolete syntax in extfmt
2013-03-22 23:09:15 -07:00
Luca Bruno
f9bb7b7768
Tutorial: make struct section more coherent
...
In struct section of tutorial, make everything more coherent and
clear by always using "struct Point". Also, do not prematurely
introduce pointers and arrays. Fixes #5240
Signed-off-by: Luca Bruno <lucab@debian.org>
2013-03-21 21:33:29 +01:00
Daniel Micay
9967dc81fe
rewrite the tutorial section on boxes
2013-03-19 16:27:08 -04:00
Patrick Walton
8fa66e8e07
librustc: Remove implicit self from the language, except for old-style drop blocks.
2013-03-13 20:07:10 -07:00
Brian Anderson
82f190355b
Remove uses of log
2013-03-11 23:19:42 -07:00
Patrick Walton
08c840205e
librustc: Lint the old drop
destructor notation off
2013-03-11 09:36:00 -07:00
Patrick Walton
1fcb0443cf
doc: Remove documentation on newtype enums.
2013-03-11 09:35:59 -07:00
Patrick Walton
d7e74b5e91
librustc: Convert all uses of assert
over to fail_unless!
2013-03-07 22:37:57 -08:00
Niko Matsakis
3168fe06ff
Add manual &self/ and &static/ and /&self declarations that
...
are currently inferred. New rules are coming that will require
them to be explicit. All add some explicit self declarations.
2013-03-06 15:12:57 -05:00
Patrick Walton
30bb09c0e7
test: Remove fn@
, fn~
, and fn&
from the test suite. rs=defun
2013-03-02 18:47:47 -08:00
Patrick Walton
a3f728238b
librustc: Forbid chained imports and fix the logic for one-level renaming imports
2013-03-02 16:49:30 -08:00
Patrick Walton
2859c1ac6d
librustc: Enforce cross-crate method privacy
2013-02-28 11:32:26 -08:00
Patrick Walton
8d7e6ef772
libsyntax: Forbid ~mut
and ~const
. rs=demuting
2013-02-27 09:40:15 -08:00
Alex Crichton
df481473da
Fix unused imports in the tutorials
2013-02-26 17:52:16 -05:00
bors
0e6d895ed8
auto merge of #5119 : Kimundi/rust/incoming, r=catamorphism
...
Removed deprecated `str()` functions in int-template.rs and uint-template.rs
2013-02-26 10:54:39 -08:00
Patrick Walton
c9dd917fad
doc: Remove references to mut fields. rs=demuting
2013-02-26 10:02:36 -08:00
Marvin Löbel
42b0bacd76
Removed deprecated str()
functions in int-template.rs and uint-template.rs
2013-02-26 16:38:30 +01:00
Patrick Walton
c0defda499
librustc: Separate the rest of the trait bounds with +
and stop parsing space-separated ones. rs=plussing
2013-02-21 08:29:48 -08:00
Marvin Löbel
34c39bb1c4
Rewrited section about rust tool
2013-02-19 22:19:19 +01:00
Marvin Löbel
8ee2d58683
Give the rust tool an own section in the tutorial.
2013-02-19 20:57:23 +01:00
Marvin Löbel
f684a8a56b
Mention rust tool in the tutorial
2013-02-19 18:10:31 +01:00
Luqman Aden
178882c98f
tests/tutorials: Get rid of move
.
2013-02-15 02:49:55 -08:00
Chris Peterson
5a4695d407
update tutorial and manual to use new impl Trait for Type
syntax
2013-02-13 23:19:27 -08:00
Brian Anderson
e08a805b30
Merge remote-tracking branch 'bstrie/rimov' into incoming
...
Conflicts:
src/libsyntax/parse/parser.rs
src/test/bench/graph500-bfs.rs
src/test/bench/sudoku.rs
src/test/run-pass/borrowck-mut-vec-as-imm-slice.rs
src/test/run-pass/empty-mutable-vec.rs
src/test/run-pass/foreach-nested.rs
src/test/run-pass/swap-2.rs
2013-02-04 11:58:30 -08:00
Daniel Micay
319eeb1c79
rename map -> oldmap and mark it as deprecated
...
LinearMap is quite a bit faster, and is fully owned/sendable without
requiring copies. The older std::map also doesn't use explicit self and
relies on mutable fields.
2013-02-03 15:55:10 -05:00
Ben Striegel
743c1c37e8
RIMOV, round 11
...
Last bit of mut removal, manually cleaning up outliers
2013-01-30 23:19:40 -05:00
Patrick Walton
366812a5c3
librustc: Change self
as a type to Self
everywhere. r=brson
2013-01-30 19:52:45 -08:00
Felix S. Klock II
2dda6d6f5d
Formatting cleanup.
...
I had put a line break in to try to stress the binding of mycircle,
but generated document looks cleaner without newline.
2013-01-29 11:28:52 +01:00
Felix S. Klock II
88bec09e63
Fix two code examples in main rust tutorial.
...
1. The section on trait definitions of static methods should include
a trait with a static method in the generated document.
2. The section on trait inheritance had a expression that appears
nonsensical ("let mycircle = @mycircle") in the generated document.
The text would be clearer (IMO) if we continued with the running
example of CircleStruct.
2013-01-29 11:28:52 +01:00
Seo Sanghyeon
92e52bc95e
doc: Document pattern matching on vectors
2013-01-23 22:26:47 +09:00
Chris Peterson
0b6487cf2c
doc: Fix tutorial typo and remove unnecessary xfail-test
2013-01-20 22:56:45 -08:00
Patrick Walton
f0fa67d6bf
doc: Fold information from the memory model interlude in the tutorial elsewhere
2013-01-10 21:24:55 -08:00
John Clements
08275826ca
corrected imprecision in description of mutable fields
2013-01-10 20:48:49 -08:00
Brian Anderson
22ed202b61
tutorial: Remove memory model section
2013-01-10 15:22:22 -08:00
Patrick Walton
2db3abddcd
librustc: Make unqualified identifier searches terminate at the nearest module scope. r=tjc
2013-01-08 22:02:35 -08:00
Patrick Walton
44ab00ee37
Revert "librustc: Make unqualified identifier searches terminate at the nearest module scope. r=tjc"
...
This reverts commit a8d37af247
.
2013-01-08 19:29:16 -08:00
Patrick Walton
a8d37af247
librustc: Make unqualified identifier searches terminate at the nearest module scope. r=tjc
2013-01-08 19:27:57 -08:00