Niko Matsakis
b04b415e0d
encode the borrowing table, add a simple cross-crate borrowing test
2012-04-23 16:41:11 -07:00
Tim Chevalier
7d05bea7b9
Fix bug with * patterns in trans_alt
...
enter_opt was handling the (*) case wrong and causing a bounds check
failure. Fixed it (the test case is one of the extracted ones from
the reference manual)
2012-04-23 15:50:51 -07:00
Graydon Hoare
ea3362d12d
Register snapshots.
2012-04-23 12:13:56 -07:00
Niko Matsakis
71128e75b0
moderate comment, remove some dead regions code
2012-04-23 08:02:59 -07:00
Niko Matsakis
7113a2c30b
remove dead code
2012-04-23 08:02:59 -07:00
Niko Matsakis
4eb71c07c6
remove outdated comment
2012-04-23 08:02:59 -07:00
Niko Matsakis
30d563839e
Various regions fixes.
2012-04-23 08:02:59 -07:00
Niko Matsakis
0d3658bb43
rewrite the resolution infrastructure; but it's still grody
2012-04-23 08:02:58 -07:00
Marijn Haverbeke
68f8812511
Guard against infinitely expanding generic/inline functions
...
Closes #2220
Test case disabled until a memory-leak issue is resolved.
2012-04-23 16:44:52 +02:00
Marijn Haverbeke
2782cfb783
Emit a more useful error when using an unsuitable function for a loop
...
Closes #2255
2012-04-23 15:43:29 +02:00
Marijn Haverbeke
9053f54498
Move map iface over to more for
-friendly iteration methods
2012-04-23 15:18:19 +02:00
Marijn Haverbeke
a872a99bfe
Simplify representation of ast::path
2012-04-23 13:04:46 +02:00
Marijn Haverbeke
587d8a5d4f
Misc code cleanups using list::each for list iteration
2012-04-23 12:13:59 +02:00
Marijn Haverbeke
a61f107684
pretty printer: Properly print explicity types for block params
2012-04-23 10:27:09 +02:00
Marijn Haverbeke
f2a60a6b02
Fix long line in test
2012-04-23 09:54:27 +02:00
Marijn Haverbeke
dfdca5d538
Fix broken determination of external method type param count
...
Closes #2185
2012-04-23 09:25:14 +02:00
Brian Anderson
512927573e
syntax: Replace token::DOLLAR_PAREN, DOLLAR_NUM with just DOLLAR
...
Figure the rest out in the parser
2012-04-22 17:24:49 -07:00
Brian Anderson
7321c17171
syntax: Eliminate token::POUND_LT, POUND_LBRACE
...
Use lookahead in the parser
2012-04-22 15:19:14 -07:00
Brian Anderson
92b2113583
syntax: Move is_lit to mod token
2012-04-22 14:59:04 -07:00
Brian Anderson
fa86b5d67f
syntax: Remove unused BRACEQUOTE, IDX, LIT_BOOL tokens
2012-04-22 14:58:10 -07:00
Brian Anderson
e3961df78d
cargo: Discover crates in subdirectories
2012-04-21 15:46:05 -07:00
Brian Anderson
8688b1b845
core: Add os::walk_dir
2012-04-21 15:45:51 -07:00
Brian Anderson
7235f3cee2
syntax: Eliminate 'mutable' keyword. Closes #2254
2012-04-21 14:27:20 -07:00
Brian Anderson
734494a04d
rustc: Cache constant C strings. Closes #2264
2012-04-21 14:26:13 -07:00
Brian Anderson
bef5cd8e45
std: Export sort::le
2012-04-21 13:45:20 -07:00
Tim Chevalier
734166f41c
Print out return type correctly in typestate error message
...
In the "not all paths return" error message, typestate was printing
the AST type from the fn decl, not the ty::t type. This ended in tears
when the AST return type was "ty_infer". Now it looks up the function node
ID's type and uses util::ppaux::ty_to_str instead.
Closes #2163 .
2012-04-20 18:48:08 -07:00
Graydon Hoare
43061f3969
Add vec::unpack_slice, expose str::unpack_slice.
2012-04-20 17:37:17 -07:00
Graydon Hoare
14d0509691
Log decoded inline_items when debug is active.
2012-04-20 17:18:42 -07:00
Graydon Hoare
355422ddbd
Implement tydecode::parse_vstore.
2012-04-20 17:18:42 -07:00
Jeff Olson
f855682bed
std: ignore tests that use high_level_loop
...
until race issue with (most likely) refcount scheme is sorted out
2012-04-20 16:46:50 -07:00
Jeff Olson
707391edbc
std: add timer::recv_timeout() and whitespace cleanup
2012-04-20 15:23:23 -07:00
Jeff Olson
7ac8c3081c
std: add std::timer and timer::delayed_send and timer::sleep
...
.. leveraging std::uv, we have:
timer::delayed_send - send a value over a provided channel after the
timeout has passed
timer::sleep - block the current task for the specified period
both of these fns (and everything that goes in timer.rs) leverage the
uv_timer_* API
2012-04-20 15:23:23 -07:00
Jeff Olson
a1c43cc7c9
std: dump old std::uv API.. move remaining tests into uv::ll
2012-04-20 15:23:23 -07:00
Jeff Olson
791ea3466d
std::uv : cleanup and an isolated test for hand-rolled high_level_loops
2012-04-20 15:23:23 -07:00
Jeff Olson
e02057c5a5
std: fail if exiting hl_loop has unref_handles at weaken_task exit
2012-04-20 15:23:23 -07:00
Jeff Olson
a9db0c9efe
whitespace cleanup
2012-04-20 15:23:23 -07:00
Jeff Olson
a045e63639
std: get_monitor_task_gl() is global_loop::get() default
2012-04-20 15:23:23 -07:00
Jeff Olson
e15f1d5cad
std: refactor global_loop::get.. make it reusable
2012-04-20 15:23:23 -07:00
Jeff Olson
afb35f752f
fix uv_timer_t size in 32bit linux and windows
...
.. fixes issue, in previous commit, with global loop test hanging on
32bit linux (this was because the struct was too small, so (presumably),
the data member was garbled.. yippy)
2012-04-20 15:23:23 -07:00
Jeff Olson
bea02ee351
adding missing binding to rustrt.def.in
2012-04-20 15:23:22 -07:00
Jeff Olson
83ae83c3b3
uv::hl::get_global_loop() -> uv::global_loop::get()
...
- moved global loop tests, as well.. will add tests in uv_hl that encompass
rolling your own high_level_loop via uv::hl::run_high_level_loop()
- also whitespace cleanups and misc warning cleanup..
- doesn't work on 32bit linux
2012-04-20 15:23:22 -07:00
Jeff Olson
253fad7788
replace impl of globa_async_handle with one using atomic compare-and-swap
2012-04-20 15:23:22 -07:00
Jeff Olson
d7a87aa0a1
remove rustrt.def.in entry for no-longer-existent c++ function
2012-04-20 15:23:22 -07:00
Jeff Olson
728f92604a
fix a race in global loop test; unref_handle now takes a close_cb
2012-04-20 15:23:22 -07:00
Jeff Olson
9a5d1974dc
don't use ::malloc for initializing the global_async_handle in rust_kernel
2012-04-20 15:23:22 -07:00
Jeff Olson
f21d25b54c
make weak task that runs libuv loop unsupervised
2012-04-20 15:23:22 -07:00
Jeff Olson
e0f110aa12
clean and trying the global loop test as two separate loop lifetimes..
...
.. seeing an occasional valgrind/barf spew on some invalid read/writes..
need to investigate further.. i think its related to my poor citizen
conduct, re: pointers stashed in rust_kernel..
2012-04-20 15:23:22 -07:00
Jeff Olson
31ba223c26
end-to-end impl of global loop w/ high-level ref counting.. needs work
...
- starting/stoping the loop based on client work is functioning, correctly
- the issue appears to be that, when the process is about to exit, the
signal to let weak tasks know that they need to exit isn't getting fired.
2012-04-20 15:23:22 -07:00
Jeff Olson
e6f6a8ced4
tweaking rust getter/setters for libuv data to use generics
2012-04-20 15:23:22 -07:00
Jeff Olson
12f2f4c15c
rt: whitespace cleanup for existing libuv integration
2012-04-20 15:23:22 -07:00
Jeff Olson
e604c15df1
bindings to get/set data field on uv_loop_t* and debug log cleanup
2012-04-20 15:23:21 -07:00
Jeff Olson
f06362d5bb
exporting priv::weaken_task and adding some debug logging
2012-04-20 15:23:21 -07:00
Jeff Olson
c6667c06c3
add needed fields for global libuv loop + bindings to manage from rust
...
adding two pointers fields to rust_kernel :(
.. have to do manual malloc/free for one of the fields, which feels wrong
2012-04-20 15:23:21 -07:00
Jeff Olson
bf99a3aa93
adding low-level uv_timer_* stuff to libuv bindings
2012-04-20 15:23:21 -07:00
Jeff Olson
3d004c6df8
making brson's req. cleanups in #2134 plus change printf to LOG in c++
2012-04-20 15:23:21 -07:00
Brian Anderson
53f5c0c623
rt: Delete some incorrect comments
2012-04-20 14:00:13 -07:00
Brian Anderson
4357e1fd60
rt: Take the weak_task_lock in end_weak_tasks
...
Don't remember why it's commented out. Probably an oversight.
2012-04-20 13:59:31 -07:00
Graydon Hoare
90f82e171d
Get borrowing working on fixed evecs.
2012-04-20 12:11:55 -07:00
Tim Chevalier
37b0549730
Add new syntax for patterns that match the head constructor only
...
Adds a new kind of pattern C(*) where C is a constructor that may
have any number of fields. This pattern matches any value
constructed with C, without binding names for any of the fields.
Closes #1701 .
2012-04-20 00:56:46 -07:00
Brian Anderson
087b12ac29
syntax: Reorganize mod parse
2012-04-19 21:58:45 -07:00
Brian Anderson
7fa7e56341
syntax: Move fn spanned into ast_util
2012-04-19 21:58:45 -07:00
Brian Anderson
bcbcbad774
syntax: Extract some functions into mod common
2012-04-19 21:58:45 -07:00
Brian Anderson
628e80d525
syntax: Extract attribute parsing to its own mod
2012-04-19 21:58:45 -07:00
Niko Matsakis
3d6c79109e
update syntax to include a slash
2012-04-19 21:01:11 -07:00
Niko Matsakis
3c995fb8f3
make nominal types optionally parameterized by a self region.
...
Issue #2201 .
2012-04-19 21:01:11 -07:00
Niko Matsakis
f3f34bf09b
correct universally_quantify to use structure_of, and introduce a test for this
2012-04-19 21:01:11 -07:00
Niko Matsakis
bbfb83c2c5
Test for issue #1899 . It works now.
2012-04-19 20:54:23 -07:00
Niko Matsakis
171c89f4c5
Fix for #1989 , #1469 : when marking in CC, walk fn@ box like other boxes
2012-04-19 20:34:26 -07:00
Niko Matsakis
21f74be2c1
add a new runtime log (::rt::box) and make boxed_region use it
2012-04-19 20:34:26 -07:00
Tim Chevalier
31ff64c62d
Annotate FIXMEs in parser
...
Also, get rid of two FIXMEs by refactoring some code, and moving the
call_expr check for be expressions into typeck, where it seems to
make more sense.
2012-04-19 19:17:59 -07:00
Tim Chevalier
cdc8722f95
Add a lint pass to check for while true { ... } loops
...
And suggest changing them to loop { ... }. Had to fix the few
remaining while true loops (in core::io). Closes #1962 .
2012-04-19 18:14:38 -07:00
Brian Anderson
b9ae0c555b
syntax: Funnel all words through a single keyword table
2012-04-19 16:59:28 -07:00
Graydon Hoare
f641dce852
Get evec slices and unique-evec slice-borrowing working.
2012-04-19 16:51:37 -07:00
Tim Chevalier
b0074c5a92
Disallow rebinding / matching against consts in alts
...
As per Issue #1193 . Closes #1193 .
I had to rename a few variables ("info" and "epsilon") to avoid
clashing with in-scope constants, which is responsible for all the
changes other than resolve and issue-1193.rs.
2012-04-19 16:21:15 -07:00
Graydon Hoare
1e51196f33
Get fixed-size evecs working.
2012-04-19 15:52:50 -07:00
Tim Chevalier
cd2effe022
Annotate FIXMEs (comments only)
2012-04-19 15:30:59 -07:00
Tim Chevalier
37ea010b0d
Move some functions from pprust to classify
...
As per a FIXME in syntax::parse::classify, move predicates on exprs
and stmts into classify, out of pprust
2012-04-19 15:30:58 -07:00
Tim Chevalier
1da18c70ac
Clean up FIXMEs in syntax::fold
...
Eta-reduce a function, fold over ty constrs, and annotate a FIXME.
2012-04-19 15:30:58 -07:00
Tim Chevalier
030404c793
Cleanup FIXMEs in syntax::ext::qquote
...
Inline some one-off functions, add an error message, annotate a FIXME
2012-04-19 15:30:58 -07:00
Tim Chevalier
e6b5b4827b
Removed a FIXME from librustcsyntax/ext/build.rs
...
I removed a FIXME about cleaning up function names because I
couldn't tell what needed cleaning up. If you know, please add a
FIXME and a corresponding issue tracker issue that explains the
problem!
2012-04-19 15:30:58 -07:00
Tim Chevalier
df28ab1bd1
Comments only: annotate FIXMEs in lexer
2012-04-19 15:24:49 -07:00
Brian Anderson
7a1dc76b0f
core: Move set_exit_status from sys to os
2012-04-19 01:26:17 -07:00
Brian Anderson
1cad6322c3
core: Move last_os_error from sys to os
2012-04-19 01:23:00 -07:00
Brian Anderson
01e20dd0b3
core: Improve docs
2012-04-19 01:18:37 -07:00
Brian Anderson
9604544e23
rt: Don't log in the stack switching failure path
...
The runtime is in an uncertain state here and, instead of thinking
about how to make the logger work correctly, let's just avoid it.
Currently, it ends up hitting an assert saying that we can't log on
the rust stack.
2012-04-18 18:45:24 -07:00
Graydon Hoare
75cf13ec72
Add str/& component accessor and test.
2012-04-18 17:50:58 -07:00
Graydon Hoare
956bc773c6
Fix [] on str to exclude the trailing null.
2012-04-18 17:50:58 -07:00
Brian Anderson
9a8a04629e
syntax: Put the main parser interface in mod parse
2012-04-18 10:50:50 -07:00
Brian Anderson
2c0cb901c8
syntax: Begin moving functions from mod parser to mod classify
2012-04-18 10:50:50 -07:00
Brian Anderson
d51973a6a6
syntax: Move some functions from parser to token
2012-04-18 10:50:50 -07:00
Brian Anderson
476d5a099d
syntax: Extract prec mod from parser mod
2012-04-18 10:50:50 -07:00
Marijn Haverbeke
aa4278a3f5
Require values to be copyable when cast
...
Closes #2222
2012-04-18 17:21:39 +02:00
Marijn Haverbeke
a65af017ca
Remove tri.rs and four.rs
...
Closes #1892
2012-04-18 17:21:39 +02:00
Marijn Haverbeke
fda7bb6721
Fix oversight in type_use.rs
...
Closes #2053
2012-04-18 17:21:39 +02:00
Marijn Haverbeke
054a312a33
Stop duplicating non-generic resource destructors
...
Closes #2177
2012-04-18 17:21:39 +02:00
Marijn Haverbeke
a0fa099469
Add a needs_drop intrinsic
...
Closes #2055
2012-04-18 13:15:02 +02:00
Marijn Haverbeke
35b8f87b89
Fix use of wrong block context in return-from-loop code
...
Closes #2142
2012-04-18 13:00:18 +02:00
Brian Anderson
321ccc123d
syntax: Add explicit exports in parser mods
2012-04-17 20:10:58 -07:00
Graydon Hoare
70a9ce626d
Implement slice-borrowing on estr-uniq and str values.
2012-04-17 15:15:20 -07:00
Brian Anderson
fac7fcc123
syntax: Remove extra 'mut' from bad word table
2012-04-17 14:22:47 -07:00
Niko Matsakis
4c26d70a0a
new debug flag, new test
2012-04-17 12:02:36 -07:00
Niko Matsakis
6b549f9f14
repair LUB/GLB of free/scope regions, and enable test
2012-04-17 12:02:36 -07:00
Niko Matsakis
58f8cb343d
change printout to be what users will expect
2012-04-17 12:02:36 -07:00
Niko Matsakis
2b5ad256f5
along long lines if they contain error msgs
2012-04-17 12:02:36 -07:00
Patrick Walton
f9eca218e1
etc: Modernize the indenter
2012-04-17 08:01:17 -07:00
Niko Matsakis
35a93e61d4
rewrite region resolution so it takes place in typeck
2012-04-16 19:48:00 -07:00
Graydon Hoare
82727b926f
Get explicit unique estrs working.
2012-04-16 16:17:51 -07:00
Brian Anderson
dea8ae4e6f
rustc: Resolve external impls defined in yet other crates. Issue #2196
2012-04-16 14:58:58 -07:00
Brian Anderson
c461fc869c
test: Add xfailed test for #2196
2012-04-16 13:51:40 -07:00
Brian Anderson
6b398e1978
Merge pull request #2184 from evanmcc/local_rust
...
add the configure option --enable-local-rust to pull rust from your environment
2012-04-16 12:59:51 -07:00
Brian Anderson
f466a2fa8f
rustc: -L also indicates the location of native libraries
...
-L currently specifies paths to search for Rust crates
Building crates that use native libraries is difficult. When the
library is located somewhere unexpected there is no way
to tell rustc additional paths to look in.
If libclang is located at `.` then rustc is not going to
know that and linking will fail.
To get around that I often end up inserting
#[link_args = "-L."] native mod m { }
into other crates to get them to build.
Now you just `rustc -L .` and it builds.
This doesn't do any rpathing so it's still up to somebody else
to put the library somewhere it will be found or use LD_LIBRARY_PATH
This feature comes with a single, XFAILed test, because I could
not think of a way to test it. Odd.
2012-04-16 12:33:21 -07:00
Brian Anderson
903cb0e3a5
core: Factor out uint/u8/16/32/64 mods into uint-template
2012-04-16 12:31:34 -07:00
Brian Anderson
6bb181341b
core: Factor out int/i8/16/32/64 mods into int-template
2012-04-16 12:31:34 -07:00
Brian Anderson
7a2d7aa5de
core: Add extension methods for is_null, is_not_null
2012-04-15 21:46:29 -07:00
Brian Anderson
79a6fe5c7b
Merge pull request #2211 from astavonin/master
...
export buf_len from ptr
2012-04-15 16:18:39 -07:00
Brian Anderson
b78ca38380
syntax: Remove unused lexer field
2012-04-15 05:13:10 -07:00
Brian Anderson
3df37c3c45
syntax: Cleanup in diagnostic
2012-04-15 04:40:05 -07:00
Brian Anderson
e88b17c3b2
syntax: Limit exports in codemap
2012-04-15 04:34:51 -07:00
Brian Anderson
34ba1850b9
syntax: Some minor lexer refactoring
2012-04-15 04:19:52 -07:00
Brian Anderson
4b4f064315
syntax: lexer doesn't need to store the src length
2012-04-15 04:02:25 -07:00
Brian Anderson
2319c2d1ba
syntax: lexer doesn't need a codemap
2012-04-15 03:57:24 -07:00
Brian Anderson
aa8dc0175d
syntax: Limit exports from lexer
2012-04-15 03:49:59 -07:00
Brian Anderson
0e87f9ed02
syntax: Eliminate token's dependency on lexer
2012-04-15 03:44:32 -07:00
Brian Anderson
932aa893fd
syntax: Move comment-extraction code to its own module
2012-04-15 03:27:24 -07:00
Brian Anderson
4f576275be
syntax: Cleanup attr module. Closes #1545
2012-04-15 01:43:38 -07:00
Tim Chevalier
4f4a468e84
Forbid deinitializing upvars in typestate
...
Closes #1965 .
2012-04-15 01:05:41 -07:00
Alexander Stavonin
5b308ec24a
export buf_len from ptr
2012-04-15 16:40:47 +09:00
Brian Anderson
46e358f012
Register snapshots
2012-04-14 21:36:57 -07:00
Niko Matsakis
cc16165e40
implement evec/estr subtyping/lub/glb/etc
2012-04-14 18:48:58 -07:00
Brian Anderson
eb935b8fcb
core: Use tilde-fences in docs
...
Backtick fences don't work for some reason
2012-04-14 17:17:57 -07:00
Grahame Bowland
6b5731e704
add inf/-inf/NaN parsing to float::from_str
...
add tests for "inf"/"-inf"/"NaN" conversion
add tests for "-0." -> -0., "0." -> 0.
2012-04-15 02:21:57 +08:00
Brian Anderson
658b6a741b
test: Simulate abstract methods with template modules
2012-04-14 02:14:05 -07:00
Brian Anderson
611061b6c3
test: Add a test for interesting module template polymorphism
2012-04-14 00:15:12 -07:00
Brian Anderson
979a225598
rustc: Don't hardcode -lm
...
It does not appear to serve a purpose
2012-04-13 22:35:01 -07:00
Niko Matsakis
247db704a9
integrate simple notion of borrowing into trans
2012-04-13 21:06:57 -07:00
Niko Matsakis
378996092e
store into the borrowings table
2012-04-13 21:06:57 -07:00
Niko Matsakis
4d73185f3e
new borrowing tests (not all passing)
2012-04-13 21:06:56 -07:00
Niko Matsakis
b3f308bec5
add initial code re: slices to borrowing, improve ty_to_str
2012-04-13 21:06:56 -07:00
Graydon Hoare
d85e48840d
Trivial change to force a doc rebuild.
2012-04-13 19:51:04 -07:00
Niko Matsakis
f099359cfa
add test for issue #1466 that runs with CC ZEAL enabled.
...
Fixes #1466 . (Unable to reproduce)
2012-04-13 12:41:37 -07:00
Niko Matsakis
dfc548ddda
add option exec-env to set env variables during test execution
2012-04-13 12:41:37 -07:00
Niko Matsakis
d2482fd763
use find not echo; this also brings fuzzer under the iron fist of tidy.py!
2012-04-13 11:59:17 -07:00
Niko Matsakis
27f1c2b742
first stab at type checking for borrow: not integrated into trans
2012-04-13 10:41:46 -07:00
Niko Matsakis
c2fe288900
change to use && mode (can't move from upvar)
...
relevant to #1965
2012-04-13 10:41:46 -07:00
Haitao Li
39c5e06526
Revert "libstd: Handle test results in serial"
...
This reverts commit 828d0677c4
.
2012-04-13 18:34:45 +08:00
Haitao Li
2955ecd13c
Revert "libstd: Colorify test results when run in parallel"
...
This reverts commit 7b3cb05311
.
2012-04-13 18:34:41 +08:00
Tim Chevalier
1adc26d5e7
Annotate FIXMEs in syntax::ast and syntax::ast_util
...
The main non-comment change was to change simple_path to path,
as per a FIXME in ast.
2012-04-13 01:46:56 -07:00
Tim Chevalier
16eb06c246
Annotate FIXMEs in core::vec
2012-04-12 23:38:53 -07:00
Tim Chevalier
93a1f5e85f
Annotate FIXMEs in core::task
2012-04-12 23:38:25 -07:00
Tim Chevalier
a1b305c8e5
Remove or annotate FIXMEs in core::str
...
Trimmed exports in core::str::unsafe. Annotated other FIXMEs.
Also moved the test for str::unsafe::from_buf_len inside str_unsafe
since it's no longer exported. If it's not good to do that, let me
know.
2012-04-12 23:38:02 -07:00
Tim Chevalier
ea0063788b
Add a run-fail test for result::get, get rid of a FIXME. Also some random other tests, mostly xfailed.
2012-04-12 20:24:07 -07:00
Brian Anderson
79e572ebbb
rustc: Fix handling of - and _ in lint pass
2012-04-12 18:11:23 -07:00
Brian Anderson
8c8db42fc5
test: Add test for #1763
2012-04-12 17:43:12 -07:00
Graydon Hoare
8a7fd4a04f
Support general warnings and errors in lint pass via flags and attrs. Close #1543 .
2012-04-12 17:31:49 -07:00
Haitao Li
7b3cb05311
libstd: Colorify test results when run in parallel
...
Closes #782
2012-04-12 17:33:07 +08:00
Haitao Li
828d0677c4
libstd: Handle test results in serial
...
Issue #782
2012-04-12 17:33:01 +08:00
Brian Anderson
891dc84be2
rustc: Long lines
2012-04-11 21:32:05 -07:00
Brian Anderson
db7a1f7b0c
test: Add compile-fail test for shadowing in-scope enums
2012-04-11 21:28:25 -07:00
Brian Anderson
e7409859ce
rustc: Fix typo in error message
2012-04-11 21:25:32 -07:00
Tim Chevalier
d7ba59eb6e
Test that a class can implement an interface defined in a different crate
2012-04-11 18:55:30 -07:00
Niko Matsakis
e712ad8f73
rewrite lookup_method(), lookup_method_inner(), and lookup_method_inner_()
2012-04-11 17:21:53 -07:00
Niko Matsakis
3e6943d820
refactor fixup_self
2012-04-11 17:21:53 -07:00
Niko Matsakis
c1c60c023e
first attempt at an assignability check
2012-04-11 17:21:53 -07:00
Niko Matsakis
8967c4b409
simplify demand module
2012-04-11 17:21:53 -07:00
Tim Chevalier
5c12cd72f4
Allow classes to implement ifaces
...
Introduce syntax like:
iface animal { ... }
class cat implements animal { ... }
to allow classes to implement ifaces. Casting classes to ifaces
is *not* yet supported. ifaces that a class implements are not
yet included in metadata.
The syntax is subject to change, and may go away completely if we
decide to use duck typing to relate classes with ifaces (see
http://smallcultfollowing.com/babysteps/blog/2012/04/10/declared-vs-duckish-typing/ )
2012-04-11 16:20:01 -07:00
Graydon Hoare
9fda1578a2
Add ptr::position and ptr::buf_len, close #2183 .
2012-04-11 15:46:51 -07:00
Brian Anderson
d65df5d4d4
rustsyntax: i64, not int
2012-04-11 13:28:57 -07:00
Graydon Hoare
f34eae8802
Translate slice-strings and make fixed-strings carry their null.
2012-04-11 12:07:19 -07:00
Graydon Hoare
c720ffdbc4
Improve region code surrounding slice types.
2012-04-11 12:07:19 -07:00
Graydon Hoare
9d7e4aefee
Add enough tyencode stuff to stop faulting when we hit error messages.
2012-04-11 11:08:40 -07:00
Graydon Hoare
aeca5bae90
Fix name.
2012-04-11 11:08:40 -07:00
Graydon Hoare
7a3b290245
Add vstore/evec/estr to compiler.
2012-04-11 11:08:40 -07:00
Graydon Hoare
0c94cd5d43
Add some xfailed estr tests.
2012-04-11 11:08:40 -07:00
Evan McClanahan
2c93b1b2df
add the option --enable-local-rust to pull rust from your environment
...
rather than the snapshots.
make sure to get all of the files.
update to add nmatsakis' requested feature of pointing to a
different rustc install root.
usage: --enable-local-rust to enable
--local-rust-root="/path/to/rustc/" to change the path, which defaults to
"/usr/local/"
Tested on OS X and Linux, likely broken on windows.
2012-04-10 20:32:40 -07:00
Tim Chevalier
fd26743bed
Generic classes and generic class methods work cross-crate
...
Classes can have ty params now. So can methods inside classes.
That was probably true before, but now it should still work if you
call methods in a class that's defined in a different crate. Yay!
2012-04-10 11:01:36 -07:00
Haitao Li
1dac883282
test: Remove duplicated auxliary tests
2012-04-10 16:59:35 +08:00
Haitao Li
0364d60b28
test: Build auxiliary libraries for each test
...
Closes #2162
2012-04-10 16:04:05 +08:00
Brian Anderson
10236f8cd4
core: Make str::as_bytes handle failure. Closes #2156
2012-04-09 18:57:21 -07:00
Patrick Walton
59abf93b79
llvm: Update llvm to use new gcnoteroot infrastructure
2012-04-09 18:06:22 -07:00
Niko Matsakis
24e921f7d4
make anything used in a resource body always reachable
...
(they appear to be uncond. inlined)
Fixes #2170 .
2012-04-09 16:36:59 -07:00
Brian Anderson
564d8e09c7
rt: Fix typo
2012-04-09 16:26:23 -07:00
Brian Anderson
596376ea55
rt: Allow 2x normal stack during unwinding. Closes #2173
...
Allows room for destructors to run without allowing the stack to grow forever.
2012-04-09 16:03:06 -07:00
Brian Anderson
b42c6d07dc
rt: Don't limit the amount of stack available during unwinding. Closes #2144
2012-04-09 15:36:45 -07:00
Brian Anderson
a1d59704ed
rustc: Add more creader logging
2012-04-09 15:06:38 -07:00
Brian Anderson
eb181527b4
Update src/README.txt. Closes #2147
2012-04-09 14:03:48 -07:00
Haitao Li
46e4aaa0be
rustc: External fns declared as fns not global variables
...
Issue #2167
2012-04-09 14:38:53 +08:00
Haitao Li
460b92a37f
rustc: Declare rust_start as a function
...
Issue #2167
2012-04-09 12:02:16 +08:00
Brian Anderson
9e1e42d750
core: Add tests for the string repr of infinity
2012-04-08 14:16:55 -07:00
Brian Anderson
56f09791fe
Merge pull request #2164 from grahame/floatinfstr
...
write out "inf"/"-inf" in float::to_str_common
2012-04-08 13:55:22 -07:00
Brian Anderson
599cbf7a6b
rustdoc: Use parallel map by default
2012-04-08 13:46:11 -07:00
Grahame Bowland
2bee6132f9
write out "inf"/"-inf" in float::to_str_common
2012-04-09 01:33:36 +08:00
Haitao Li
2ce28899e4
test: Don't share auxiliary modules
2012-04-09 00:18:18 +08:00
Haitao Li
cc66599c1f
Xfail-fast a case on window
2012-04-08 23:14:57 +08:00
Haitao Li
101f83ecef
Fix a missing un-xfailed case
...
Issue #1230
2012-04-08 22:09:15 +08:00
Haitao Li
7d227f21f7
Check metadata hash when loading transitive dependent crates
...
Fix issue #2138
2012-04-08 21:19:15 +08:00
Haitao Li
18597b22b5
Remove a FIXME note about closed issue #1001
2012-04-08 18:24:32 +08:00
Brian Anderson
01dc4a8b26
core: Add priv::weaken_task
2012-04-07 19:56:41 -07:00
Brian Anderson
a6e748a1d9
rustc: Hash the CMH into symbol names
2012-04-07 17:50:49 -07:00
Brian Anderson
0094ffd99b
test: Add test for mismatched nominal types when using multiple crate vers
2012-04-07 17:40:34 -07:00
Brian Anderson
e0f2341da1
test: Add another test using multiple versions of the same crate
2012-04-07 17:40:25 -07:00