Erick Tryzelaar
065fa9a462
Make cargo a little more ideomatic
2012-06-13 09:34:43 -07:00
Erick Tryzelaar
11a56c3e91
Add a couple more to_json impls.
2012-06-13 08:30:54 -07:00
Patrick Walton
ab9c900131
Merge pull request #2576 from mozilla/incoming
...
Incoming
2012-06-12 21:39:01 -07:00
Tim Chevalier
11e30b2a73
Forgot to xfail-fast this
2012-06-12 19:05:34 -07:00
Erick Tryzelaar
b361f6c288
Fix json no-implicit-copy warnings
2012-06-12 18:10:19 -07:00
Erick Tryzelaar
2cc0a0e19c
std: Remove copy from all the hashmap key type params
2012-06-12 18:10:19 -07:00
Erick Tryzelaar
01118be818
whitespace cleanup
2012-06-12 18:10:19 -07:00
Erick Tryzelaar
48e877a435
Rewrite int/uint helper functions to use refs
...
This lets us pass them to generic functions.
2012-06-12 18:10:19 -07:00
Erick Tryzelaar
4335ce47f3
Convert most str and vec fns to slices
2012-06-12 18:10:18 -07:00
Erick Tryzelaar
f574cb4ac8
Clean up cargo imports.
2012-06-12 18:10:18 -07:00
Erick Tryzelaar
a816176eb5
std: Add a to_str impl for json::error.
2012-06-12 18:10:18 -07:00
Erick Tryzelaar
ac4ac328ee
cargo: remove leading underscores
2012-06-12 18:10:18 -07:00
Tim Chevalier
eadd74b5b6
Test case for previous commit
...
(basically a stripped-down version of comm, and a "driver" that
constructs a new port)
2012-06-12 17:37:04 -07:00
Tim Chevalier
aa9d2d88d3
Handle class destructors correctly in metadata
...
This allows destructors to be inlined, which is necessary since
classes can have both ty params and destructors.
2012-06-12 17:37:04 -07:00
Tim Chevalier
e9fc19c3c2
Make git ignore the .DS_Store file on Macs (wherever it is)
2012-06-12 17:37:04 -07:00
Michael Sullivan
35dd717352
Simplify a bunch of trans functions to not need the rust type. Remove some PointerCasts.
2012-06-12 17:01:13 -07:00
Michael Sullivan
ccf4e8cf9a
Make vectors contain the right type descriptor. Closes #2536 .
2012-06-12 17:01:13 -07:00
Michael Sullivan
4f61dcb026
Introduce an unboxed_vec type
2012-06-12 17:01:13 -07:00
Michael Sullivan
e67b5b25a6
Introduce a SHAPE_UNBOXED_VEC shape in order to seperate out vector logic.
2012-06-12 17:01:13 -07:00
Tim Chevalier
ebdf0c20cd
Correct typo in comment
2012-06-12 14:56:26 -07:00
Tim Chevalier
72360970fc
Change trans::common::block to be a class
...
And replace trans::common::block_parent with option<block>. To handle
the recursive self-reference in the block_ class, I had to add a
newtype-like enum "block" which is equivalent to @block_ -- which due
to an interaction with borrowck, resulted in having to change a few
functions in trans::base to take their block argument in ++ mode,
irritatingly enough (but not that irritatingly, since we're supposed to
get rid of modes).
2012-06-12 14:55:44 -07:00
Niko Matsakis
d1ec1d4abb
Treat enums with one variant specially in borrowck: #2573
2012-06-12 14:30:14 -07:00
Lindsey Kuper
1655c1a825
Add a test for explicit i
suffix on integer literals
...
This doesn't seem to show up anywhere else in the test suite, even
though it's supposed to be legal.
2012-06-12 14:09:11 -07:00
Lindsey Kuper
8a730a255d
Allow trailing comma in vectors. Closes #2482 .
2012-06-12 13:03:30 -07:00
Lindsey Kuper
bffb7db8ae
syntax: clarify that trailing separators are never required
2012-06-12 11:18:31 -07:00
Michael Sullivan
d04ed0c493
Reorder things in hash_type_structure to make more sense.
2012-06-12 10:58:00 -07:00
Brian Anderson
07bba397c5
core: More stack walking
2012-06-11 22:44:55 -07:00
Brian Anderson
41df9cbb44
rt: Turn on frame pointers for stack walking
2012-06-11 22:44:16 -07:00
Graydon Hoare
9f3b12b6c6
Change llsize_real to use LLVMSizeOfTypeInBits. Add comments.
2012-06-11 18:34:24 -07:00
Lindsey Kuper
b75199634a
syntax: minor cleanups; making things more idiomatic
2012-06-11 16:49:35 -07:00
Lindsey Kuper
8467279fac
Add a new AST node for unsuffixed integer types.
2012-06-11 16:34:56 -07:00
Michael Sullivan
baf58a764b
Stop emitting type parameters in shape.rs.
2012-06-11 12:52:49 -07:00
Michael Sullivan
665ba3531d
Clean up tydesc declaration to make it clear what is unused.
2012-06-11 12:29:04 -07:00
Michael Sullivan
b22620624c
Get rid of a bunch of dead shape code. Closes #2552 .
2012-06-11 12:19:40 -07:00
Michael Sullivan
70b79d1e32
Add emacs settings to some runtime files where they were missing.
2012-06-11 12:19:40 -07:00
Tim Chevalier
87d57e4919
Don't treat all class fields as mutable, except in trans
...
Closes #2550
2012-06-11 10:16:17 -07:00
Brian Anderson
75adeaadb8
cargo: Do builds under ./.cargo/work in local mode
...
Doing builds outside of the cwd is breaking rustc's logic for
locating crates in ./.cargo/lib.
Ideally, cargo would not be changing directories at all.
2012-06-10 01:50:01 -07:00
Brian Anderson
88906cd097
cargo: Update for recent language changes
2012-06-09 21:01:11 -07:00
Brian Anderson
67eb4e978a
Merge remote-tracking branch 'z0w0/cargo-deps'
...
Conflicts:
src/cargo/cargo.rs
2012-06-09 19:51:29 -07:00
Brian Anderson
67885ac089
Revert "Merge remote-tracking branch 'z0w0/cargo-deps'"
...
This reverts commit 106fe8b5e8
, reversing
changes made to 748bd12dc7
.
2012-06-09 19:20:22 -07:00
Brian Anderson
6ea4047e50
Revert "cargo: Add a FIXME about immutability"
...
This reverts commit 978ff7972c
.
2012-06-09 19:19:10 -07:00
Brian Anderson
978ff7972c
cargo: Add a FIXME about immutability
2012-06-09 19:04:31 -07:00
Brian Anderson
106fe8b5e8
Merge remote-tracking branch 'z0w0/cargo-deps'
...
Conflicts:
src/cargo/cargo.rs
2012-06-09 17:26:02 -07:00
Brian Anderson
748bd12dc7
bench: xfail-pretty shootout-k-nucleotide
2012-06-09 16:12:28 -07:00
Brian Anderson
03e186cd04
bench: Modify shootout-k-nucleotide to not read from the filesystem
2012-06-09 13:57:18 -07:00
Brian Anderson
a884044066
bench: Increase the difficulty of fasta
2012-06-09 13:25:05 -07:00
Kevin Cantu
c2a9cc9394
Add the Alioth k-nucleotide benchmark
...
This is not particularly well performing yet (60x slower than C++ or
worse). I think the slicing and the copies made for the hashmap
are mostly responsible, but YMMV.
By default shootout-fasta writes to stdout and shootout-k-nucleotide
reads from stdin. To use an intermediate file with a fixed name,
set RUST_BENCH...
2012-06-09 12:58:12 -07:00
Brian Anderson
c1859d4cd0
Fix long lines
2012-06-09 03:42:30 -07:00
Brian Anderson
794f664dd9
syntax: Don't copy source string
2012-06-09 01:01:14 -07:00
Brian Anderson
21087bf1a5
syntax: Intern @strs instead of strs
2012-06-09 00:53:34 -07:00