]> git.lizzy.rs Git - rust.git/log
rust.git
11 years agolibrustc: Move inline asm stuff to different mod.
Luqman Aden [Wed, 27 Mar 2013 19:50:57 +0000 (12:50 -0700)]
librustc: Move inline asm stuff to different mod.

11 years agoauto merge of #5569 : thestinger/rust/map, r=catamorphism
bors [Wed, 27 Mar 2013 21:31:03 +0000 (14:31 -0700)]
auto merge of #5569 : thestinger/rust/map, r=catamorphism

11 years agoauto merge of #5558 : nikomatsakis/rust/issue-4920-autoref-index-operator, r=nikomatsakis
bors [Wed, 27 Mar 2013 20:27:58 +0000 (13:27 -0700)]
auto merge of #5558 : nikomatsakis/rust/issue-4920-autoref-index-operator, r=nikomatsakis

Per discussion on IRC.

r? @pcwalton

11 years agoFix pretty-printer test failure by carrying the bound lifetime names through
Niko Matsakis [Wed, 27 Mar 2013 16:55:18 +0000 (12:55 -0400)]
Fix pretty-printer test failure by carrying the bound lifetime names through
the types.  Initially I thought it would be necessary to thread this data
through not only the AST but the types themselves, but then I remembered that
the pretty printer only cares about the AST.  Regardless, I have elected to
leave the changes to the types intact since they will eventually be needed.  I
left a few FIXMEs where it didn't seem worth finishing up since the code wasn't
crucial yet.

11 years agoanother pub fn for check-fast
Graydon Hoare [Wed, 27 Mar 2013 18:30:38 +0000 (11:30 -0700)]
another pub fn for check-fast

11 years agotestsuite: more `pub fn main`
Tim Chevalier [Wed, 27 Mar 2013 16:58:28 +0000 (09:58 -0700)]
testsuite: more `pub fn main`

11 years agoOh, cool, I xfailed the wrong test, neat
Tim Chevalier [Wed, 27 Mar 2013 00:55:41 +0000 (17:55 -0700)]
Oh, cool, I xfailed the wrong test, neat

11 years agotestsuite: Add various test cases
Tim Chevalier [Thu, 21 Mar 2013 22:00:29 +0000 (15:00 -0700)]
testsuite: Add various test cases

Some are xfailed, some not, some existing ones get un-xfailed.

