Patrick Walton
|
77ff12c435
|
rustboot: Don't use walk to traverse statements in type.ml; fixes redundant checking, improves diagnostics. Also report untyped slots.
|
2010-11-18 14:19:06 -08:00 |
|
Graydon Hoare
|
a404e54261
|
Teach rustc about const tag value, begin work on trans_copy_ty, make uint's to_str routine less clever and thereby resist overflow.
|
2010-11-09 17:50:31 -08:00 |
|
Patrick Walton
|
3e482d5f69
|
Implement a map2() function in std._vec
|
2010-11-09 15:38:42 -08:00 |
|
Graydon Hoare
|
89946609f2
|
Support a special const-value refcount, use it for const strings.
|
2010-11-09 14:15:07 -08:00 |
|
Graydon Hoare
|
3e9be14757
|
Add a check for binding an alias. Good thing, as we had two instances in our library.
|
2010-11-08 15:45:30 -08:00 |
|
Patrick Walton
|
adb1754e4d
|
Move the option type to its own module
|
2010-11-05 11:18:40 -07:00 |
|
Patrick Walton
|
2fcf81cc4b
|
Revert "Move the option type to its own module"
|
2010-11-05 10:41:23 -07:00 |
|
Patrick Walton
|
1d214b4df3
|
Move the option type to its own module
|
2010-11-05 10:23:22 -07:00 |
|
Graydon Hoare
|
7abf6eb7c6
|
Shift obj, type, param decls to have strata rather than effects.
|
2010-11-02 17:20:57 -07:00 |
|
Graydon Hoare
|
7db115834f
|
Split out stratum-checking pass, implement more-strict (overly aggressive) impure-effect checking.
|
2010-11-02 15:24:46 -07:00 |
|
Graydon Hoare
|
da13c508d8
|
First pass on splitting stratum and opacity off of effects. WIP.
|
2010-11-02 11:11:58 -07:00 |
|
Patrick Walton
|
67bcc70754
|
rustboot: Emit an error instead of asserting in trans when a T is passed by value
|
2010-10-28 15:07:05 -07:00 |
|
Patrick Walton
|
b914e0e74c
|
Revert "rustboot: Emit an error instead of asserting in trans when a T is passed by value" due to test failures
This reverts commit ee901858a2 .
|
2010-10-28 15:04:48 -07:00 |
|
Patrick Walton
|
ee901858a2
|
rustboot: Emit an error instead of asserting in trans when a T is passed by value
|
2010-10-28 15:02:00 -07:00 |
|
Patrick Walton
|
05a3c5c0f3
|
rustc: Add an "_" prefix to assembler-generated symbols on Mac
|
2010-10-22 16:16:02 -07:00 |
|
Graydon Hoare
|
dd0d255737
|
Add some filename helpers to os.
|
2010-10-22 11:46:33 -07:00 |
|
Graydon Hoare
|
05c9d885dd
|
Change vec slice to use uint, add push/pop/shift/unshift.
|
2010-10-22 11:46:04 -07:00 |
|
Dave Herman
|
6421c13157
|
eliminated bitv.test, which now lives in test/run-pass
|
2010-10-21 13:34:16 -07:00 |
|
Dave Herman
|
dbe27199b8
|
line length police; moved comp.util.bits to std.bitv
|
2010-10-21 11:39:53 -07:00 |
|
Graydon Hoare
|
23a00fd092
|
Disable use of parametric tail call in map.rs, they don't presently work.
|
2010-10-18 16:04:47 -07:00 |
|
Graydon Hoare
|
68321b0de8
|
Make list.find return an option of different type than the list element.
|
2010-10-18 16:02:59 -07:00 |
|
Graydon Hoare
|
783be711f5
|
Flesh out the std.list module a touch.
|
2010-10-18 14:35:44 -07:00 |
|
Graydon Hoare
|
57c7e94c8f
|
Encode and decode tag types in dwarf properly. Add list module to std. Shift rustc to use std.util.option. Fix various dependent bugs. Closes #73.
|
2010-10-15 22:09:09 -07:00 |
|
Graydon Hoare
|
b970563fe3
|
Patchwork of attempted fixes to effect system and gc system; eventually give up and disable it entirely in the runtime. Will need extensive reworking.
|
2010-09-29 17:22:13 -07:00 |
|
Graydon Hoare
|
4d17283371
|
Add 'items' iter to hashmap.
|
2010-09-22 17:04:08 -07:00 |
|
Graydon Hoare
|
2880ecd73f
|
Reformat standard library; no code changes.
|
2010-09-22 15:44:13 -07:00 |
|
Graydon Hoare
|
e0f682e5fb
|
Add some basic string functions: index, rindes, find, substr, split, concat, connect.
|
2010-09-22 15:27:40 -07:00 |
|
Graydon Hoare
|
b549721a2e
|
Tighten pattern parsing on 0-ary constructors.
|
2010-09-21 16:18:47 -07:00 |
|
Graydon Hoare
|
c5f4789d5b
|
Bind pattern slots with ?, drop parens from 0-ary tag constructors, translate 0-ary constructors as constants. Rustc loses ~300kb.
|
2010-09-20 23:56:43 -07:00 |
|
Graydon Hoare
|
a9e2327a18
|
Switch tags to purely nominal, removing TY_iso and TY_idx. Seems to mostly work, possibly a little bumpy. Changes a lot.
|
2010-09-09 15:59:29 -07:00 |
|
Roy Frostig
|
cf62b54028
|
Add a little pointer-cast helper to dbg.
|
2010-09-06 23:24:01 -07:00 |
|
Roy Frostig
|
974092c526
|
Test multi-ref'ed vec growth more seriously than before.
|
2010-09-03 16:25:56 -07:00 |
|
Roy Frostig
|
66b5b9567c
|
Test the hashmap more, exercising hash collision, element removal, and a forced rehashing that actually causes elements to change buckets. In the process, find a bug in hashmap's remove() and fix it.
|
2010-08-26 19:44:38 -07:00 |
|
Graydon Hoare
|
7cfa7bdd23
|
Make vreg constrs per-quad, regfence on nontrivial constrs, back out workaround to _uint, add regression test. Closes #152.
|
2010-08-26 16:27:47 -07:00 |
|
Roy Frostig
|
c3c5e6c773
|
Workaround issue #152 in _uint.next_power_of_two
|
2010-08-26 11:57:48 -07:00 |
|
Roy Frostig
|
c40fed5804
|
Actually switch to using the bigger hashmap once a it finishes growing and rehashing.
|
2010-08-25 17:42:36 -07:00 |
|
Graydon Hoare
|
c2b6c27d65
|
Fix edge case in uint->string conversion.
|
2010-08-25 13:54:27 -07:00 |
|
Roy Frostig
|
d9fe885ba5
|
Comment on env var required for std.dbg to do any logging.
|
2010-08-24 19:55:45 -07:00 |
|
Roy Frostig
|
7ccdb88374
|
Add support in dbg.debug_obj for printing the obj body.
|
2010-08-24 19:49:39 -07:00 |
|
Roy Frostig
|
d9e3fb2c5d
|
Add std.dbg module for inspecting rust values in memory.
|
2010-08-24 18:37:42 -07:00 |
|
Graydon Hoare
|
e846643d23
|
Fix mod-bug in std.map, work around bug in closure typaram capture, enable insert-tests in lib-map.rs.
|
2010-08-24 17:23:09 -07:00 |
|
Graydon Hoare
|
47501f1659
|
Make _str.eq suitable for map.hashmap; add _str.hash that does simple djb-hash.
|
2010-08-24 09:59:02 -07:00 |
|
Graydon Hoare
|
a2bd79a6ac
|
Redo _uint.to_str to work with chars and only one tmp str, built left-to-right.
|
2010-08-20 15:37:20 -07:00 |
|
Roy Frostig
|
2da4fecacd
|
Test the buffered reader and writer in _io.
|
2010-08-20 12:57:38 -07:00 |
|
Graydon Hoare
|
1db0cb208d
|
Add ungetc and re-indent _io.rs.
|
2010-08-20 12:12:11 -07:00 |
|
Graydon Hoare
|
9fc4fc6692
|
Add _uint module to std, move some code around.
|
2010-08-20 11:42:44 -07:00 |
|
Roy Frostig
|
4a7aa75b5d
|
Make _io.buf_reader read more than 0 bytes at a time.
|
2010-08-19 17:37:22 -07:00 |
|
Graydon Hoare
|
f0d4e6c511
|
Add stdio_reader to io, just use FILE* values for now. We have things to do.
|
2010-08-18 15:41:24 -07:00 |
|
Roy Frostig
|
6bce296d9f
|
Address FIXME in _vec waiting on closed issue #108.
|
2010-08-12 13:18:10 -07:00 |
|
Roy Frostig
|
445d3fe39c
|
Add vec debugging utility to _vec module.
|
2010-08-12 13:11:49 -07:00 |
|