]> git.lizzy.rs Git - rust.git/log
rust.git
11 years agoRemove the last bits of structural records from tests/rustc/rusti/rustpkg.
Luqman Aden [Thu, 21 Feb 2013 23:19:40 +0000 (15:19 -0800)]
Remove the last bits of structural records from tests/rustc/rusti/rustpkg.

11 years agoauto merge of #5068 : sethpink/rust/derive-eq-tuple-struct, r=catamorphism
bors [Thu, 21 Feb 2013 20:30:34 +0000 (12:30 -0800)]
auto merge of #5068 : sethpink/rust/derive-eq-tuple-struct, r=catamorphism

Previously an unimplemented error was thrown when using #[deriving_eq] on tuple-like struct definitions.

11 years agoauto merge of #5071 : luqmana/rust/derec, r=pcwalton
bors [Thu, 21 Feb 2013 17:20:43 +0000 (09:20 -0800)]
auto merge of #5071 : luqmana/rust/derec, r=pcwalton

Rid libsyntax of records and get rid of the last piece in `librustc/front/test.rs`.

11 years agoauto merge of #5069 : pcwalton/rust/plussing-2, r=pcwalton
bors [Thu, 21 Feb 2013 16:35:12 +0000 (08:35 -0800)]
auto merge of #5069 : pcwalton/rust/plussing-2, r=pcwalton

11 years agolibrustc: Separate the rest of the trait bounds with `+` and stop parsing space-separ...
Patrick Walton [Thu, 21 Feb 2013 02:04:57 +0000 (18:04 -0800)]
librustc: Separate the rest of the trait bounds with `+` and stop parsing space-separated ones. rs=plussing

11 years agoGet rid of structural records in libsyntax and the last bit in librustc.
Luqman Aden [Thu, 21 Feb 2013 08:16:31 +0000 (00:16 -0800)]
Get rid of structural records in libsyntax and the last bit in librustc.

11 years agoauto merge of #5065 : catamorphism/rust/issue-3453, r=catamorphism
bors [Thu, 21 Feb 2013 06:36:31 +0000 (22:36 -0800)]
auto merge of #5065 : catamorphism/rust/issue-3453, r=catamorphism

...because it appears to work now. Removes a FIXME.

11 years agoImplement #[deriving_eq] on tuple like structs
Seth Pink [Thu, 21 Feb 2013 04:57:27 +0000 (14:57 +1000)]
Implement #[deriving_eq] on tuple like structs

11 years agoauto merge of #5063 : pcwalton/rust/plussing, r=pcwalton
bors [Thu, 21 Feb 2013 05:22:30 +0000 (21:22 -0800)]
auto merge of #5063 : pcwalton/rust/plussing, r=pcwalton

11 years agolibrustc: Separate most trait bounds with '+'. rs=plussing
Patrick Walton [Thu, 21 Feb 2013 01:07:17 +0000 (17:07 -0800)]
librustc: Separate most trait bounds with '+'. rs=plussing

11 years agoauto merge of #5058 : Thiez/rust/incoming, r=catamorphism
bors [Thu, 21 Feb 2013 04:26:32 +0000 (20:26 -0800)]
auto merge of #5058 : Thiez/rust/incoming, r=catamorphism

I've moved all intrinsics in a single file (libcore/private/intrinsics.rs) and changed a few files to make use of this file (e.g. vec.rs: move_val_init).

Two intrinsics have been commented out:
visit_tydesc: it uses TyDesc and TyVisitor, this would create a dependency on librustc which seems undesirable.
frame_address: I really had no idea what it should look like without the legacy modes (would it even work? In several places in libcore the (legacy-modes) intrinsics were wrapped
with a normal fn) and what it was supposed to do.

Some documentation is still required, but many names are fairly self-explanatory.

11 years agoauto merge of #5066 : catamorphism/rust/luqmana-derecording, r=catamorphism
bors [Thu, 21 Feb 2013 03:16:33 +0000 (19:16 -0800)]
auto merge of #5066 : catamorphism/rust/luqmana-derecording, r=catamorphism

