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

Initial stub for unicode case folding #5821

Closed
wants to merge 136 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
136 commits
Select commit Hold shift + click to select a range
2b07f0f
field renaming
jbclements Mar 12, 2013
556143c
commenting parser
jbclements Mar 8, 2013
f2e47cd
change to parsing using tts
jbclements Mar 6, 2013
a20d1ad
Improve documentation for core::io.
steveklabnik Apr 1, 2013
1d658d9
Improve docs for Core::ReaderUtil.
steveklabnik Apr 2, 2013
948ff60
Typo fix. u8 -> i8
steveklabnik Apr 2, 2013
88e4b5d
install the librust{doc,pkg} host libraries
thestinger Apr 2, 2013
86d5ce5
remove trailing whitespace
steveklabnik Apr 3, 2013
a3e2d6e
Remove excess trailing whitespace.
steveklabnik Apr 3, 2013
e4edfa0
libstd: implement fileinput.
huonw Feb 23, 2013
1e28d8f
libstd: implement io::Reader for fileinput.
huonw Mar 25, 2013
f357a03
auto merge of #5685 : thestinger/rust/build, r=graydon
bors Apr 3, 2013
fea1380
libstd: make fileinput tests pass.
huonw Apr 3, 2013
cb16cd9
auto merge of #5673 : steveklabnik/rust/improve_io_docs, r=catamorphism
bors Apr 3, 2013
26d8b51
auto merge of #5674 : steveklabnik/rust/improve_reader_util_docs, r=c…
bors Apr 3, 2013
0cc9030
auto merge of #5202 : dbaupp/rust/std-fileinput, r=graydon
bors Apr 3, 2013
e2bffb7
Implement Clone for tuples
Apr 3, 2013
afd5cba
auto merge of #5692 : Aatch/rust/tuple-clone, r=thestinger
bors Apr 3, 2013
84e5033
Make bench/noise.rs more idiomatic and 20x faster
bstrie Apr 3, 2013
260d74d
auto merge of #5695 : bstrie/rust/noise, r=thestinger
bors Apr 3, 2013
44029a5
hashmap: rm linear namespace
thestinger Apr 3, 2013
cc148b5
rename Linear{Map,Set} => Hash{Map,Set}
thestinger Apr 3, 2013
c16919d
Removing mut fields from vec.rs, at_vec.rs, str.rs, unstable.rs, and …
Thiez Apr 2, 2013
397a478
Unstable didn't need transmute_mut after all.
Thiez Apr 3, 2013
c4d2b79
Add Clone derivation for std::net::url types.
metajack Apr 3, 2013
6153aae
auto merge of #5559 : jbclements/rust/change-to-tt-based-parsing, r=j…
bors Apr 3, 2013
d79b224
Add information about logging macros to the tutorial.
steveklabnik Apr 3, 2013
34b2336
Fix compiletest on windows
brson Apr 3, 2013
3044f5e
typo fix: na -> an
steveklabnik Apr 3, 2013
5b933ae
auto merge of #5696 : thestinger/rust/hashmap, r=sanxiyn
bors Apr 3, 2013
8dd5a70
Update tut. to not sound like I missed a section
brettcannon Apr 3, 2013
17ab718
auto merge of #5698 : Thiez/rust/de-mutfielding, r=pcwalton
bors Apr 3, 2013
84c296b
auto merge of #5701 : metajack/rust/net-url-clone, r=thestinger
bors Apr 3, 2013
a7f0bfb
One more typo: dubug -> debug
steveklabnik Apr 3, 2013
e2c7a4d
Simple typo fix
ajuckel Apr 4, 2013
783392f
auto merge of #5704 : brson/rust/compiletest, r=luqmana
bors Apr 4, 2013
f064048
Remove a android hack
ILyoan Apr 3, 2013
fac0d9d
Decides main name by target
ILyoan Apr 3, 2013
53232f7
Fix fileinput test fail
ILyoan Apr 4, 2013
af1baa3
auto merge of #5691 : ILyoan/rust/main_name, r=thestinger
bors Apr 4, 2013
aa899c9
auto merge of #5710 : ajuckel/rust/patch-1, r=luqmana
bors Apr 4, 2013
679b1dc
doc: Rewrite task tutorial intro
brson Apr 4, 2013
21de574
auto merge of #5703 : steveklabnik/rust/add_log_docs, r=thestinger
bors Apr 4, 2013
1dc330c
auto merge of #5707 : brettcannon/rust/patch-1, r=thestinger
bors Apr 4, 2013
b5d8224
auto merge of #5713 : brson/rust/tutorial2, r=thestinger
bors Apr 4, 2013
99b156e
mk: mips toolchain config
crabtw Mar 19, 2013
fdf48a7
rt: improve mips backend
crabtw Mar 19, 2013
4f1d8cb
fix mac build and comment on stack size check
crabtw Mar 29, 2013
cb91e91
Tutorial: rename variable to avoid confusion.
Apr 4, 2013
717ed51
auto merge of #5716 : dhardy/rust/master, r=thestinger
bors Apr 4, 2013
964fc86
Tutorial: comment on how mutability applies to boxes
Apr 4, 2013
2c02aab
Add cell#with_mut_ref for handling mutable references to the content.
metajack Apr 4, 2013
25b39b8
src/librust/rust.rc: Fixes typo 'an executable' vs 'a executable'
Zhann Apr 4, 2013
1e483c7
Tutorial: fix typo
Apr 4, 2013
c08fb75
auto merge of #5431 : crabtw/rust/mips-rt, r=brson
bors Apr 4, 2013
babe506
auto merge of #5722 : metajack/rust/cell-with-ref-mut, r=catamorphism
bors Apr 5, 2013
ba63cba
libstd: move bigint to dedicated num directory
huonw Apr 5, 2013
7b0401d
libstd: add basic rational numbers
huonw Apr 5, 2013
82d5460
libstd: add basic complex numbers
huonw Apr 5, 2013
c6949b3
libstd: make complex.rs XXX's into issues and FIXME's
huonw Apr 5, 2013
1745a2c
refactor check_call_inner to have a better name and be readable
nikomatsakis Mar 26, 2013
d948308
Move the replacement of bound regions out from `check_arguments` and …
nikomatsakis Mar 27, 2013
007abe9
Rather than storing a list of ty::method per trait, store one ty::method
nikomatsakis Mar 27, 2013
5695965
Compute a ty::method for methods that appear in impls as well
nikomatsakis Mar 28, 2013
0a0525e
Pass around a pointer to the ty::method rather than the individual bi…
nikomatsakis Mar 29, 2013
3333b0f
Add a (currently unused) "transformed self type" pointer into ty::method
nikomatsakis Mar 29, 2013
d28f734
Refactor so that references to traits are not represented using a typ…
nikomatsakis Mar 27, 2013
2a44a1b
Fix various warnings, NOTEs, etc
nikomatsakis Apr 2, 2013
d716398
Add comment explaining method visibility
nikomatsakis Apr 4, 2013
13801f6
rustc: Be careful about calls to fn types that contain nested errors
nikomatsakis Apr 4, 2013
fd8f56e
Link lifetimes of autoslice'd vectors (Issue #3184)
nikomatsakis Apr 3, 2013
e2a6feb
Tutorial: spelling correction and move a failing test to an xfail-tes…
Apr 5, 2013
b22a060
Implement Clone for @ and @mut types.
metajack Apr 5, 2013
d375171
Move tests inside clone.rs and fixed copyright headers.
metajack Apr 5, 2013
d6f455e
rustllvm: Only initialize command-line arguments once
catamorphism Apr 6, 2013
08e2cf8
auto merge of #5676 : nikomatsakis/rust/issue-4183-trait_ref, r=nikom…
bors Apr 6, 2013
614d6da
auto merge of #5721 : dhardy/rust/master, r=graydon
bors Apr 6, 2013
28f0782
librustc: use new `[ty, .. len]` syntax for fixed vector errors.
huonw Apr 6, 2013
f678d63
auto merge of #5732 : Zhann/rust/master, r=catamorphism
bors Apr 6, 2013
bdd2439
auto merge of #5733 : dbaupp/rust/std-complex-rational, r=thestinger
bors Apr 6, 2013
28527ce
auto merge of #5740 : nikomatsakis/rust/issue-5739-reborrowed-slices,…
bors Apr 6, 2013
d09835d
auto merge of #5751 : metajack/rust/at-clones, r=thestinger
bors Apr 6, 2013
77eadc0
auto merge of #5755 : catamorphism/rust/rustllvm-cmdline, r=brson
bors Apr 6, 2013
44d4d6d
auto merge of #5757 : dbaupp/rust/rustc-fixed-vector-pprint, r=thesti…
bors Apr 6, 2013
38fe5aa
vim: disable nested comment
klutzy Apr 6, 2013
7c2a8c4
vim: add rustCommentDoc
klutzy Apr 6, 2013
eebf29e
Impl cmp/num traits for BigUint, BigInt
gifnksm Apr 6, 2013
c47d803
cmp: derive Clone for Ordering
thestinger Apr 7, 2013
a3f4018
cmp: add Ord+TotalOrd impls for Ordering itself
thestinger Apr 7, 2013
5641777
auto merge of #5756 : gifnksm/rust/bigint-impl, r=thestinger
bors Apr 7, 2013
fc26911
vim: fix comment highlighting bug
klutzy Apr 7, 2013
89676d6
libcore: fix overflow/underflow in range_step
gifnksm Apr 7, 2013
621d45b
Update tutorial: 1-tuples now exist
zofrex Apr 7, 2013
d1e2d29
Update manual for single-element tuples
zofrex Apr 7, 2013
ac9e694
Update manual for single-element tuple types
zofrex Apr 7, 2013
c6d6782
Fixed typo
pavpanchekha Apr 8, 2013
49cdf36
libcore: from_str_common: correctly signal failure on repeating base …
huonw Apr 7, 2013
41c6f67
libcore: from_str_common: provide option to ignore underscores.
huonw Apr 7, 2013
0c2ceb1
libsyntax: fail lexing with an error message on an int literal larger…
huonw Apr 7, 2013
2190efb
Put AUTHORS.txt file in the release tarball
lucab Apr 8, 2013
a5c931c
Update license terms in manpage
lucab Apr 8, 2013
2255587
auto merge of #5760 : klutzy/rust/vim, r=thestinger
bors Apr 8, 2013
c929363
auto merge of #5775 : pavpanchekha/rust/patch-1, r=thestinger
bors Apr 8, 2013
913ca08
auto merge of #5776 : dbaupp/rust/syntax-parse-large-number, r=thesti…
bors Apr 8, 2013
5a0f628
auto merge of #5777 : lucab/rust/lucab/doc/misc, r=thestinger
bors Apr 8, 2013
68d17bc
clone: managed boxes need to clone by shallow copy
thestinger Apr 7, 2013
1968130
auto merge of #5763 : thestinger/rust/clone, r=nikomatsakis
bors Apr 8, 2013
3136fba
Removing some mutable fields in libstd
alexcrichton Mar 24, 2013
255193c
Removing no longer needed unsafe blocks
alexcrichton Apr 8, 2013
e06b982
Fix typo in u16 debug info
auroranockert Apr 8, 2013
37f17d7
Update help text to match behavior
danluu Apr 8, 2013
2e907a3
core: Remove all but one drop block in favor of `finally`
brson Apr 8, 2013
786ae01
auto merge of #5782 : zofrex/rust/doc-1-tuples, r=thestinger
bors Apr 8, 2013
22f65e9
auto merge of #5786 : JensNockert/rust/u16-debuginfo-typo, r=catamorp…
bors Apr 9, 2013
30dbbe1
auto merge of #5787 : alexcrichton/rust/less-mut-fields, r=catamorphism
bors Apr 9, 2013
eaa8bbb
Fix comment to match style of surrounding text
danluu Apr 9, 2013
f9f8a3e
Support https protocol for git submodules for rust
vivekgalatage Apr 9, 2013
c6a4ba9
auto merge of #5800 : vivekgalatage/rust/master, r=bstrie
bors Apr 9, 2013
e56a178
auto merge of #5788 : danluu/rust/rusti_clear, r=bstrie
bors Apr 9, 2013
412a070
auto merge of #5769 : gifnksm/rust/range_step, r=bstrie
bors Apr 9, 2013
9963bd2
Cleanup substitutions and treatment of generics around traits in a nu…
nikomatsakis Apr 9, 2013
3e67085
Allow lint modes to be used on unused variables and dead assignments
alexcrichton Apr 9, 2013
23251b2
Bump version to 0.7-pre
brson Apr 5, 2013
81ba65d
auto merge of #5805 : brson/rust/0.7-pre, r=brson
bors Apr 9, 2013
7a1394d
vim: syntax highlight for inner doc comment
klutzy Apr 9, 2013
e8cd29b
Apply comments from tjc
nikomatsakis Apr 9, 2013
5e570ce
auto merge of #5766 : thestinger/rust/cmp, r=brson
bors Apr 9, 2013
92e265c
auto merge of #5802 : nikomatsakis/rust/issue-4183-trait-substs, r=ni…
bors Apr 10, 2013
ec3cfae
auto merge of #5807 : klutzy/rust/vim-inner-doc, r=brson
bors Apr 10, 2013
80b6bbd
auto merge of #5789 : brson/rust/drop, r=graydon
bors Apr 10, 2013
6100bb5
auto merge of #5804 : alexcrichton/rust/issue-3266, r=graydon
bors Apr 10, 2013
156a307
LLVM versions
sanxiyn Apr 10, 2013
0fea2bd
README: "driver/rust.rs" => "rust.rc"
Apr 10, 2013
7ebe577
auto merge of #5813 : sanxiyn/rust/llvm-version, r=thestinger
bors Apr 10, 2013
7222801
auto merge of #5812 : kud1ing/rust/patch-1, r=sanxiyn
bors Apr 10, 2013
e5e6345
Added initial stubs for unicode case folding support
Kimundi Apr 10, 2013
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
4 changes: 2 additions & 2 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[submodule "src/llvm"]
path = src/llvm
url = git://github.com/brson/llvm.git
url = https://github.com/brson/llvm.git
[submodule "src/libuv"]
path = src/libuv
url = git://github.com/brson/libuv.git
url = https://github.com/brson/libuv.git
2 changes: 1 addition & 1 deletion configure
Original file line number Diff line number Diff line change
Expand Up @@ -533,7 +533,7 @@ then
LLVM_VERSION=$($LLVM_CONFIG --version)

