Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix cross-crate foreign function usage #2835

Closed
wants to merge 33 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
9e6b43f
Rip out a bunch more append code from trans.
msullivan Jul 6, 2012
fce064d
tutorial: Reduce header level for do/for loop sections
brson Jul 6, 2012
b925648
Added a k-nucleotide version that uses pipes. 31% speedup.
eholk Jul 6, 2012
e20f63d
Bank protocol example from blog post
eholk Jul 6, 2012
ceac155
For #2229, recognize 'again' in place of 'cont', final change pending…
graydon Jul 6, 2012
038f925
Be less eager about implicit borrowing when doing method resolution. …
msullivan Jul 6, 2012
23c7336
Fix the indenter script to know about the annoying ~ in the front of …
msullivan Jul 6, 2012
6b8ebc1
First step on #2826, accept ^ for ty_ptr.
graydon Jul 6, 2012
57698fe
tutorial: Remove some trivia
brson Jul 7, 2012
4bb13c6
Add 'class' and 'new' to codemirror-rust.js
brson Jul 7, 2012
ad05996
tutorial: Fix a test-breaking typo
brson Jul 7, 2012
af199f2
tutorial: Expand the section on datatypes
brson Jul 7, 2012
28fec95
tutorial: Add some work on borrowed pointers
brson Jul 7, 2012
b5f5676
tutorial: Use consistent casing in headers
brson Jul 7, 2012
c4af6e9
rustc: Switch to the new resolution pass
pcwalton Jul 7, 2012
b5b8f5e
change borrowck error msg: 'declared in outer block' -> 'captured in …
bblum Jul 6, 2012
f9cb04f
vim: hilight option, either, libc types+constants
bblum Jul 7, 2012
a856bcc
Revert "rustc: Switch to the new resolution pass"
nikomatsakis Jul 7, 2012
59355e9
tutioral: Discuss basic function syntax is discussed before the memor…
brson Jul 7, 2012
205b483
tutorial: Discuss failure and asserts together
brson Jul 7, 2012
3413b3f
tutorial: Expand the section on functions
brson Jul 7, 2012
994c881
tutorial: Use blockquotes for asides. Add styling
brson Jul 7, 2012
7196617
tutorial: Reorder sections around the memory model discussion
brson Jul 7, 2012
04feb6e
tutorial: Add a note about the experimentalness of borrowed pointers
brson Jul 7, 2012
6fa64ee
tutorial: Pointer cleanup
brson Jul 7, 2012
f46e4ba
tutorial: Expand the section on vectors
brson Jul 8, 2012
4083e85
tutorial: Add a section on common vector methods
brson Jul 8, 2012
f5db565
tutorial: Add a few words about shadowing
brson Jul 8, 2012
f96ec94
tutorial: Typo
brson Jul 8, 2012
f3669df
Merge remote-tracking branch 'ben0x539/incoming'
brson Jul 8, 2012
c243c11
Add Benjamin Herr to AUTHORS.txt
brson Jul 8, 2012
8f9744d
tutorial: Cleanup
brson Jul 8, 2012
4878781
Fix metadata serialization of foreign functions. Properly take the va…
jdm Jul 7, 2012
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions AUTHORS.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ Armin Ronacher <armin.ronacher@active-4.com>
Austin Seipp <mad.one@gmail.com>
Ben Blum <bblum@andrew.cmu.edu>
Ben Striegel <ben.striegel@gmail.com>
Benjamin Herr <ben@0x539.de>
Benjamin Jackman <ben@jackman.biz>
Benjamin Kircher <benjamin.kircher@gmail.com>
Brendan Eich <brendan@mozilla.org>
Expand Down
4 changes: 2 additions & 2 deletions doc/lib/codemirror-rust.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ CodeMirror.defineMode("rust", function() {
"do": "else-style", "ret": "else-style", "fail": "else-style",
"break": "atom", "cont": "atom", "const": "let", "resource": "fn",
"let": "let", "fn": "fn", "for": "for", "alt": "alt", "iface": "iface",
"impl": "impl", "type": "type", "enum": "enum", "mod": "mod",
"impl": "impl", "type": "type", "enum": "enum", "class": "atom", "mod": "mod",
"as": "op", "true": "atom", "false": "atom", "assert": "op", "check": "op",
"claim": "op", "extern": "ignore", "unsafe": "ignore", "import": "else-style",
"export": "else-style", "copy": "op", "log": "op", "log_err": "op",
"use": "op", "bind": "op", "self": "atom"
"use": "op", "bind": "op", "self": "atom", "new": "atom"
};
var typeKeywords = function() {
var keywords = {"fn": "fn"};
Expand Down
7 changes: 7 additions & 0 deletions doc/rust.css
Original file line number Diff line number Diff line change
Expand Up @@ -57,3 +57,10 @@ h1.title {
background-repeat: no-repeat;
background-position: right;
}

blockquote {
color: black;
background-color: lavender;
margin: 1em;
padding: 0.5em 1em 0.5em 1em;
}
16 changes: 8 additions & 8 deletions doc/rust.md
Original file line number Diff line number Diff line change
Expand Up @@ -209,9 +209,9 @@ import export use mod
The keywords in [source files](#source-files) are the following strings:

~~~~~~~~ {.keyword}
alt assert
alt again assert
break
check claim class const cont copy
check claim class const copy
drop
else enum export extern
fail false fn for
Expand Down Expand Up @@ -2034,19 +2034,19 @@ break_expr : "break" ;
Executing a `break` expression immediately terminates the innermost loop
enclosing it. It is only permitted in the body of a loop.

### Continue expressions
### Again expressions

~~~~~~~~{.ebnf .gram}
break_expr : "cont" ;
again_expr : "again" ;
~~~~~~~~

Evaluating a `cont` expression immediately terminates the current iteration of
Evaluating an `again` expression immediately terminates the current iteration of
the innermost loop enclosing it, returning control to the loop *head*. In the
case of a `while` loop, the head is the conditional expression controlling the
loop. In the case of a `for` loop, the head is the vector-element increment
controlling the loop.
loop. In the case of a `for` loop, the head is the call-expression controlling
the loop.

A `cont` expression is only permitted in the body of a loop.
An `again` expression is only permitted in the body of a loop.


### For expressions
Expand Down
Loading