Most work done by @luqmana and @pcwalton - I just rebased.

11 years agoMerge
Tim Chevalier [Thu, 21 Feb 2013 02:48:05 +0000 (18:48 -0800)]
Merge

11 years agoFix vdef pattern
Tim Chevalier [Thu, 21 Feb 2013 02:03:43 +0000 (18:03 -0800)]
Fix vdef pattern

11 years agoFix flipped tuple that was causing all that pain
Tim Chevalier [Thu, 21 Feb 2013 00:42:44 +0000 (16:42 -0800)]
Fix flipped tuple that was causing all that pain

11 years agoMerge
Tim Chevalier [Thu, 21 Feb 2013 00:41:21 +0000 (16:41 -0800)]
Merge

11 years agolibrustc: tidy
Luqman Aden [Tue, 19 Feb 2013 08:14:56 +0000 (00:14 -0800)]
librustc: tidy

11 years agoFix fallout in rusti & rustpkg.
Luqman Aden [Tue, 19 Feb 2013 08:01:03 +0000 (00:01 -0800)]
Fix fallout in rusti & rustpkg.

11 years agolibrustc: Get rid of structural records save for front/test.rs.
Luqman Aden [Tue, 19 Feb 2013 07:40:42 +0000 (02:40 -0500)]
librustc: Get rid of structural records save for front/test.rs.

11 years agoauto merge of #5049 : bstrie/rust/vim, r=catamorphism
bors [Thu, 21 Feb 2013 02:14:34 +0000 (18:14 -0800)]
auto merge of #5049 : bstrie/rust/vim, r=catamorphism

1. Highlight new lifetime syntax
2. Visually distinguish `unsafe` keyword
3. Add a new file that highlights column 78, to warn when lines get too long

11 years agorustc: Use position method in check::method
Tim Chevalier [Thu, 21 Feb 2013 01:46:01 +0000 (17:46 -0800)]
rustc: Use position method in check::method

...because it appears to work now. Removes a FIXME.

11 years agoauto merge of #5043 : brson/rust/swap, r=brson
bors [Thu, 21 Feb 2013 00:58:34 +0000 (16:58 -0800)]
auto merge of #5043 : brson/rust/swap, r=brson

r?

11 years agoDon't perform swap when src == dst. #5041
Brian Anderson [Wed, 20 Feb 2013 00:12:12 +0000 (16:12 -0800)]
Don't perform swap when src == dst. #5041

11 years agoauto merge of #5046 : sanxiyn/rust/struct-match, r=catamorphism
bors [Thu, 21 Feb 2013 00:08:36 +0000 (16:08 -0800)]
auto merge of #5046 : sanxiyn/rust/struct-match, r=catamorphism

Previously check always succeeded because struct type was derived from the matched expression, not the matched pattern.

Fix #4849.

11 years agoetc: Suppress the enum variant instruction scheduling Valgrind issues. rs=#rust
Patrick Walton [Thu, 21 Feb 2013 00:03:47 +0000 (16:03 -0800)]
etc: Suppress the enum variant instruction scheduling Valgrind issues. rs=#rust

11 years agoChanged a test to use intrinsics.rs and changed a few lines that were too long, had...
Matthijs 'Thiez' Hofstra [Wed, 20 Feb 2013 19:41:24 +0000 (20:41 +0100)]
Changed a test to use intrinsics.rs and changed a few lines that were too long, had bad whitespace, etc.

11 years agoCreated libcore/private/intrinsics.rs, which aims to contain every
Matthijs 'Thiez' Hofstra [Wed, 20 Feb 2013 16:57:15 +0000 (17:57 +0100)]
Created libcore/private/intrinsics.rs, which aims to contain every
rustc intrinsic. Several files in libcore have been changed to use
these intrinsics.
As of yet, none of the intrinsics are documented.

11 years agovim improvements
Ben Striegel [Wed, 20 Feb 2013 04:07:09 +0000 (23:07 -0500)]
vim improvements