case $LLVM_VERSION in
(3.2svn|3.2|3.1svn|3.1|3.0svn|3.0)
(3.3|3.3svn|3.2|3.2svn)
msg "found ok version of LLVM: $LLVM_VERSION"
;;
(*)
Expand Down
31 changes: 27 additions & 4 deletions doc/rust.md
Original file line number Diff line number Diff line change
Expand Up @@ -441,10 +441,10 @@ expression context, the final namespace qualifier is omitted.
Two examples of paths with type arguments:

~~~~
# use core::hashmap::linear::LinearMap;
# use core::hashmap::HashMap;
# fn f() {
# fn id<T:Copy>(t: T) -> T { t }
type t = LinearMap<int,~str>; // Type arguments used in a type expression
type t = HashMap<int,~str>; // Type arguments used in a type expression
let x = id::<int>(10); // Type arguments used in a call expression
# }
~~~~
Expand Down Expand Up @@ -1653,11 +1653,12 @@ Path expressions are [lvalues](#lvalues-rvalues-and-temporaries).

### Tuple expressions

Tuples are written by enclosing two or more comma-separated
Tuples are written by enclosing one or more comma-separated
expressions in parentheses. They are used to create [tuple-typed](#tuple-types)
values.

~~~~~~~~ {.tuple}
(0,);
(0f, 4.5f);
("a", 4u, true);
~~~~~~~~
Expand Down Expand Up @@ -2578,7 +2579,7 @@ to the record type-constructor. The differences are as follows:

Tuple types and values are denoted by listing the types or values of their
elements, respectively, in a parenthesized, comma-separated
list. Single-element tuples are not legal; all tuples have two or more values.
list.

The members of a tuple are laid out in memory contiguously, like a record, in
order specified by the tuple type.
Expand Down Expand Up @@ -3251,6 +3252,28 @@ of runtime logging modules follows.
* `::rt::backtrace` Log a backtrace on task failure
* `::rt::callback` Unused

#### Logging Expressions

Rust provides several macros to log information. Here's a simple Rust program
that demonstrates all four of them:

```rust
fn main() {
error!("This is an error log")
warn!("This is a warn log")
info!("this is an info log")
debug!("This is a debug log")
}
```

These four log levels correspond to levels 1-4, as controlled by `RUST_LOG`:

```bash
$ RUST_LOG=rust=3 ./rust
rust: ~"\"This is an error log\""
rust: ~"\"This is a warn log\""
rust: ~"\"this is an info log\""
```

# Appendix: Rationales and design tradeoffs

Expand Down
67 changes: 28 additions & 39 deletions doc/tutorial-tasks.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,74 +2,63 @@

# Introduction

The designers of Rust designed the language from the ground up to support pervasive
and safe concurrency through lightweight, memory-isolated tasks and
message passing.

Rust tasks are not the same as traditional threads: rather, they are more like
_green threads_. The Rust runtime system schedules tasks cooperatively onto a
small number of operating system threads. Because tasks are significantly
Rust provides safe concurrency through a combination
of lightweight, memory-isolated tasks and message passing.
This tutorial will describe the concurrency model in Rust, how it
relates to the Rust type system, and introduce
the fundamental library abstractions for constructing concurrent programs.

Rust tasks are not the same as traditional threads: rather,
they are considered _green threads_, lightweight units of execution that the Rust
runtime schedules cooperatively onto a small number of operating system threads.
On a multi-core system Rust tasks will be scheduled in parallel by default.
Because tasks are significantly
cheaper to create than traditional threads, Rust can create hundreds of
thousands of concurrent tasks on a typical 32-bit system.
In general, all Rust code executes inside a task, including the `main` function.

In order to make efficient use of memory Rust tasks have dynamically sized stacks.
A task begins its life with a small
amount of stack space (currently in the low thousands of bytes, depending on
platform), and acquires more stack as needed.
Unlike in languages such as C, a Rust task cannot accidentally write to
memory beyond the end of the stack, causing crashes or worse.

Tasks provide failure isolation and recovery. When an exception occurs in Rust
code (as a result of an explicit call to `fail!()`, an assertion failure, or
another invalid operation), the runtime system destroys the entire
Tasks provide failure isolation and recovery. When a fatal error occurs in Rust
code as a result of an explicit call to `fail!()`, an assertion failure, or
another invalid operation, the runtime system destroys the entire
task. Unlike in languages such as Java and C++, there is no way to `catch` an
exception. Instead, tasks may monitor each other for failure.

Rust tasks have dynamically sized stacks. A task begins its life with a small
amount of stack space (currently in the low thousands of bytes, depending on
platform), and acquires more stack as needed. Unlike in languages such as C, a
Rust task cannot run off the end of the stack. However, tasks do have a stack
budget. If a Rust task exceeds its stack budget, then it will fail safely:
with a checked exception.

Tasks use Rust's type system to provide strong memory safety guarantees. In
particular, the type system guarantees that tasks cannot share mutable state
with each other. Tasks communicate with each other by transferring _owned_
data through the global _exchange heap_.

This tutorial explains the basics of tasks and communication in Rust,
explores some typical patterns in concurrent Rust code, and finally
discusses some of the more unusual synchronization types in the standard
library.

> ***Warning:*** This tutorial is incomplete

## A note about the libraries

While Rust's type system provides the building blocks needed for safe
and efficient tasks, all of the task functionality itself is implemented
in the core and standard libraries, which are still under development
and do not always present a consistent interface.

In particular, there are currently two independent modules that provide a
message passing interface to Rust code: `core::comm` and `core::pipes`.
`core::comm` is an older, less efficient system that is being phased out in
favor of `pipes`. At some point, we will remove the existing `core::comm` API
and move the user-facing portions of `core::pipes` to `core::comm`. In this
tutorial, we discuss `pipes` and ignore the `comm` API.
and do not always present a consistent or complete interface.

For your reference, these are the standard modules involved in Rust
concurrency at this writing.

* [`core::task`] - All code relating to tasks and task scheduling
* [`core::comm`] - The deprecated message passing API
* [`core::pipes`] - The new message passing infrastructure and API
* [`std::comm`] - Higher level messaging types based on `core::pipes`
* [`core::comm`] - The message passing interface
* [`core::pipes`] - The underlying messaging infrastructure
* [`std::comm`] - Additional messaging types based on `core::pipes`
* [`std::sync`] - More exotic synchronization tools, including locks
* [`std::arc`] - The ARC (atomic reference counted) type, for safely sharing
immutable data
* [`std::par`] - Some basic tools for implementing parallel algorithms
* [`std::arc`] - The ARC (atomically reference counted) type,
for safely sharing immutable data

[`core::task`]: core/task.html
[`core::comm`]: core/comm.html
[`core::pipes`]: core/pipes.html
[`std::comm`]: std/comm.html
[`std::sync`]: std/sync.html
[`std::arc`]: std/arc.html
[`std::par`]: std/par.html

# Basics

Expand Down
46 changes: 39 additions & 7 deletions doc/tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,7 @@ omitted.

A powerful application of pattern matching is *destructuring*:
matching in order to bind names to the contents of data
types. Remember that `(float, float)` is a tuple of two floats:
types. Assuming that `(float, float)` is a tuple of two floats:

~~~~
fn angle(vector: (float, float)) -> float {
Expand Down Expand Up @@ -747,7 +747,7 @@ fn area(sh: Shape) -> float {

Tuples in Rust behave exactly like structs, except that their fields
do not have names. Thus, you cannot access their fields with dot notation.
Tuples can have any arity except for 0 or 1 (though you may consider
Tuples can have any arity except for 0 (though you may consider
unit, `()`, as the empty tuple if you like).

~~~~
Expand Down Expand Up @@ -988,7 +988,7 @@ custom destructors.

# Boxes

Many modern languages represent values as as pointers to heap memory by
Many modern languages represent values as pointers to heap memory by
default. In contrast, Rust, like C and C++, represents such types directly.
Another way to say this is that aggregate data in Rust are *unboxed*. This
means that if you `let x = Point { x: 1f, y: 1f };`, you are creating a struct
Expand Down Expand Up @@ -1067,6 +1067,28 @@ let mut d = @mut 5; // mutable variable, mutable box
d = @mut 15;
~~~~

A mutable variable and an immutable variable can refer to the same box, given
that their types are compatible. Mutability of a box is a property of its type,
however, so for example a mutable handle to an immutable box cannot be
assigned a reference to a mutable box.

~~~~
let a = @1; // immutable box
let b = @mut 2; // mutable box

let mut c : @int; // declare a variable with type managed immutable int
let mut d : @mut int; // and one of type managed mutable int

c = a; // box type is the same, okay
d = b; // box type is the same, okay
~~~~

~~~~ {.xfail-test}
// but b cannot be assigned to c, or a to d
c = b; // error
~~~~


# Move semantics

Rust uses a shallow copy for parameter passing, assignment and returning values
Expand All @@ -1081,6 +1103,16 @@ let y = x.clone(); // y is a newly allocated box
let z = x; // no new memory allocated, x can no longer be used
~~~~

Since in owned boxes mutability is a property of the owner, not the
box, mutable boxes may become immutable when they are moved, and vice-versa.

~~~~
let r = ~13;
let mut s = r; // box becomes mutable
*s += 1;
let t = s; // box becomes immutable
~~~~

# Borrowed pointers

Rust's borrowed pointers are a general purpose reference type. In contrast with
Expand Down Expand Up @@ -1191,7 +1223,7 @@ they are frozen:
let x = @mut 5;
let y = x;
{
let y = &*y; // the managed box is now frozen
let z = &*y; // the managed box is now frozen
// modifying it through x or y will cause a task failure
}
// the box is now unfrozen again
Expand Down Expand Up @@ -1888,8 +1920,8 @@ illegal to copy and pass by value.
Generic `type`, `struct`, and `enum` declarations follow the same pattern:

~~~~
# use core::hashmap::linear::LinearMap;
type Set<T> = LinearMap<T, ()>;
# use core::hashmap::HashMap;
type Set<T> = HashMap<T, ()>;

struct Stack<T> {
elements: ~[T]
Expand Down Expand Up @@ -2288,7 +2320,7 @@ impl Shape for CircleStruct {
Notice that methods of `Circle` can call methods on `Shape`, as our
`radius` implementation calls the `area` method.
This is a silly way to compute the radius of a circle
(since we could just return the `circle` field), but you get the idea.
(since we could just return the `radius` field), but you get the idea.

In type-parameterized functions,
methods of the supertrait may be called on values of subtrait-bound type parameters.
Expand Down
4 changes: 2 additions & 2 deletions man/rustc.1
Original file line number Diff line number Diff line change
Expand Up @@ -170,5 +170,5 @@ See \fBAUTHORS.txt\fR in the rust source distribution. Graydon Hoare
<\[email protected]\fR> is the project leader.

.SH "COPYRIGHT"
This work is licensed under MIT-like terms. See \fBLICENSE.txt\fR
in the rust source distribution.
This work is dual-licensed under Apache 2.0 and MIT terms. See \fBCOPYRIGHT\fR
file in the rust source distribution.
1 change: 1 addition & 0 deletions mk/dist.mk
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ PKG_FILES := \
$(S)COPYRIGHT \
$(S)LICENSE-APACHE \
$(S)LICENSE-MIT \
$(S)AUTHORS.txt \
$(S)README.md \
$(S)configure $(S)Makefile.in \
$(S)man \
Expand Down
2 changes: 2 additions & 0 deletions mk/install.mk
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,8 @@ install-host: $(CSREQ$(ISTAGE)_T_$(CFG_BUILD_TRIPLE)_H_$(CFG_BUILD_TRIPLE))
$(Q)$(call INSTALL_LIB,$(HL),$(PHL),$(LIBSYNTAX_GLOB_$(CFG_BUILD_TRIPLE)))
$(Q)$(call INSTALL_LIB,$(HL),$(PHL),$(LIBRUSTI_GLOB_$(CFG_BUILD_TRIPLE)))
$(Q)$(call INSTALL_LIB,$(HL),$(PHL),$(LIBRUST_GLOB_$(CFG_BUILD_TRIPLE)))
$(Q)$(call INSTALL_LIB,$(HL),$(PHL),$(LIBRUSTPKG_GLOB_$(CFG_BUILD_TRIPLE)))
$(Q)$(call INSTALL_LIB,$(HL),$(PHL),$(LIBRUSTDOC_GLOB_$(CFG_BUILD_TRIPLE)))
$(Q)$(call INSTALL,$(HL),$(PHL),$(CFG_RUNTIME_$(CFG_BUILD_TRIPLE)))
$(Q)$(call INSTALL,$(HL),$(PHL),$(CFG_RUSTLLVM_$(CFG_BUILD_TRIPLE)))
$(Q)$(call INSTALL,$(S)/man, \
Expand Down
25 changes: 25 additions & 0 deletions mk/platform.mk
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,31 @@ CFG_RUN_arm-linux-androideabi=
CFG_RUN_TARG_arm-linux-androideabi=
RUSTC_FLAGS_arm-linux-androideabi :=--android-cross-path=$(CFG_ANDROID_CROSS_PATH)

# mips-unknown-linux-gnu configuration
CC_mips-unknown-linux-gnu=mips-linux-gnu-gcc
CXX_mips-unknown-linux-gnu=mips-linux-gnu-g++
CPP_mips-unknown-linux-gnu=mips-linux-gnu-gcc -E
AR_mips-unknown-linux-gnu=mips-linux-gnu-ar
CFG_LIB_NAME_mips-unknown-linux-gnu=lib$(1).so
CFG_LIB_GLOB_mips-unknown-linux-gnu=lib$(1)-*.so
CFG_LIB_DSYM_GLOB_mips-unknown-linux-gnu=lib$(1)-*.dylib.dSYM
CFG_GCCISH_CFLAGS_mips-unknown-linux-gnu := -Wall -g -fPIC -mips32r2 -msoft-float -mabi=32
CFG_GCCISH_CXXFLAGS_mips-unknown-linux-gnu := -fno-rtti
CFG_GCCISH_LINK_FLAGS_mips-unknown-linux-gnu := -shared -fPIC -g -mips32r2 -msoft-float -mabi=32
CFG_GCCISH_DEF_FLAG_mips-unknown-linux-gnu := -Wl,--export-dynamic,--dynamic-list=
CFG_GCCISH_PRE_LIB_FLAGS_mips-unknown-linux-gnu := -Wl,-whole-archive
CFG_GCCISH_POST_LIB_FLAGS_mips-unknown-linux-gnu := -Wl,-no-whole-archive -Wl,-znoexecstack
CFG_DEF_SUFFIX_mips-unknown-linux-gnu := .linux.def
CFG_INSTALL_NAME_mips-unknown-linux-gnu =
CFG_LIBUV_LINK_FLAGS_mips-unknown-linux-gnu =
CFG_EXE_SUFFIX_mips-unknown-linux-gnu :=
CFG_WINDOWSY_mips-unknown-linux-gnu :=
CFG_UNIXY_mips-unknown-linux-gnu := 1
CFG_PATH_MUNGE_mips-unknown-linux-gnu := true
CFG_LDPATH_mips-unknown-linux-gnu :=
CFG_RUN_mips-unknown-linux-gnu=
CFG_RUN_TARG_mips-unknown-linux-gnu=

# i686-pc-mingw32 configuration
CC_i686-pc-mingw32=$(CC)
CXX_i686-pc-mingw32=$(CXX)
Expand Down
5 changes: 5 additions & 0 deletions mk/rt.mk
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
LIBUV_FLAGS_i386 = -m32 -fPIC
LIBUV_FLAGS_x86_64 = -m64 -fPIC
LIBUV_FLAGS_arm = -fPIC -DANDROID -std=gnu99
LIBUV_FLAGS_mips = -fPIC -mips32r2 -msoft-float -mabi=32

# when we're doing a snapshot build, we intentionally degrade as many
# features in libuv and the runtime as possible, to ease portability.
Expand Down Expand Up @@ -180,6 +181,10 @@ else
$$(LIBUV_LIB_$(1)): $$(LIBUV_DEPS)
$$(Q)$$(MAKE) -C $$(S)src/libuv/ \
CFLAGS="$$(LIBUV_FLAGS_$$(HOST_$(1))) $$(SNAP_DEFINES)" \
LDFLAGS="$$(LIBUV_FLAGS_$$(HOST_$(1)))" \
CC="$$(CC_$(1))" \
CXX="$$(CXX_$(1))" \
AR="$$(AR_$(1))" \
builddir_name="$$(CFG_BUILD_DIR)/rt/$(1)/libuv" \
V=$$(VERBOSE)
endif
Expand Down
4 changes: 2 additions & 2 deletions src/compiletest/compiletest.rc
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
#[allow(deprecated_mode)];
#[allow(deprecated_pattern)];

extern mod core(vers = "0.6");
extern mod std(vers = "0.6");
extern mod core(vers = "0.7-rc");
extern mod std(vers = "0.7-rc");

use core::*;

Expand Down
2 changes: 1 addition & 1 deletion src/compiletest/procsrv.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ fn target_env(lib_path: ~str, prog: ~str) -> ~[(~str,~str)] {

// Make sure we include the aux directory in the path
assert!(prog.ends_with(~".exe"));
let aux_path = prog.slice(0u, prog.len() - 4u) + ~".libaux";
let aux_path = prog.slice(0u, prog.len() - 4u).to_owned() + ~".libaux";

env = do vec::map(env) |pair| {
let (k,v) = *pair;
Expand Down
Loading