11 years agoAutoref the argument to the index operator (#4920)
Niko Matsakis [Tue, 26 Mar 2013 19:04:30 +0000 (15:04 -0400)]
Autoref the argument to the index operator (#4920)

11 years agotest: xfail-pretty one of the run-pass tests. rs=burningtree
Patrick Walton [Wed, 27 Mar 2013 14:35:49 +0000 (07:35 -0700)]
test: xfail-pretty one of the run-pass tests. rs=burningtree

11 years agoSimplify and remove unnecessary use of ast_map
Niko Matsakis [Tue, 26 Mar 2013 16:50:49 +0000 (12:50 -0400)]
Simplify and remove unnecessary use of ast_map

11 years agoremove sty_by_ref, though traces still remain due to dtors
Niko Matsakis [Tue, 26 Mar 2013 10:05:40 +0000 (06:05 -0400)]
remove sty_by_ref, though traces still remain due to dtors

11 years agotest: Fix botched error message in compile-fail test
Patrick Walton [Wed, 27 Mar 2013 06:31:56 +0000 (23:31 -0700)]
test: Fix botched error message in compile-fail test

11 years agotest: Fix tests
Patrick Walton [Wed, 27 Mar 2013 04:17:29 +0000 (21:17 -0700)]
test: Fix tests

11 years agolibrustc: Remove obsolete syntax
Patrick Walton [Wed, 27 Mar 2013 03:52:16 +0000 (20:52 -0700)]
librustc: Remove obsolete syntax

11 years agolibrustc: Enforce that `extern mod` directives come first, then `use` directives...
Patrick Walton [Wed, 27 Mar 2013 02:53:33 +0000 (19:53 -0700)]
librustc: Enforce that `extern mod` directives come first, then `use` directives, then items.

Resolve them in this order as well.

11 years agolibrustc: Modify all code to use new lifetime binder syntax
Patrick Walton [Mon, 25 Mar 2013 20:21:04 +0000 (13:21 -0700)]
librustc: Modify all code to use new lifetime binder syntax

11 years agolibrustc: Require explicit lifetime binders
Patrick Walton [Mon, 25 Mar 2013 20:15:03 +0000 (13:15 -0700)]
librustc: Require explicit lifetime binders

11 years agolibrustc: Fix bug with newtype structs containing dtors
Patrick Walton [Mon, 25 Mar 2013 04:04:01 +0000 (21:04 -0700)]
librustc: Fix bug with newtype structs containing dtors

11 years agolibrustc: Stop parsing `[T * N]`.
Patrick Walton [Sat, 23 Mar 2013 02:22:12 +0000 (19:22 -0700)]
librustc: Stop parsing `[T * N]`.

11 years agolibrustc: Remove all uses of the old `[T * N]` fixed-length vector syntax
Patrick Walton [Sat, 23 Mar 2013 01:52:04 +0000 (18:52 -0700)]
librustc: Remove all uses of the old `[T * N]` fixed-length vector syntax

11 years agolibsyntax: Stop parsing `[const T]`.
Patrick Walton [Sat, 23 Mar 2013 01:24:37 +0000 (18:24 -0700)]
libsyntax: Stop parsing `[const T]`.

11 years agolibcore: Change `[const T]` to `const [T]` everywhere
Patrick Walton [Sat, 23 Mar 2013 00:58:50 +0000 (17:58 -0700)]
libcore: Change `[const T]` to `const [T]` everywhere

11 years agoauto merge of #5414 : thestinger/rust/option, r=catamorphism
bors [Wed, 27 Mar 2013 03:18:54 +0000 (20:18 -0700)]
auto merge of #5414 : thestinger/rust/option, r=catamorphism

11 years agooption: rm functions that duplicate methods
Daniel Micay [Sat, 16 Mar 2013 19:49:12 +0000 (15:49 -0400)]
option: rm functions that duplicate methods

11 years agoauto merge of #5560 : brson/rust/relnotes, r=brson
bors [Wed, 27 Mar 2013 02:24:53 +0000 (19:24 -0700)]
auto merge of #5560 : brson/rust/relnotes, r=brson

r?

11 years agofix the core-map benchmark's descending range
Daniel Micay [Wed, 27 Mar 2013 01:12:49 +0000 (21:12 -0400)]
fix the core-map benchmark's descending range

11 years agoauto merge of #5547 : catamorphism/rust/issue-4898, r=catamorphism
bors [Wed, 27 Mar 2013 00:54:53 +0000 (17:54 -0700)]
auto merge of #5547 : catamorphism/rust/issue-4898, r=catamorphism

11 years agoauto merge of #5523 : alexcrichton/rust/less-oldmap, r=thestinger
bors [Tue, 26 Mar 2013 23:21:59 +0000 (16:21 -0700)]
auto merge of #5523 : alexcrichton/rust/less-oldmap, r=thestinger

I started out just removing a few instances of `HashMap` throughout rustc, but it ended up snowballing to remove the entire thing. Most uses translated to just using `@mut LinearMap` instead of `HashMap`, although I tried where possible to drop the `@mut` modifier. This ended up working out some of the time, but definitely not in the major use cases.

Things got kinda weird in some cases like:

* https://github.com/alexcrichton/rust/compare/mozilla:a56ec8c1342453a88be79e192a11501844375d40...alexcrichton:621b63300358cacad088ddd7f78180f29c40e66e#L39R1587
* https://github.com/alexcrichton/rust/compare/mozilla:a56ec8c1342453a88be79e192a11501844375d40...alexcrichton:621b63300358cacad088ddd7f78180f29c40e66e#L61R3760
* https://github.com/alexcrichton/rust/compare/mozilla:a56ec8c1342453a88be79e192a11501844375d40...alexcrichton:621b63300358cacad088ddd7f78180f29c40e66e#L71R917
* https://github.com/alexcrichton/rust/compare/mozilla:a56ec8c1342453a88be79e192a11501844375d40...alexcrichton:621b63300358cacad088ddd7f78180f29c40e66e#L91R127

I tried to tag them all with bugs which I thought would make them less weird, but I may have the wrong bug in a few places. These cases only came up when I tried to pass around `&mut LinearMap` instead of an `@mut LinearMap`.

I also ran into a few bugs when migrating to `LinearMap`, one of which is #5521. There's another set of bugs which a00d779042fb8753c716e07b4f1aac0d5ab7bf66 addresses (all marked with `XXX`). I have a feeling they're all the same bug, but all I've been able is to reproduce them. I tried to whittle down the test cases and try to get some input which causes a failure, but I've been unable to do so. All I know is that it's vaguely related to `*T` pointers being used as `&*T` (return value of `find`). I'm not able to open a very descriptive issue, but I'll do so if there seems no other better route.

I realize this is a very large pull request, so if it'd be better to split this up into multiple segments I'd be more than willing to do so. So far the tests all pass locally, although I'm sure bors will turn something up. I also don't mind keeping this up to date with rebasing. This maybe should wait until after 0.6 because it is a fairly large change...

11 years agostd: Remove the oldmap module
Alex Crichton [Sun, 24 Mar 2013 05:11:42 +0000 (01:11 -0400)]
std: Remove the oldmap module

11 years agoMove ast_map::map to LinearMap
Alex Crichton [Sun, 24 Mar 2013 01:45:27 +0000 (21:45 -0400)]
Move ast_map::map to LinearMap

11 years agotest: Remove uses of oldmap::HashMap
Alex Crichton [Sun, 24 Mar 2013 01:22:00 +0000 (21:22 -0400)]
test: Remove uses of oldmap::HashMap

11 years agorustc: Purge of HashMap, fixing segfaulting cases
Alex Crichton [Sat, 23 Mar 2013 22:55:58 +0000 (18:55 -0400)]
rustc: Purge of HashMap, fixing segfaulting cases

Various FIXME comments added around to denote copies which when removed cause
the compiler to segfault at some point before stage2. None of these copies
should even be necessary.

11 years agorustc: Remove uses of oldmap::HashMap
Alex Crichton [Sat, 23 Mar 2013 02:26:41 +0000 (22:26 -0400)]
rustc: Remove uses of oldmap::HashMap

11 years agodoc: Remove mentions of oldmap::HashMap
Alex Crichton [Thu, 21 Mar 2013 19:57:33 +0000 (15:57 -0400)]
doc: Remove mentions of oldmap::HashMap

11 years agosyntax: Removing uses of HashMap
Alex Crichton [Thu, 21 Mar 2013 19:41:37 +0000 (15:41 -0400)]
syntax: Removing uses of HashMap

11 years agoRemove unused imports throughout
Alex Crichton [Sat, 23 Mar 2013 02:26:32 +0000 (22:26 -0400)]
Remove unused imports throughout

11 years agocore: As per #4898, finish impls for one-tuples
Tim Chevalier [Tue, 26 Mar 2013 23:08:05 +0000 (16:08 -0700)]
core: As per #4898, finish impls for one-tuples

11 years agoauto merge of #5555 : Kimundi/rust/str-dealloc-3, r=catamorphism
bors [Tue, 26 Mar 2013 22:07:07 +0000 (15:07 -0700)]
auto merge of #5555 : Kimundi/rust/str-dealloc-3, r=catamorphism

- Most functions that used to return `~[~str]` for a list of substrings got turned into iterators over `&str` slices
- Some cleanup of apis, docs and code layout

11 years agoauto merge of #5467 : nikomatsakis/rust/issues-3888-4036-4492-cannot-encode-region...
bors [Tue, 26 Mar 2013 20:22:11 +0000 (13:22 -0700)]
auto merge of #5467 : nikomatsakis/rust/issues-3888-4036-4492-cannot-encode-region-variables, r=nikomatsakis

The basic problem was that vtables were not being resolved.  The fix uncovered another issue, which was that the syntax extensions were not creating method calls properly and were relying on outdated code in typeck, so I fixed that too.

Resolves issues #3888, #4036, #4492.

r? @catamorphism

11 years agoAdd missing authors
Brian Anderson [Tue, 26 Mar 2013 19:40:59 +0000 (12:40 -0700)]
Add missing authors

11 years agoStop writing directly to the final type/method/vtable sidetables from astconv
Niko Matsakis [Thu, 21 Mar 2013 12:34:18 +0000 (08:34 -0400)]
Stop writing directly to the final type/method/vtable sidetables from astconv
and from typeck, which is verboten.  We are supposed to write inference results
into the FnCtxt and then these get copied over in writeback.  Add assertions
that no inference by-products are added to this table.

Fixes #3888
Fixes #4036
Fixes #4492

11 years agoUpdate 0.6 release notes
Brian Anderson [Tue, 26 Mar 2013 19:28:04 +0000 (12:28 -0700)]
Update 0.6 release notes

11 years agocore: Hide GC docs
Brian Anderson [Mon, 25 Mar 2013 20:05:14 +0000 (13:05 -0700)]
core: Hide GC docs

11 years agoAdd various debug statements to trans that I used to help track down the
Niko Matsakis [Thu, 21 Mar 2013 12:33:52 +0000 (08:33 -0400)]
Add various debug statements to trans that I used to help track down the
problem and which seem like they could be useful in the future.

11 years agoRip out old code that still structured method calls as a
Niko Matsakis [Thu, 21 Mar 2013 01:28:30 +0000 (21:28 -0400)]
Rip out old code that still structured method calls as a
expr_call(expr_field(...)) rather than an expr_method_call.
There is probably more such code in trans that should be removed.

11 years agoauto merge of #5532 : brson/rust/coredocs, r=brson
bors [Tue, 26 Mar 2013 19:16:19 +0000 (12:16 -0700)]
auto merge of #5532 : brson/rust/coredocs, r=brson

r?

11 years agocore: Make sure every module at least has a one-line description
Brian Anderson [Mon, 25 Mar 2013 01:59:04 +0000 (18:59 -0700)]
core: Make sure every module at least has a one-line description

11 years agocore: Clarify prelude docs. #4556
Brian Anderson [Mon, 25 Mar 2013 01:38:17 +0000 (18:38 -0700)]
core: Clarify prelude docs. #4556

11 years agoauto merge of #5556 : nikomatsakis/rust/issues-4904-and-4855, r=nikomatsakis
bors [Tue, 26 Mar 2013 18:16:22 +0000 (11:16 -0700)]
auto merge of #5556 : nikomatsakis/rust/issues-4904-and-4855, r=nikomatsakis

Two small fixes.

r? @catamorphism

11 years agoCheck for null in return_to_mut. Fixes #4904.
Niko Matsakis [Tue, 26 Mar 2013 17:20:44 +0000 (13:20 -0400)]
Check for null in return_to_mut.  Fixes #4904.

11 years agoFix #4855: handle bot in regionck
Niko Matsakis [Tue, 26 Mar 2013 13:41:27 +0000 (09:41 -0400)]
Fix #4855: handle bot in regionck

11 years agoAdded more missing lifetime annotations
Marvin Löbel [Tue, 26 Mar 2013 18:07:14 +0000 (19:07 +0100)]
Added more missing lifetime annotations

11 years agoauto merge of #5549 : brson/rust/rustdoc, r=brson
bors [Tue, 26 Mar 2013 16:52:14 +0000 (09:52 -0700)]
auto merge of #5549 : brson/rust/rustdoc, r=brson

r?

11 years agorustdoc: Tweak list style
Brian Anderson [Mon, 25 Mar 2013 23:41:27 +0000 (16:41 -0700)]
rustdoc: Tweak list style

11 years agorustdoc: Add type bounds to impls
Brian Anderson [Mon, 25 Mar 2013 23:11:02 +0000 (16:11 -0700)]
rustdoc: Add type bounds to impls

11 years agorustdoc: Handle impl method visibility correctly. #5533
Brian Anderson [Mon, 25 Mar 2013 21:53:19 +0000 (14:53 -0700)]
rustdoc: Handle impl method visibility correctly. #5533

11 years agorustdoc: Build the crate config correctly. Fixes #5011
Brian Anderson [Mon, 25 Mar 2013 20:18:00 +0000 (13:18 -0700)]
rustdoc: Build the crate config correctly. Fixes #5011

11 years agorustdoc: Sanitize links harder
Brian Anderson [Mon, 25 Mar 2013 19:39:41 +0000 (12:39 -0700)]
rustdoc: Sanitize links harder

11 years agoauto merge of #5553 : pnkfelix/rust/doc-fixes-for-0.6-incoming, r=sanxiyn
bors [Tue, 26 Mar 2013 15:58:20 +0000 (08:58 -0700)]
auto merge of #5553 : pnkfelix/rust/doc-fixes-for-0.6-incoming, r=sanxiyn

11 years agoAdded missing lifetime annotations, doc and whitespace cleanups
Marvin Löbel [Tue, 26 Mar 2013 15:11:48 +0000 (16:11 +0100)]
Added missing lifetime annotations, doc and whitespace cleanups

11 years agoFixed all use sites and tests
Marvin Löbel [Tue, 26 Mar 2013 03:39:10 +0000 (04:39 +0100)]
Fixed all use sites and tests

11 years agoIsolated bug, static vector seems to behave differently than fixed sized one
Marvin Löbel [Mon, 25 Mar 2013 01:49:42 +0000 (02:49 +0100)]
Isolated bug, static vector seems to behave differently than fixed sized one

11 years agoSwitched over a bunch of splitting funktions to non-allocating iterators
Marvin Löbel [Sun, 24 Mar 2013 06:51:18 +0000 (07:51 +0100)]
Switched over a bunch of splitting funktions to non-allocating iterators

11 years agopre-rebase commit
Marvin Löbel [Sat, 23 Mar 2013 16:25:16 +0000 (17:25 +0100)]
pre-rebase commit

11 years agoMoved float str buffer constants to the strconv module
Marvin Löbel [Fri, 22 Mar 2013 01:04:13 +0000 (02:04 +0100)]
Moved float str buffer constants to the strconv module

11 years agoauto merge of #5546 : nikomatsakis/rust/ty_region-useful-span, r=catamorphism
bors [Tue, 26 Mar 2013 13:58:10 +0000 (06:58 -0700)]
auto merge of #5546 : nikomatsakis/rust/ty_region-useful-span, r=catamorphism

r? @catamorphism

11 years agoUpdated to reflect alpha-rename of constant/static items section.
Felix S. Klock II [Tue, 26 Mar 2013 13:36:01 +0000 (14:36 +0100)]
Updated to reflect alpha-rename of constant/static items section.

11 years agoCleanup wording around the awkward "and so on is . ." in the README.txt.
Felix S. Klock II [Mon, 11 Feb 2013 08:31:40 +0000 (09:31 +0100)]
Cleanup wording around the awkward "and so on is . ." in the README.txt.

11 years agoSpelling fixes; replaced `size` with `capacity` in few places.
Felix S. Klock II [Mon, 25 Mar 2013 22:34:15 +0000 (23:34 +0100)]
Spelling fixes; replaced `size` with `capacity` in few places.

11 years agoFixes mozilla/rust#3612.
Felix S. Klock II [Mon, 25 Mar 2013 14:22:19 +0000 (15:22 +0100)]
Fixes mozilla/rust#3612.

11 years agoMiscellaneous documentation additions.
Felix S. Klock II [Mon, 25 Mar 2013 14:21:02 +0000 (15:21 +0100)]
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.

11 years agoauto merge of #5538 : apasel422/rust/release-notes, r=sanxiyn
bors [Tue, 26 Mar 2013 12:42:57 +0000 (05:42 -0700)]
auto merge of #5538 : apasel422/rust/release-notes, r=sanxiyn

11 years agoauto merge of #5542 : catamorphism/rust/issue-4983, r=catamorphism
bors [Tue, 26 Mar 2013 11:42:57 +0000 (04:42 -0700)]
auto merge of #5542 : catamorphism/rust/issue-4983, r=catamorphism

11 years agoadd deriving changes to release notes
Andrew Paseltiner [Sun, 24 Mar 2013 12:57:58 +0000 (08:57 -0400)]
add deriving changes to release notes

11 years agoauto merge of #5540 : dbaupp/rust/configure-pandoc-version, r=brson
bors [Tue, 26 Mar 2013 10:31:03 +0000 (03:31 -0700)]
auto merge of #5540 : dbaupp/rust/configure-pandoc-version, r=brson

The version recognition was failing for pandoc version 1.11, thinking the
minor version was 1 rather than 11, and thus not building the documentation.

11 years agoauto merge of #5539 : apasel422/rust/kate, r=brson
bors [Tue, 26 Mar 2013 09:27:59 +0000 (02:27 -0700)]
auto merge of #5539 : apasel422/rust/kate, r=brson

11 years agoauto merge of #5537 : yichoi/rust/pull-0325, r=brson
bors [Tue, 26 Mar 2013 08:27:58 +0000 (01:27 -0700)]
auto merge of #5537 : yichoi/rust/pull-0325, r=brson

In order to mitigate typo of target-triples, error notification of unsupported target triples which defined in mk/platform.mk added.

minor fix for arm-linux-androideabi added.

11 years agoauto merge of #5536 : sanxiyn/rust/doc-purity, r=brson
bors [Tue, 26 Mar 2013 07:18:57 +0000 (00:18 -0700)]
auto merge of #5536 : sanxiyn/rust/doc-purity, r=brson

Fix #3804.

11 years agoauto merge of #5528 : thestinger/rust/find_mut, r=brson
bors [Tue, 26 Mar 2013 05:24:57 +0000 (22:24 -0700)]
auto merge of #5528 : thestinger/rust/find_mut, r=brson

This currently requires workarounds for the borrow checker not being flow-sensitive for `LinearMap` and `TrieMap`, but it can already be expressed for `TreeMap` and `SmallIntMap` without that.

11 years agoauto merge of #5525 : dbaupp/rust/minor_fixups, r=graydon
bors [Tue, 26 Mar 2013 04:18:57 +0000 (21:18 -0700)]
auto merge of #5525 : dbaupp/rust/minor_fixups, r=graydon

Kills some warnings, and implements str::each_char_reverse so that it actually iterates. The test case wasn't detecting a failure, since the loop body was never executed.

11 years agoauto merge of #5524 : luqmana/rust/repeat-loop, r=pcwalton
bors [Tue, 26 Mar 2013 03:16:01 +0000 (20:16 -0700)]
auto merge of #5524 : luqmana/rust/repeat-loop, r=pcwalton

`let v = [24, ..1000];` now more or less emits the same IR as:

```Rust
let mut i = 0;
while i < 1000 {
    v[i] = 24;
    i += 1;
}
```

LLVM will still turn it into a memset if possible with optimization on.

11 years agoauto merge of #5513 : apasel422/rust/deriving, r=luqmana
bors [Tue, 26 Mar 2013 02:01:00 +0000 (19:01 -0700)]
auto merge of #5513 : apasel422/rust/deriving, r=luqmana

This removes some explicit implementations of `Eq` in favor of `#[deriving(Eq)]` and derives `Clone` for a few core types.

11 years agoauto merge of #5509 : thestinger/rust/oldmap, r=brson
bors [Tue, 26 Mar 2013 01:01:04 +0000 (18:01 -0700)]
auto merge of #5509 : thestinger/rust/oldmap, r=brson

The reasoning for doing it this way is that it's much easier to transition method-by-method to the `Map` API than trying to do the migration all at once.

I found an issue unrelated to my changes in one of the run-fail tests - if it uses `LinearMap`, it still fails but exits with 0. I xfailed it for now and opened [an issue](https://github.com/mozilla/rust/issues/5512), because it's not caused by these changes.

11 years agoauto merge of #5507 : graydon/rust/fixups2, r=graydon
bors [Mon, 25 Mar 2013 23:36:58 +0000 (16:36 -0700)]
auto merge of #5507 : graydon/rust/fixups2, r=graydon

Just some editing-to-reflect-reality on release notes and manual.

11 years agoRELEASES.txt: wrong tick-mark
Graydon Hoare [Fri, 22 Mar 2013 23:47:02 +0000 (16:47 -0700)]
RELEASES.txt: wrong tick-mark

11 years agodocs: update to avoid mention of const.
Graydon Hoare [Fri, 22 Mar 2013 23:45:54 +0000 (16:45 -0700)]
docs: update to avoid mention of const.

11 years agoRELEASES.txt: Mention asm!, add cset count and a hyphen.
Graydon Hoare [Fri, 22 Mar 2013 19:41:42 +0000 (12:41 -0700)]
RELEASES.txt: Mention asm!, add cset count and a hyphen.

11 years agoExpand on cleanups in trans for expr_repeat and add to tests.
Luqman Aden [Mon, 25 Mar 2013 22:46:10 +0000 (15:46 -0700)]
Expand on cleanups in trans for expr_repeat and add to tests.

11 years agoauto merge of #5505 : catamorphism/rust/macro-tutorial, r=graydon
bors [Mon, 25 Mar 2013 22:13:09 +0000 (15:13 -0700)]
auto merge of #5505 : catamorphism/rust/macro-tutorial, r=graydon

r? @jbclements

11 years agomake ty_region give a useful span when it fails
Niko Matsakis [Mon, 25 Mar 2013 21:39:15 +0000 (17:39 -0400)]
make ty_region give a useful span when it fails

11 years agoauto merge of #5409 : brson/rust/rt, r=brson
bors [Mon, 25 Mar 2013 20:01:11 +0000 (13:01 -0700)]
auto merge of #5409 : brson/rust/rt, r=brson

r?

There are a lot of commits here, but not all that much substance. Mostly just refactoring.

I started sketching out the beginnings of a very simple I/O API in `core::rt::io` that represents I/O streams as a single `Stream` trait instead of `Reader` / `Writer` pairs. This seems to be the more common pattern (at least this is how the .NET BCL does it) and it seems to me that separate readers and writers would make duplex streams very awkward. Regardless, I don't intend to go very far down the I/O API design road without some mailing list discussion.

I've also started on the uv bindings for file I/O but haven't gotten very far.

Also hooked up the new scheduler to `rust_start` and the compiletest driver. 70% of run-pass test cases already pass, but I wouldn't read too much into that.

I also split the direct, low-level uv bindings in two so that the scheduler can have its own set, leaving `std::net` on its own.

11 years agoMerge remote-tracking branch 'brson/rt'
Brian Anderson [Sun, 24 Mar 2013 22:37:59 +0000 (15:37 -0700)]
Merge remote-tracking branch 'brson/rt'

Conflicts:
src/libcore/rt/context.rs
src/libcore/rt/sched.rs
src/libcore/rt/thread.rs
src/libcore/rt/uv.rs

11 years agoauto merge of #5424 : luqmana/rust/inline-rt, r=brson
bors [Mon, 25 Mar 2013 19:04:11 +0000 (12:04 -0700)]
auto merge of #5424 : luqmana/rust/inline-rt, r=brson

As per #2521. Inlining seems to improve performance slightly:

                 Inlined          Not Inlined
    x86:         13.5482            14.4112
    x86_64:      17.4712            18.0696

(Average of 5 runs timed with `time`)

```Rust

fn foo() -> int {
    int::from_str(~"28098").unwrap()
}

fn main() {
    for 1000000.times {
        foo();
        foo();
        foo();
        foo();
        foo();
    }
}
```

All run on:

    Linux 3.2.0-0.bpo.4-amd64 #1 SMP Debian 3.2.35-2~bpo60+1 x86_64 GNU/Linux

The MIPS and ARM bits I didn't inline since I'm not as familiar with them and I also can't test them. All green on try.

11 years agocore: Fix doc comment error, as per #4983
Tim Chevalier [Mon, 25 Mar 2013 18:12:14 +0000 (11:12 -0700)]
core: Fix doc comment error, as per #4983

11 years agoconfigure: simplify pandoc version recognition.
Huon Wilson [Mon, 25 Mar 2013 13:09:52 +0000 (00:09 +1100)]
configure: simplify pandoc version recognition.

The version recognition was failing for version 1.11, thinking the
minor version was 1 rather than 11.

11 years agokate: remove `const`, `log`, and `pure` keywords, add `super` keyword
Andrew Paseltiner [Mon, 25 Mar 2013 10:43:29 +0000 (06:43 -0400)]
kate: remove `const`, `log`, and `pure` keywords, add `super` keyword

11 years agoconfigure: error on unsupported target-triples and arm-linux-androideabi fix
Young-il Choi [Mon, 25 Mar 2013 06:36:34 +0000 (15:36 +0900)]
configure: error on unsupported target-triples and arm-linux-androideabi fix

11 years agorustdoc: Show purity
Seo Sanghyeon [Mon, 25 Mar 2013 06:02:42 +0000 (15:02 +0900)]
rustdoc: Show purity

11 years agotrie: improve docstring
Daniel Micay [Mon, 25 Mar 2013 04:22:23 +0000 (00:22 -0400)]
trie: improve docstring