1. Highlight new lifetime syntax
2. Visually distinguish `unsafe` keyword
3. Add a new file that highlights column 78, to warn when lines get too long

11 years agoauto merge of #5044 : thestinger/rust/range, r=pcwalton
bors [Wed, 20 Feb 2013 03:04:28 +0000 (19:04 -0800)]
auto merge of #5044 : thestinger/rust/range, r=pcwalton

Closes #4924

There are some more `Load` calls that could use this, so it's not completely done yet.

11 years agoreplace explicit loops with foldr
Daniel Micay [Wed, 20 Feb 2013 02:18:19 +0000 (21:18 -0500)]
replace explicit loops with foldr

11 years agoauto merge of #5039 : alexcrichton/rust/issue-4875, r=catamorphism
bors [Wed, 20 Feb 2013 01:38:29 +0000 (17:38 -0800)]
auto merge of #5039 : alexcrichton/rust/issue-4875, r=catamorphism

It looks like the type for the whole pattern wasn't being written back, so when privacy tried to look it up everything died.

11 years agoadd range assert when loading bools
Daniel Micay [Wed, 20 Feb 2013 00:15:03 +0000 (19:15 -0500)]
add range assert when loading bools

11 years agoauto merge of #5040 : Kimundi/rust/incoming, r=graydon
bors [Tue, 19 Feb 2013 23:50:28 +0000 (15:50 -0800)]
auto merge of #5040 : Kimundi/rust/incoming, r=graydon

11 years agouse range assert when loading enum discriminant
Daniel Micay [Tue, 19 Feb 2013 19:55:40 +0000 (14:55 -0500)]
use range assert when loading enum discriminant

Closes #4924

11 years agoauto merge of #5006 : tedhorst/rust/linear_mand, r=brson
bors [Tue, 19 Feb 2013 22:58:30 +0000 (14:58 -0800)]
auto merge of #5006 : tedhorst/rust/linear_mand, r=brson

11 years agoFix for issue 4875
Alex Crichton [Tue, 19 Feb 2013 19:29:50 +0000 (14:29 -0500)]
Fix for issue 4875

11 years agoauto merge of #5000 : jld/rust/test-stdin-thing, r=graydon
bors [Tue, 19 Feb 2013 22:12:37 +0000 (14:12 -0800)]
auto merge of #5000 : jld/rust/test-stdin-thing, r=graydon

As far as I can tell, the only reason run-pass/type-use-i1-versus-i8
is trying to do a read is because that code was left over from the
original program the issue was found in.  When that test is run as
part of check-fast, and apparently only in that case, the test blocks
indefinitely, which is bad.

11 years agoRewrited section about rust tool
Marvin Löbel [Tue, 19 Feb 2013 21:19:19 +0000 (22:19 +0100)]
Rewrited section about rust tool

11 years agoauto merge of #4999 : erickt/rust/incoming, r=brson
bors [Tue, 19 Feb 2013 20:24:30 +0000 (12:24 -0800)]
auto merge of #4999 : erickt/rust/incoming, r=brson

This patch series is doing a couple things with the ultimate goal of removing `#[allow(vecs_implicitly_copyable)]`, although I'm not quite there yet. The main change is passing around `@~str`s in most places, and using `ref`s in others. As far as I could tell, there are no performance changes with these patches, and all the tests pass on my mac.

11 years agoGive the rust tool an own section in the tutorial.
Marvin Löbel [Tue, 19 Feb 2013 19:57:23 +0000 (20:57 +0100)]
Give the rust tool an own section in the tutorial.

11 years agoauto merge of #5032 : lifthrasiir/rust/issue-4935, r=catamorphism
bors [Tue, 19 Feb 2013 18:34:31 +0000 (10:34 -0800)]
auto merge of #5032 : lifthrasiir/rust/issue-4935, r=catamorphism

Actually a trivial fix. Fixes the issue #4935.

11 years agolibrustc: change driver::session::Session::str_of to return @~str
Erick Tryzelaar [Mon, 11 Feb 2013 00:33:16 +0000 (16:33 -0800)]
librustc: change driver::session::Session::str_of to return @~str

