bors
a425b75c64
auto merge of #5773 : dunsmoreb/rust/incoming, r=bstrie
...
Updates the tutorial to include a simple definition for tuples in section 4.2. Fixes #5132 .
2013-04-10 06:04:00 -07:00
Bryan Dunsmore
08bc392d94
Update destructuring to reference tuples section.
2013-04-10 07:06:18 -05:00
bors
786ae0114b
auto merge of #5782 : zofrex/rust/doc-1-tuples, r=thestinger
...
As per [the 0.6 release notes](https://github.com/mozilla/rust/wiki/Doc-detailed-release-notes#06-april-2013 ) single-element tuples are legal. I spotted a couple of places in the documentation that said otherwise, and propose these changes to them.
2013-04-08 16:22:03 -07:00
bors
c92936395c
auto merge of #5775 : pavpanchekha/rust/patch-1, r=thestinger
...
Change wrong field name in "Trait Inheritance" section.
2013-04-08 11:10:00 -07:00
Pavel Panchekha
c6d6782906
Fixed typo
...
Change wrong field name in "Trait Inheritance" section.
2013-04-07 23:19:31 -03:00
Bryan Dunsmore
f0d0cbfff8
Include definition of tuples for destructuring.
...
Updates the tutorial to include a simple definition for tuples in
section 4.2. Fixes #5132 .
2013-04-07 17:09:15 -05:00
zofrex
ac9e694d59
Update manual for single-element tuple types
2013-04-07 22:08:40 +01:00
zofrex
d1e2d295f8
Update manual for single-element tuples
2013-04-07 22:08:34 +01:00
zofrex
621d45b341
Update tutorial: 1-tuples now exist
2013-04-07 22:08:23 +01:00
bors
614d6da828
auto merge of #5721 : dhardy/rust/master, r=graydon
...
This is some stuff which seemed to be missing to me (though I haven't read everything yet so hope I haven't missed the relevant section).
A similar addition for borrowing handles is needed, but #5720 stumped me.
Comments welcome.
2013-04-05 18:54:52 -07:00
Diggory Hardy
e2a6feb8fe
Tutorial: spelling correction and move a failing test to an xfail-test marked code block.
2013-04-05 12:26:47 +02:00
Diggory Hardy
1e483c7b70
Tutorial: fix typo
2013-04-04 22:35:23 +02:00
Diggory Hardy
964fc862e0
Tutorial: comment on how mutability applies to boxes
2013-04-04 18:13:12 +02:00
bors
717ed51f12
auto merge of #5716 : dhardy/rust/master, r=thestinger
2013-04-04 06:12:49 -07:00
Diggory Hardy
cb91e91418
Tutorial: rename variable to avoid confusion.
2013-04-04 15:08:25 +02:00
bors
b5d8224212
auto merge of #5713 : brson/rust/tutorial2, r=thestinger
...
It doesn't quite reflect reality
2013-04-04 02:18:47 -07:00
bors
1dc330c313
auto merge of #5707 : brettcannon/rust/patch-1, r=thestinger
...
The sentence "Remember that `(float, float)` is a tuple of two floats"
sounds like you've already read a section on tuples, but that section
comes later. Changing it to "Assuming that ..." makes it more about
taking the writer's word that the syntax is how tuples are defined.
2013-04-04 01:21:50 -07:00
bors
21de574625
auto merge of #5703 : steveklabnik/rust/add_log_docs, r=thestinger
...
Closes #5699 .
2013-04-04 00:18:45 -07:00
Brian Anderson
679b1dcb62
doc: Rewrite task tutorial intro
...
It doesn't quite reflect reality
2013-04-03 22:54:58 -07:00
bors
aa899c97d9
auto merge of #5710 : ajuckel/rust/patch-1, r=luqmana
...
One word typo fix
2013-04-03 22:30:45 -07:00
Anthony Juckel
e2c7a4def2
Simple typo fix
2013-04-03 19:10:09 -05:00
Steve Klabnik
a7f0bfbda6
One more typo: dubug -> debug
2013-04-03 16:59:13 -07:00
Brett Cannon
8dd5a70ef4
Update tut. to not sound like I missed a section
...
The sentence "Remember that `(float, float)` is a tuple of two floats"
sounds like you've already read a section on tuples, but that section
comes later. Changing it to "Assuming that ..." makes it more about
taking the writer's word that the syntax is how tuples are defined.
2013-04-03 18:52:28 -03:00
Steve Klabnik
3044f5e2b6
typo fix: na -> an
2013-04-03 12:44:41 -07:00
Steve Klabnik
d79b22474c
Add information about logging macros to the tutorial.
...
Closes #5699 .
2013-04-03 11:40:23 -07:00
Daniel Micay
cc148b58ff
rename Linear{Map,Set} => Hash{Map,Set}
2013-04-03 10:30:36 -04:00
Daniel Micay
44029a5bbc
hashmap: rm linear namespace
2013-04-03 10:30:18 -04:00
bors
2815742ba5
auto merge of #5669 : graydon/rust/tweaks, r=thestinger
...
Just some minor cleanup of version strings and copyrights.
2013-04-01 18:00:43 -07:00
Graydon Hoare
951f460aa8
tidy version numbers and copyright dates
2013-04-01 16:15:49 -07:00
bors
d1935898ed
auto merge of #5662 : catamorphism/rust/docs, r=catamorphism
...
r? @brson
2013-04-01 16:03:47 -07:00
Tim Chevalier
ce09645591
docs: Xfail test, it's just for illustration anyway
2013-04-01 15:21:22 -07:00
Brian Anderson
243e601e51
doc: Update tutorial description of core
2013-04-01 14:30:14 -07:00
Tim Chevalier
dbeea18fc5
docs: Document language items, as per #3342
2013-04-01 14:05:03 -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
bors
a17a9d41f6
auto merge of #5624 : thestinger/rust/tutorial, r=pcwalton
2013-03-29 13:30:46 -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
bors
706ed6dd53
auto merge of #5583 : jbclements/rust/docfix-for-block-comment-grammar, r=jbclements
...
... by adding Kleene '+' in two places, and changing a "non-slash" into "non_slash_or_star".
Closes #1588
2013-03-29 09:39:43 -07:00
bors
5da9e12778
auto merge of #5570 : alexcrichton/rust/fix-unused-imports, r=sanxiyn
...
Before it wouldn't warn about unused imports in the list if something in the list was used. These commits fix that case, add a test, and remove all unused imports in lists of imports throughout the compiler.
2013-03-29 05:57:44 -07:00
Alex Crichton
be57d745d2
Removing unused imports
2013-03-28 23:56:46 -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
John Clements
dcb8fa8f35
added defn of non_slash_or_star
2013-03-28 10:23:20 -07:00
John Clements
81d30ade61
fix another subtle bug in comment regex
2013-03-28 10:19:08 -07:00
John Clements
48cb50af13
fixes stated grammar for block comments, by adding Kleene '+' in two places.
...
Closes #1588
2013-03-27 10:17:37 -07:00
Patrick Walton
b07b36bbf3
test: Fix tests
2013-03-26 22:45:22 -07:00
Patrick Walton
8b56a8380b
librustc: Modify all code to use new lifetime binder syntax
2013-03-26 21:30:17 -07:00
Alex Crichton
31f6e64324
doc: Remove mentions of oldmap::HashMap
2013-03-26 19:20:02 -04:00
bors
7f5d7e1c2e
auto merge of #5549 : brson/rust/rustdoc, r=brson
...
r?
2013-03-26 09:52:14 -07:00
Brian Anderson
4d745c288a
rustdoc: Tweak list style
2013-03-26 09:31:44 -07:00
Felix S. Klock II
e1dccf9a73
Updated to reflect alpha-rename of constant/static items section.
2013-03-26 14:36:01 +01:00
Felix S. Klock II
5b10f4e117
Miscellaneous documentation additions.
...
Added notes explaining how [expr, ..expr] form is used, targeted at
individuals like me who thought it was more general and handled
dynamic repeat expressions. (I left a TODO for this section in a
comment, but perhaps that is bad form for the manual...)
Added example of `do` syntax with a function of arity > 1; yes, one
should be able to derive this from the text above it, but it is still
a useful detail to compare and contrast against the arity == 1 case.
Added example of using for expression over a uint range, since someone
who is most used to write `for(int i; i < lim; i++) { ... }` will
likely want to know how to translate that form (regardless of whether
it happens to be good style or not for their use-case).
Added note about the semi-strange meaning of "fixed size" of vectors
in the vector type section.
2013-03-26 14:18:48 +01:00
bors
d469212d9d
auto merge of #5507 : graydon/rust/fixups2, r=graydon
...
Just some editing-to-reflect-reality on release notes and manual.
2013-03-25 16:36:58 -07:00
Graydon Hoare
b481829306
docs: update to avoid mention of const.
2013-03-25 15:53:02 -07:00
bors
df171e4b68
auto merge of #5505 : catamorphism/rust/macro-tutorial, r=graydon
...
r? @jbclements
2013-03-25 15:13:09 -07:00
Patrick Walton
28efc234f4
libcore: Fix obsolete syntax in extfmt
2013-03-22 23:09:15 -07:00
Tim Chevalier
3633ba240f
Copyedit macro tutorial
2013-03-22 16:11:27 -07:00
Tim Chevalier
ab2a397ae7
docs: Copyedit my randomly assigned sections of the manual
2013-03-22 14:45:16 -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
e78f2e2ac5
librustc: Make the compiler ignore purity.
...
For bootstrapping purposes, this commit does not remove all uses of
the keyword "pure" -- doing so would cause the compiler to no longer
bootstrap due to some syntax extensions ("deriving" in particular).
Instead, it makes the compiler ignore "pure". Post-snapshot, we can
remove "pure" from the language.
There are quite a few (~100) borrow check errors that were essentially
all the result of mutable fields or partial borrows of `@mut`. Per
discussions with Niko I think we want to allow partial borrows of
`@mut` but detect obvious footguns. We should also improve the error
message when `@mut` is erroneously reborrowed.
2013-03-18 17:21:16 -07:00
Patrick Walton
58f248d923
test: Fix tests. rs=tests
2013-03-13 20:08:35 -07: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
Patrick Walton
b1c699815d
librustc: Don't accept as Trait
anymore; fix all occurrences of it.
2013-03-13 20:07:09 -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
bors
5aca7d6aef
auto merge of #5137 : yjh0502/rust/empty_struct, r=nikomatsakis
...
The fix is straight-forward, but there are several changes
while fixing the issue.
1) disallow `mut` keyword when making a new struct
In code base, there are following code,
```rust
struct Foo { mut a: int };
let a = Foo { mut a: 1 };
```
This is because of structural record, which is
deprecated corrently (see issue #3089 ) In structural
record, `mut` keyword should be allowd to control
mutability. But without structural record, we don't
need to allow `mut` keyword while constructing struct.
2) disallow structural records in parser level
This is related to 1). With structural records, there
is an ambiguity between empty block and empty struct
To solve the problem, I change parser to stop parsing
structural records. I think this is not a problem,
because structural records are not compiled already.
Misc. issues
There is an ambiguity between empty struct vs. empty match stmt.
with following code,
```rust
match x{} {}
```
Two interpretation is possible, which is listed blow
```rust
match (x{}) {} // matching with newly-constructed empty struct
(match x{}) {} // matching with empty enum(or struct) x
// and then empty block
```
It seems that there is no such code in rust code base, but
there is one test which uses empty match statement:
https://github.com/mozilla/rust/blob/incoming/src/test/run-pass/issue-3037.rs
All other cases could be distinguished with look-ahead,
but this can't be. One possible solution is wrapping with
parentheses when matching with an uninhabited type.
```rust
enum what { }
fn match_with_empty(x: what) -> ~str {
match (x) { //use parentheses to remove the ambiguity
}
}
```
2013-03-02 04:21:38 -08:00
bors
10faa521ae
auto merge of #5188 : ben0x539/rust/doc-call-generic-fn, r=catamorphism
...
I have seen a few people confused on how to explicitly instantiate generic functions, since the syntax differs from C++'s and C#'s, which is probably where most people asking questions about generic functions are coming from. The only use of the `::<T>` syntax in the reference right now is in the section on paths, which is possibly not where someone trying to find out about generic functions is going to start looking. The tutorial doesn't mention it at all, but I think it's all right to make the reference a tiny bit more redundant and avoid stuffing the tutorial with syntax details.
----
The "Generic functions" subsection mentions that generic functions are instantiated based on context, so let's also mention right away (with a link to the #paths section) that an explicit form is available.
This also adds an example that explicitly instantiates a generic function to the function call expression section.
2013-03-02 01:00:41 -08:00
Jihyun Yu
95bc9ea26d
Remove REC, change related tests/docs
2013-03-02 12:57:05 +09:00
Benjamin Herr
382143abd8
doc/rust.md: Demonstrate the f::<T>()
syntax more often
...
The "Generic functions" subsection mentions that generic functions are
instantiated based on context, so let's also mention right away (with a
link to the #paths section) that an explicit form is available.
This also adds an example to the function call expression section that
explicitly instantiates a generic function.
2013-03-02 01:07:01 +01:00
Benjamin Herr
332c046029
docs/rust.md: Mention unit-like structs along with other struct types
2013-03-02 00:25:44 +01:00
Patrick Walton
2859c1ac6d
librustc: Enforce cross-crate method privacy
2013-02-28 11:32:26 -08:00
bors
292e946163
auto merge of #5106 : pnkfelix/rust/fix-docs, r=graydon
...
...s. I freely admit I have not run a "make check" on this (trivial) change.
2013-02-27 19:03:41 -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
Felix S. Klock II
b8dd2d8c67
Fix typo in grammar: underscore, not minus, can appear amongst hex digits.
2013-02-25 17:30:02 +01:00
Brian Anderson
dab6a85230
core: Extract comm from pipes. #4742
2013-02-21 17:36:54 -08: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
bors
67ee95e943
auto merge of #5029 : mcpherrinm/rust/master, r=catamorphism
...
Added a newline to make header be a header.
(re-did pull request because I screwed up the last one)
2013-02-19 00:08:31 -08:00
Matthew McPherrin
b29476374b
Missing newline causing title to not be a title
2013-02-18 23:22:36 -05:00
Armin Ronacher
99c4de7300
Fixed a typo in the documentation that points to the wrong macro (ident_to_str -> stringify)
2013-02-18 22:40:01 +00:00
Luqman Aden
178882c98f
tests/tutorials: Get rid of move
.
2013-02-15 02:49:55 -08:00
Nick Desaulniers
13fe167dbb
remove die definition and use in doc tests
2013-02-14 17:33:16 -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
John Clements
6d09fc2cd8
removed reference to crate file keywords
2013-02-13 15:08:26 -08:00
Olivier Saut
4dec0d5192
Typo s/recusive/recursive/
2013-02-08 11:45:47 +01: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
Brian Anderson
3b396d17d6
Merge remote-tracking branch 'thestinger/old_map' into incoming
...
Conflicts:
src/test/bench/core-map.rs
2013-02-03 17:56:49 -08:00
Marvin Löbel
af4972f3ce
Fixed fmt!
, tests, doc-tests.
2013-02-03 15:37:25 -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
Brian Anderson
9dc6938292
Merge remote-tracking branch 'nickdesaulniers/issue4524' into nocomm1
2013-02-01 11:18:58 -08:00
Nick Desaulniers
7868b6bf55
Remove fail keyword from lexer & parser and clean up remaining calls to
...
fail
Fix merge conflicts - Issue 4524
2013-02-01 00:15:42 -08:00
John Clements
53688addaa
test cases, cleanup
2013-01-31 23:05:12 -08:00
Brian Anderson
f0c9927c26
Merge pull request #4708 from dforsyth/add_if
...
add if to borrowed ptr tutorial
2013-01-31 17:01:32 -08:00
Niko Matsakis
0682ad0eb9
Finalize moves-based-on-type implementation.
...
Changes:
- Refactor move mode computation
- Removes move mode arguments, unary move, capture clauses
(though they still parse for backwards compatibility)
- Simplify how moves are handled in trans
- Fix a number of illegal copies that cropped up
- Workaround for bug involving def-ids in params
(see details below)
Future work (I'll open bugs for these...):
- Improve error messages for moves that are due
to bindings
- Add support for moving owned content like a.b.c
to borrow check, test in trans (but I think it'll
"just work")
- Proper fix for def-ids in params
Def ids in params:
Move captures into a map instead of recomputing.
This is a workaround for a larger bug having to do with the def-ids associated
with ty_params, which are not always properly preserved when inlining. I am
not sure of my preferred fix for the larger bug yet. This current fix removes
the only code in trans that I know of which relies on ty_param def-ids, but
feels fragile.
2013-01-31 12:09:00 -08:00
David Forsythe
72454f401e
add if to borrowed ptr tutorial
2013-01-31 09:10:15 -08:00
Ben Striegel
aa9c28ef47
Repair RIMOV damage to doc tests
2013-01-31 00:21:36 -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
20af4d7361
Add expected failure annotation on "fixed" example to placate 'make check'.
2013-01-29 13:18:40 +01: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
6cabe2b902
Fixed two examples of erroneous code so their errors match expectation.
...
1. In the first case, the previous code was failing during type inference
due to mismatched structure. Fix is to use the X structure at both
points in the code.
2. In the second case, a naive transcription that subsitutes *nothing*
in for the omitted statements signified by "..." will actually
compile without an error. Furthermore, any pure code could also be
substituted for the ellipsis and the code would compile (as the
text already states). So to make the example more illustrative, it
would be better to include an impure callback, which makes the
potential for aliasing immediately obvious to the reader.
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
John Clements
18f1dba510
doc typo
2013-01-25 11:58:33 -08:00
Tim Chevalier
f3ec278e46
Merge pull request #4609 from sonwow/keyword-super
...
Make `super` a keyword
2013-01-24 11:17:52 -08:00
Graydon Hoare
e8f4da78e7
doc: fix tutorial unsafe blocks, r=burningtree.
2013-01-23 23:21:47 -08:00
Youngsoo Son
4b2aa286d8
Make super
a keyword
2013-01-24 16:07:04 +09:00
Tim Chevalier
1d1b81143b
Merge pull request #4589 from sanxiyn/doc-vec-match
...
doc: Document pattern matching on vectors
2013-01-23 14:38:34 -08:00
Seo Sanghyeon
92e52bc95e
doc: Document pattern matching on vectors
2013-01-23 22:26:47 +09:00
Seo Sanghyeon
c379d96c67
doc: Document mutable function arguments
2013-01-23 17:20:36 +09:00
Tim Chevalier
e856606c0d
Merge pull request #4562 from lbonn/loglevel
...
doc: fix log level ids
2013-01-21 19:53:24 -08:00
Tim Chevalier
3fac6f8b54
Revert "doc: Fix tutorial-ffi xfail-tests and update SHA1() to use size_t"
...
This reverts commit 50c8cbb25a
.
2013-01-21 19:39:45 -08:00
Chris Peterson
50c8cbb25a
doc: Fix tutorial-ffi xfail-tests and update SHA1() to use size_t
2013-01-20 22:56:45 -08:00
Chris Peterson
0b6487cf2c
doc: Fix tutorial typo and remove unnecessary xfail-test
2013-01-20 22:56:45 -08:00
Chris Peterson
49e466f1e1
doc: Fix manual's link attributes example code
2013-01-20 22:56:45 -08:00
Laurent Bonnans
c3c90d2e4c
doc: fix log level ids
2013-01-21 15:49:46 +09:00
Patrick Walton
9c24c6221e
Merge pull request #4440 from pcwalton/tutorial
...
doc: Fold information from the memory model interlude in the tutorial elsewhere
2013-01-16 12:30:14 -08:00
Peter Williams
e4571446f9
doc: Fix spelling error in macro tutorial
2013-01-12 18:36:46 -05: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
Brian Anderson
62c7ca64f0
Merge remote-tracking branch 'superoptimizer/master' into HEAD
...
Conflicts:
doc/tutorial.md
2013-01-04 17:31:12 -08:00
Mark Lacey
d94e9c0b04
Fix two minor issues in the tutorial.
...
Remove an extraneous 'then', and replace 'second' with 'first'.
2013-01-03 22:36:35 -08:00
Chris Peterson
16797fd525
doc: Fix some typos in the tutorial and reference manual
2012-12-31 13:46:52 -08:00
Tim Chevalier
cfb33fc23c
Merge pull request #4311 from FranklinChen/fix-macro-tutorial
...
Remove semicolons at the end of macro_rules! definitions that cause compile failure
2012-12-30 15:53:18 -08:00
Andrew Paseltiner
4cb9247e3b
doc: make small corrections to tutorial
2012-12-30 16:09:34 -05:00
Patrick Walton
4be7310be0
doc: Fix explanation and example of struct-like enum variants. rs=busted
2012-12-30 07:09:14 -08:00
Patrick Walton
4b3dd4b920
doc: Fix some broken tutorial examples. rs=bustage
2012-12-29 21:52:51 -08:00
Franklin Chen
6e7cf87101
Remove spurious semicolons at the end of macro_rules! definitions.
2012-12-29 01:37:00 -05:00
Tim Chevalier
09bb07bed9
Unfortunately, we can't embed cross-crate tests in the tutorial...
...
...as far as I know, anyway, so I xfailed this tutorial test.
2012-12-24 18:29:02 -08:00
Eric J. Holmes
8223a1278d
Fix example.
2012-12-24 18:29:02 -08:00
Eric J. Holmes
40a3e20bbb
Fix example.
2012-12-24 18:29:02 -08:00
Graydon Hoare
329316ce15
bump 0.5 => 0.6, redirect some URLs in docs.
2012-12-24 18:29:01 -08:00
Tim Chevalier
3cc0fbca5d
doc: mention struct-like enum variants /cc #4217
2012-12-24 15:59:37 -08:00
Tim Chevalier
cf768ce1f4
Unfortunately, we can't embed cross-crate tests in the tutorial...
...
...as far as I know, anyway, so I xfailed this tutorial test.
2012-12-24 14:07:37 -08:00
Tim Chevalier
b1b0c297a4
Merge pull request #4249 from graydon/0.6-bump
...
bump 0.5 => 0.6, redirect some URLs in docs.
2012-12-23 13:47:11 -08:00
Tim Chevalier
50bb838389
Merge pull request #4272 from ejholmes/crates-minimal-example
...
Fix example in 13.3.
2012-12-23 13:38:48 -08:00
Eric J. Holmes
889e560ca5
Fix example.
2012-12-23 13:30:23 -08:00
Eric J. Holmes
0100b02b3a
Fix example.
2012-12-23 13:26:12 -08:00
Graydon Hoare
dbd36111fe
bump 0.5 => 0.6, redirect some URLs in docs.
2012-12-21 15:35:49 -08:00
Brian Anderson
8b98e5a296
doc: Mention argument bindings in manual
2012-12-20 17:01:38 -08:00
Brian Anderson
45e62d0a14
tutorial: Discuss argument patterns
2012-12-20 16:51:37 -08:00
Brian Anderson
d098faa855
tutorial: Clarify description of trait inheritance
2012-12-20 16:36:13 -08:00
Brian Anderson
21c9d0858b
tutorial: Fix broken examples
2012-12-20 16:32:44 -08:00
Brian Anderson
f26df46a12
tutorial: Re-remove core:: prefix from some examples
2012-12-20 16:32:44 -08:00
Brian Anderson
d38f784da6
tutorial: Typo
2012-12-20 16:32:44 -08:00
Brian Anderson
b7354f114d
tutorial: Clean up language about syntax extensions
2012-12-20 16:32:43 -08:00
Brian Anderson
30fac74bf3
tutorial: Try to fit the early discussion of :: in better
2012-12-20 16:32:43 -08:00
Brian Anderson
cbddd5ed34
tutorial: Remove some trivia about operators
2012-12-20 16:32:43 -08:00
Brian Anderson
2f615dc965
tutorial: Editing
2012-12-20 16:32:43 -08:00
Brian Anderson
e4b3915393
tutorial: Fix example in syntax basics section
2012-12-20 16:32:43 -08:00
Brian Anderson
1983e540e6
tutorial: Update scope
2012-12-20 16:32:43 -08:00
Brian Anderson
072017e5ef
tutorial: Mention rusti with other tools
2012-12-20 16:32:43 -08:00
Brian Anderson
201039cf0d
tutorial: Discuss the primitive types along with their literals
2012-12-20 16:32:43 -08:00
Brian Anderson
107b2e5348
tutorial: It doesn't matter that Rust identifiers are the same as C
2012-12-20 16:32:43 -08:00
Brian Anderson
36e2c100bf
tutorial: Integrate constants into main intro text
2012-12-20 16:32:43 -08:00
Brian Anderson
e06ca65244
tutorial: Remove the section on constants
...
We can mention that constants are declared with 'const' in one line.
Don't need an entire section.
2012-12-20 16:32:42 -08:00
Brian Anderson
0b0b50aaae
tutorial: Remove the entire 'Types' section
...
It's not interesting
/cc: #4217
2012-12-20 16:32:42 -08:00
Brian Anderson
64681213af
tutorial: Remove mutable vector syntax
2012-12-20 16:32:42 -08:00
Brian Anderson
e0f9f89c65
tutorial: Remove confusing discussion about semicolons
...
This takes up a lot of words and isn't very clear. The previous
discussion gets they idea across.
/cc: #4217
2012-12-20 16:32:42 -08:00
Brian Anderson
9cbc0fd0d9
tutorial: Fix formatting
2012-12-20 16:32:42 -08:00
Brian Anderson
a24b9e038a
tutorial: update intro
2012-12-20 16:32:42 -08:00
Brian Anderson
f15ccc06f0
tutorial: Update for moves based on type
...
/cc: #4217
2012-12-20 16:32:42 -08:00
Brian Anderson
41870da5ad
tutorial: Typos
2012-12-20 16:32:42 -08:00
Brian Anderson
191b328f31
tutorial: Move method discussion after closures, before generics
...
/cc: #4217
2012-12-20 16:32:42 -08:00
Brian Anderson
af5cd341d3
Move mast static method to the section on methods
...
/cc: #4217
2012-12-20 16:32:42 -08:00
Brian Anderson
42ab33e572
Use explicit self in rest of tutorial
...
/cc: #4217
2012-12-20 16:32:42 -08:00
Brian Anderson
171e6a16f7
tutorial: Rewrite method section to deal with explicit self
...
Has to be moved until after the pointer discussion.
/cc: #4217
2012-12-20 16:32:41 -08:00
Brian Anderson
7d2c2dbf4b
tutorial: Reorder sections on traits
...
/cc: #4217
2012-12-20 16:32:41 -08:00
Brian Anderson
850050b7df
doc: 'trait constraints' -> 'inheritance'. Expand
...
/cc: #4217
2012-12-20 16:32:41 -08:00
Graydon Hoare
66aadecfee
doc: describe the Drop trait. cc: #4217
2012-12-20 16:26:11 -08:00
Tim Chevalier
8554d5e710
doc: Mention tuple structs
...
/cc: #4217
2012-12-19 21:52:03 -07:00
Tim Chevalier
b99a2542f3
docs: mention static methods
...
/cc #4217
2012-12-19 21:32:19 -07:00
Tim Chevalier
2d313fe501
Update docs to mention trait constraints; also fix failing doc tests
...
/cc #4217
2012-12-19 20:38:28 -07:00
Brian Anderson
6742c982a4
Bump version numbers in docs
2012-12-19 18:03:03 -08:00
Graydon Hoare
e0072e39a7
doc: structure expressions. cc: #4217
2012-12-19 17:24:19 -08:00
Graydon Hoare
46766974c7
doc: mention moved and copied types. cc: #4217
2012-12-19 16:55:34 -08:00
Isaac Aggrey
63232d6cf1
Fix doc typo
2012-12-19 12:46:24 -06:00
Brian Anderson
263136d389
'trait instance' -> 'object'
2012-12-18 17:03:56 -08:00
Brian Anderson
80a4769318
Update tutorial on generics. #4217
2012-12-18 16:28:40 -08:00
Graydon Hoare
6d4621d85f
doc: a little more material on object types, part of #4217 .
2012-12-18 14:37:18 -08:00
Paul Stansifer
7c103f2da9
Add a section to the macro tutorial about recursive macros.
2012-12-16 18:45:54 -05:00
Paul Stansifer
2b5e81c464
Reword some things in the macro tutorial.
2012-12-16 18:45:54 -05:00