11 years agolibrustc: minor cleanup
Erick Tryzelaar [Sat, 16 Feb 2013 18:36:09 +0000 (10:36 -0800)]
librustc: minor cleanup

11 years agolibrustc: change check_item_non_camel_case_types to not copy
Erick Tryzelaar [Sat, 16 Feb 2013 18:35:05 +0000 (10:35 -0800)]
librustc: change check_item_non_camel_case_types to not copy

11 years agolibrustc: convert creader and cstore to use @~strs
Erick Tryzelaar [Sat, 16 Feb 2013 18:16:32 +0000 (10:16 -0800)]
librustc: convert creader and cstore to use @~strs

11 years agolibrustc: minor cleanup
Erick Tryzelaar [Sat, 16 Feb 2013 17:48:28 +0000 (09:48 -0800)]
librustc: minor cleanup

11 years agolibrustc: convert lint_dict to take @~strs as keys
Erick Tryzelaar [Fri, 15 Feb 2013 14:48:17 +0000 (06:48 -0800)]
librustc: convert lint_dict to take @~strs as keys

11 years agolibrustc: convert LangItemsCollector::item_refs to take @~str as a key
Erick Tryzelaar [Tue, 19 Feb 2013 04:55:14 +0000 (20:55 -0800)]
librustc: convert LangItemsCollector::item_refs to take @~str as a key

11 years agoconvert SyntaxExtensions's key to a @~str
Erick Tryzelaar [Fri, 15 Feb 2013 05:17:34 +0000 (21:17 -0800)]
convert SyntaxExtensions's key to a @~str

11 years agoconvert ast::meta_items to take @~strs
Erick Tryzelaar [Thu, 14 Feb 2013 15:34:21 +0000 (07:34 -0800)]
convert ast::meta_items to take @~strs

11 years agoconvert syntax::attr to use @~strs
Erick Tryzelaar [Fri, 15 Feb 2013 04:19:27 +0000 (20:19 -0800)]
convert syntax::attr to use @~strs

11 years agoAlias HashMap<~str, SyntaxExtension> to SyntaxExtensions
Erick Tryzelaar [Thu, 14 Feb 2013 04:08:35 +0000 (20:08 -0800)]
Alias HashMap<~str, SyntaxExtension> to SyntaxExtensions

11 years agolibsyntax and librustc: minor cleanup
Erick Tryzelaar [Mon, 11 Feb 2013 16:36:42 +0000 (08:36 -0800)]
libsyntax and librustc: minor cleanup

11 years agolibsyntax: change attr:get_attr_name to take a ref
Erick Tryzelaar [Mon, 11 Feb 2013 16:34:00 +0000 (08:34 -0800)]
libsyntax: change attr:get_attr_name to take a ref

11 years agolibsyntax: make enum variants take refs
Erick Tryzelaar [Sun, 17 Feb 2013 18:59:09 +0000 (10:59 -0800)]
libsyntax: make enum variants take refs

11 years agosyntax: fix the indentation of a function
Erick Tryzelaar [Mon, 11 Feb 2013 16:02:51 +0000 (08:02 -0800)]
syntax: fix the indentation of a function

11 years agoChange functions from taking ~str to taking &str
Erick Tryzelaar [Mon, 11 Feb 2013 16:28:41 +0000 (08:28 -0800)]
Change functions from taking ~str to taking &str

11 years agolibsyntax: convert interner into a modern struct
Erick Tryzelaar [Sat, 9 Feb 2013 21:22:21 +0000 (13:22 -0800)]
libsyntax: convert interner into a modern struct

11 years agoCheck type when struct is matched against enum-like pattern
Seo Sanghyeon [Tue, 19 Feb 2013 16:43:15 +0000 (01:43 +0900)]
Check type when struct is matched against enum-like pattern

Previously check always succeeded because struct type was derived from
the matched expression, not the matched pattern.

11 years agoauto merge of #5002 : catamorphism/rust/one-tuples, r=graydon
bors [Tue, 19 Feb 2013 17:14:33 +0000 (09:14 -0800)]
auto merge of #5002 : catamorphism/rust/one-tuples, r=graydon

r? @graydon - This is for greater uniformity (for example, macros that generate
tuples). rustc already supported 1-tuple patterns, but there was no
way to construct a 1-tuple term.

@graydon , as far as your comment on #4898 - it did turn out to be solvable inside the macro (since @luqmana already fixed it using structs instead), but I still think it's a good idea to allow 1-tuples, for uniformity. I don't think anyone is likely to trip over it, and I'm not too worried that it changes the amount of ambiguity.

11 years agoMention rust tool in the tutorial
Marvin Löbel [Tue, 19 Feb 2013 17:10:31 +0000 (18:10 +0100)]
Mention rust tool in the tutorial

11 years agotest: fix seeded_rng uses
Graydon Hoare [Tue, 19 Feb 2013 16:56:37 +0000 (08:56 -0800)]
test: fix seeded_rng uses

11 years agofix ICE after incorrect number of args in calls
Kang Seonghoon [Tue, 19 Feb 2013 15:52:20 +0000 (00:52 +0900)]
fix ICE after incorrect number of args in calls

11 years agoupdate copyright dates
Ted Horst [Tue, 19 Feb 2013 15:53:03 +0000 (09:53 -0600)]
update copyright dates

11 years agomove shootout-mandelbrot to LinearMap, add depth argument
Ted Horst [Mon, 18 Feb 2013 05:48:06 +0000 (23:48 -0600)]
move shootout-mandelbrot to LinearMap, add depth argument

11 years agostd: update rand-using tests, r=burningtree
Graydon Hoare [Tue, 19 Feb 2013 15:38:18 +0000 (07:38 -0800)]
std: update rand-using tests, r=burningtree

11 years agort: remove export of symbol removed in last commit, r=burningtree
Graydon Hoare [Tue, 19 Feb 2013 15:18:46 +0000 (07:18 -0800)]
rt: remove export of symbol removed in last commit, r=burningtree

11 years agort: fix memory-unsafe random seed logic, r=valgrindclean
Graydon Hoare [Tue, 19 Feb 2013 15:06:20 +0000 (07:06 -0800)]
rt: fix memory-unsafe random seed logic, r=valgrindclean

11 years agoauto merge of #5014 : Kimundi/rust/incoming, r=graydon
bors [Tue, 19 Feb 2013 14:18:42 +0000 (06:18 -0800)]
auto merge of #5014 : Kimundi/rust/incoming, r=graydon

This implements a rust tool similar to go's go tool. It acts as a central hub for the tools rustc, rustdoc, rustpkg, rusti, and also provides shortcuts for directly compiling and running a source file either as a normal or a test executable. Default usage message:

```
The rust tool is a convenience for managing rust source code.
It acts as a shortcut for programs of the rust tool chain.

Usage: rust <command> [arguments]

The commands are:

    build   compile rust source files
    run     build a executable, and run it
    test    build a test executable, and run it
    doc     generate documentation from doc comments
    pkg     download, build, install rust packages
    sketch  run a rust interpreter
    help    show detailed usage of a command

Use "rust help <command>" for more information about a command.
```

11 years agoauto merge of #5029 : mcpherrinm/rust/master, r=catamorphism
bors [Tue, 19 Feb 2013 08:08:31 +0000 (00:08 -0800)]
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)

11 years agoauto merge of #5028 : catamorphism/rust/bsd-breakage, r=catamorphism
bors [Tue, 19 Feb 2013 07:16:34 +0000 (23:16 -0800)]
auto merge of #5028 : catamorphism/rust/bsd-breakage, r=catamorphism

11 years agoauto merge of #5017 : catamorphism/rust/less-copy, r=catamorphism
bors [Tue, 19 Feb 2013 06:06:33 +0000 (22:06 -0800)]
auto merge of #5017 : catamorphism/rust/less-copy, r=catamorphism

11 years agoauto merge of #5015 : mitsuhiko/rust/doc-fix-stringify, r=catamorphism
bors [Tue, 19 Feb 2013 05:04:33 +0000 (21:04 -0800)]
auto merge of #5015 : mitsuhiko/rust/doc-fix-stringify, r=catamorphism

Fixed a typo in the documentation that points to the wrong macro.

11 years agoMissing newline causing title to not be a title
Matthew McPherrin [Tue, 19 Feb 2013 02:45:39 +0000 (21:45 -0500)]
Missing newline causing title to not be a title

11 years agoauto merge of #5010 : youknowone/rust/match_const_typecheck, r=catamorphism
bors [Tue, 19 Feb 2013 04:18:34 +0000 (20:18 -0800)]
auto merge of #5010 : youknowone/rust/match_const_typecheck, r=catamorphism

Fix of issue #4968

11 years agocore: Fix BSD breakage, I hope
Tim Chevalier [Tue, 19 Feb 2013 04:12:17 +0000 (20:12 -0800)]
core: Fix BSD breakage, I hope

11 years agoauto merge of #5005 : alexcrichton/rust/bitv++, r=catamorphism
bors [Tue, 19 Feb 2013 02:40:33 +0000 (18:40 -0800)]
auto merge of #5005 : alexcrichton/rust/bitv++, r=catamorphism

These commits take the old bitv implementation and modernize it with an explicit self, some minor touchups, and using what I think is some more recent patterns (like `::new` instead of `Type()`).

Additionally, this adds an implementation of `container::Set` on top of a bit vector to have as a set of `uint`s. I initially tried to parameterize the type for the set to be `T: NumCast` but I was hitting build problems in stage0 which I think means that it's not in a snapshot yet, so it's just hardcoded as a set of `uint`s now. In the future perhaps it could be parameterized. I'm not sure if it would really add anything, though, so maybe it's nicer to be hardcoded anyway.

I also added some extra methods to do normal bit vector operations on the set in-place, but these aren't a part of the `Set` trait right now. I haven't benchmarked any of these operations just yet, but I imagine that there's quite a lot of room for optimization here and there.

11 years agoauto merge of #5004 : luqmana/rust/rename-use-import, r=catamorphism
bors [Tue, 19 Feb 2013 01:48:34 +0000 (17:48 -0800)]
auto merge of #5004 : luqmana/rust/rename-use-import, r=catamorphism

Seems like my previous pull request got lost along the way somehow. So here it is updated.

11 years agorustc: For one-tuples, make parsing and printing the type work
Tim Chevalier [Tue, 19 Feb 2013 01:45:56 +0000 (17:45 -0800)]
rustc: For one-tuples, make parsing and printing the type work

and add a test to reflect-visit-data

11 years agoAttempt to solve make check test ambiguity betwen crate 'rust' and extratected doc...
Marvin Löbel [Tue, 19 Feb 2013 01:08:03 +0000 (02:08 +0100)]
Attempt to solve make check test ambiguity betwen crate 'rust' and extratected doc 'rust'

11 years agoauto merge of #5001 : jld/rust/test-pub-fn-main, r=catamorphism
bors [Tue, 19 Feb 2013 00:40:33 +0000 (16:40 -0800)]
auto merge of #5001 : jld/rust/test-pub-fn-main, r=catamorphism

11 years agorustc: Less copy in trans, rs=removing copies
Tim Chevalier [Mon, 18 Feb 2013 20:36:30 +0000 (12:36 -0800)]
rustc: Less copy in trans, rs=removing copies

11 years agoauto merge of #4998 : thestinger/rust/vec, r=catamorphism
bors [Mon, 18 Feb 2013 23:48:34 +0000 (15:48 -0800)]
auto merge of #4998 : thestinger/rust/vec, r=catamorphism

11 years agoauto merge of #4996 : luqmana/rust/no-rec-pipes, r=catamorphism
bors [Mon, 18 Feb 2013 22:42:36 +0000 (14:42 -0800)]
auto merge of #4996 : luqmana/rust/no-rec-pipes, r=catamorphism

Removes the last use of structural records in the pipes extension and with that, libcore has no more structural records.
Also, explicit-self-ification.

11 years agoFixed a typo in the documentation that points to the wrong macro (ident_to_str -...
Armin Ronacher [Mon, 18 Feb 2013 22:40:01 +0000 (22:40 +0000)]
Fixed a typo in the documentation that points to the wrong macro (ident_to_str -> stringify)

11 years agoAdded rust convenience tool similar to go's go tool
Marvin Löbel [Mon, 18 Feb 2013 19:18:34 +0000 (20:18 +0100)]
Added rust convenience tool similar to go's go tool

11 years agoauto merge of #4979 : z0w0/rust/issue-1301, r=catamorphism
bors [Mon, 18 Feb 2013 21:50:36 +0000 (13:50 -0800)]
auto merge of #4979 : z0w0/rust/issue-1301, r=catamorphism

11 years agoauto merge of #4890 : jld/rust/enum-newtype-alignment, r=catamorphism
bors [Mon, 18 Feb 2013 18:02:48 +0000 (10:02 -0800)]
auto merge of #4890 : jld/rust/enum-newtype-alignment, r=catamorphism

11 years agoadd missing typecheck for const pattern match arm
Jeong YunWon [Mon, 18 Feb 2013 15:56:02 +0000 (00:56 +0900)]
add missing typecheck for const pattern match arm

Issue #4968

11 years agoAdd benchmarks to measure differences in bit vectors
Alex Crichton [Mon, 18 Feb 2013 06:24:14 +0000 (01:24 -0500)]
Add benchmarks to measure differences in bit vectors

11 years agoImplement Set container on top of a bit vector
Alex Crichton [Mon, 18 Feb 2013 01:01:47 +0000 (20:01 -0500)]
Implement Set container on top of a bit vector

11 years agoFavor local closures instead of global functions
Alex Crichton [Sun, 17 Feb 2013 22:58:55 +0000 (17:58 -0500)]
Favor local closures instead of global functions

11 years agoRemove the 'uint_bits' constant in bitv
Alex Crichton [Sun, 17 Feb 2013 22:56:07 +0000 (17:56 -0500)]
Remove the 'uint_bits' constant in bitv

11 years agoChange SmallBitv to use uint instead of u32
Alex Crichton [Sun, 17 Feb 2013 22:54:18 +0000 (17:54 -0500)]
Change SmallBitv to use uint instead of u32

11 years agoModernize bitv mut fields and explicit self
Alex Crichton [Sun, 17 Feb 2013 22:07:51 +0000 (17:07 -0500)]
Modernize bitv mut fields and explicit self

11 years agoLong lines.
Luqman Aden [Mon, 18 Feb 2013 02:53:29 +0000 (21:53 -0500)]
Long lines.

11 years agolibsyntax: Update view_item_use/import to reflect actual usage
Luqman Aden [Mon, 18 Feb 2013 02:45:00 +0000 (21:45 -0500)]
libsyntax: Update view_item_use/import to reflect actual usage

11 years agosyntax: Allow 1-tuple expressions
Tim Chevalier [Sun, 17 Feb 2013 23:41:47 +0000 (15:41 -0800)]
syntax: Allow 1-tuple expressions

This is for greater uniformity (for example, macros that generate
tuples). rustc already supported 1-tuple patterns, but there was no
way to construct a 1-tuple term.

11 years ago`pub fn main` for run-pass tests that didn't have it
Jed Davis [Sun, 17 Feb 2013 22:36:43 +0000 (14:36 -0800)]
`pub fn main` for run-pass tests that didn't have it

11 years agoTests shouldn't read from stdin.
Jed Davis [Sun, 17 Feb 2013 22:06:46 +0000 (14:06 -0800)]
Tests shouldn't read from stdin.

As far as I can tell, the only reason run-pass/type-use-i1-versus-i8
is trying to do a read is because that code was left over from the
original program the issue was found in.  When that test is run as
part of check-fast, and apparently only in that case, the test blocks
indefinitely, which is bad.