Elliott Slaughter
9ea4afe5da
gc: Avoid double free when pointer appears on stack multiple times.
2012-09-07 09:21:21 -07:00
Elliott Slaughter
3f0d207b32
gc: Add stack walker for new garbage collector.
...
Safe points are exported in a per-module list via the crate map. A C
runtime call walks the crate map at startup and aggregates the list of
safe points for the program.
Currently the GC doesn't actually deallocate memory on malloc and
free. Adding the GC at this stage is primarily of testing value.
The GC does attempt to clean up exchange heap and stack-allocated
resource on failure.
A result of this patch is that the user now needs to be careful about
what code they write in destructors, because the GC and/or failure
cleanup may need to call destructors. Specifically, calls to malloc
are considered unsafe and may result in infinite loops or segfaults.
2012-09-07 09:21:21 -07:00
Niko Matsakis
fb8786fe52
Refactor fn_ty, working towards #3320
2012-09-07 07:54:11 -07:00
Brian Anderson
699505899e
Register snappshots
2012-09-06 19:58:42 -07:00
Tim Chevalier
8152164a34
Another test for #2587
2012-09-06 16:46:59 -07:00
Tim Chevalier
46990ad111
Use callee ID when kind-checking expressions that may be overloaded
...
And fix up test cases that should have failed if not for this bug.
Closes #2587
2012-09-06 15:44:10 -07:00
Niko Matsakis
c5e2cf2ee5
Repair long lines
2012-09-06 15:40:11 -07:00
Niko Matsakis
ee4ba4490d
Issue #3402 : Load immediate rvalues right away
...
Should lead to smaller stack frames, hopefully reducing
the perf hits we saw
2012-09-06 15:23:03 -07:00
Niko Matsakis
fe9f0556d2
Refactor ty_var and ty_var_integral into one ty_infer variant
2012-09-06 12:31:33 -07:00
Niko Matsakis
d5b3e44b47
emacs mode: include use as a keyword
2012-09-06 12:31:33 -07:00
Tim Chevalier
a5285f148c
Add test for issue 3305
2012-09-06 12:30:47 -07:00
Tim Chevalier
55bd6cee2f
Test that merge sort is stable -- thanks to Jesse Jones
...
Closes #3399
2012-09-06 12:11:48 -07:00
Brian Anderson
b4e547d71a
Remove struct ctors
2012-09-06 10:52:26 -07:00
Niko Matsakis
5e36a99794
Refactor trans to replace lvalue and friends with Datum.
...
Also:
- report illegal move/ref combos whether or not ref comes first
- commented out fix for #3387 , too restrictive and causes an ICE
2012-09-06 06:11:12 -07:00
Patrick Walton
adc1427282
libcore: Expose glues to core
2012-09-05 21:10:22 -07:00
Patrick Walton
f6d50d866a
libcore: Make to_upper() and to_lower() pure
2012-09-05 20:55:28 -07:00
Patrick Walton
d155410674
rt: Make the boxed region come earlier in the rust_task structure.
...
This is so that GC can find it more easily.
2012-09-05 20:08:00 -07:00
Tim Chevalier
2d116cbbed
Start making moves explicit in libcore
...
This is in preparation for issue 2633. Replaced implicit moves that
rely on last-use with explicit moves in char, float, and str.
2012-09-05 19:20:01 -07:00
Patrick Walton
2ba632a683
vim: Turn "pub" into a big asterisk for those who dislike the look of it.
...
This is not the default and must be turned on.
2012-09-05 18:59:01 -07:00
Tim Chevalier
3a34c96086
Add a lint pass for structural records
...
Closes #3322
2012-09-05 18:35:30 -07:00
Patrick Walton
0a852e0da0
rustc: Make "priv" work on enum variants
2012-09-05 17:24:28 -07:00
Brian Anderson
9097410b43
Fix tutorial tests
2012-09-05 17:04:51 -07:00
Graydon Hoare
0ddae5ec7d
Add str::trim{_,_left_,_right_}chars.
2012-09-05 16:53:55 -07:00
Graydon Hoare
15b4734d0c
Remove 'use' line that's confusing pp-exact during use/import transition.
2012-09-05 16:53:55 -07:00
Graydon Hoare
81695d85dc
Mark crate metadata with a version tag. Close #3390 .
2012-09-05 16:53:55 -07:00
Patrick Walton
31af60b257
rustc: Fix double-reporting of private item errors. Un-XFAIL private-item-simple.rs.
2012-09-05 16:21:53 -07:00
Brian Anderson
f7681f9236
Accept Copy, Send, Const, Owned, as kind bounds
2012-09-05 15:31:38 -07:00
Patrick Walton
e7fe903d88
libsyntax: Make "pub use" mean the same thing as the former "import" in all circumstances
2012-09-05 13:26:46 -07:00
Patrick Walton
f686896f60
test: "import" -> "use"
2012-09-05 12:32:05 -07:00
Patrick Walton
47dac47e96
rustc: "import" -> "use" in .rc files
2012-09-05 11:46:25 -07:00
Patrick Walton
ba94b64698
cargo: "import" -> "use"
2012-09-05 11:39:22 -07:00
Patrick Walton
e4e9788b3a
fuzzer: "import" -> "use"
2012-09-05 11:38:37 -07:00
Patrick Walton
914b6fead9
test: Fix smallintmap test
2012-09-05 11:24:44 -07:00
Tim Chevalier
9db4445454
Merge pull request #3316 from Vincent-Belliard/issue_3222
...
fix issue #3222
2012-09-05 10:58:16 -07:00
Patrick Walton
fa2fb0f868
rustdoc: "import" -> "use"
2012-09-05 10:41:47 -07:00
Vincent Belliard
d12128f56f
fix issue #3222
2012-09-05 16:38:00 +02:00
Patrick Walton
9b88b5fe38
rustc: Don't allow private fields to be named in constructors or destructured
2012-09-04 19:07:23 -07:00
Patrick Walton
fba673b26b
rustc: Implement private methods.
...
Doesn't work cross-crate yet.
2012-09-04 18:30:27 -07:00
Brian Anderson
a618d0d7ce
std: Convert test to camel case
2012-09-04 18:26:30 -07:00
Brian Anderson
9c988eb40d
Whitespace
2012-09-04 17:54:20 -07:00
Brian Anderson
eb0cf3a715
std: Remove struct ctors
2012-09-04 17:27:03 -07:00
Tim Chevalier
268850f67b
xfail-fast anon-extern-mod-cross-crate-2
2012-09-04 17:23:26 -07:00
Tim Chevalier
451da07718
Allow anonymous extern mods
...
Now you can write:
extern {
f() -> int;
}
and f will be accessible in the enclosing scope.
2012-09-04 16:41:19 -07:00
Brian Anderson
c491bf939e
std: Camel case smallintmap
2012-09-04 16:04:10 -07:00
Brian Anderson
200959d7ce
Remove 'with'
2012-09-04 15:47:04 -07:00
Brian Anderson
02b1c32e4d
core: Remove struct ctors
2012-09-04 15:46:33 -07:00
Brian Anderson
ab9cf45a7c
syntax: Remove 'of' and 'check' from keyword table
2012-09-04 15:43:46 -07:00
Patrick Walton
8415515cbe
libcore: Make as_bytes_slice() not include the null byte
2012-09-04 15:23:30 -07:00
Patrick Walton
127144bf38
rustc: Implement private fields for max/min classes
2012-09-04 14:50:46 -07:00
Brian Anderson
8182497359
std: Camel case sort
2012-09-04 14:37:47 -07:00
Brian Anderson
a04cb8ebb7
Fix broken test case
2012-09-04 14:36:21 -07:00
Brian Anderson
0684c065a9
std: Camel case treemap
2012-09-04 14:35:43 -07:00
Brian Anderson
3764fe3f2a
std: Camel case list
2012-09-04 14:12:49 -07:00
Brian Anderson
d3e75ea375
Parse 'loop' and 'again' the same
2012-09-04 13:37:11 -07:00
Gareth Daniel Smith
92f3b74db2
Use struct+impl syntax instead of the (deprecated) struct with embedded methods syntax. Also standardise the comment indentation and add some whitespace between items.
2012-09-04 13:23:23 -07:00
Gareth Daniel Smith
c5f674ae2a
fix two issues with the exports:
...
1. from_bytes, from_bools and from_fn were not exported but should have been.
2. lots of stuff that either didnt exist or didnt need exporting was being exported.
2012-09-04 13:23:22 -07:00
Gareth Daniel Smith
9297c76598
add additional Bitv constructors (as proposed in issue #2964 )
2012-09-04 13:23:22 -07:00
Brian Anderson
f445497d6b
Merge pull request #3383 from crabtw/fbsd
...
use native log2 function and enable freebsd tests in uv_ll
2012-09-04 12:14:09 -07:00
Patrick Walton
a26837c478
rustc: "import" -> "use"
2012-09-04 11:54:36 -07:00
Patrick Walton
8ff18acc82
libsyntax: "import" -> "use"
2012-09-04 11:43:23 -07:00
Kevin Cantu
3f92cf2659
Demode libstd/net_ip.rs
2012-09-04 11:33:23 -07:00
Kevin Cantu
d072bc09a7
Demode libstd/net_url.rs
2012-09-04 11:33:23 -07:00
Kevin Cantu
9c8b0c6006
Demode treemap.rs
2012-09-04 11:30:49 -07:00
Kevin Cantu
100368ab86
Confirm demoding of smallintmap.rs
2012-09-04 11:30:48 -07:00
Kevin Cantu
3283b137b7
Confirm demoding of term.rs
2012-09-04 11:30:01 -07:00
Brian Anderson
d55917ea59
std: Fix net::url constructor names
2012-09-04 11:28:38 -07:00
Andrew Paseltiner
225cdc4894
add test for eq_slice fix
2012-09-04 11:27:11 -07:00
Andrew Paseltiner
21172ee280
fix str::eq_slice off-by-one error
2012-09-04 11:27:11 -07:00
Patrick Walton
2d690ae43f
libstd: "import" -> "use"
2012-09-04 11:23:53 -07:00
Patrick Walton
437073868e
libcore: "import" -> "use"
2012-09-04 11:12:17 -07:00
Jyun-Yan You
ff4b754958
use native log2 function and enable freebsd tests in uv_ll
2012-09-05 02:03:56 +08:00
Patrick Walton
7550e45930
libstd: Make ToBase64 take slices
2012-09-03 22:41:10 -07:00
Patrick Walton
0c2674f947
libstd: Make URL parsing not require unique strings, and have URLs implement FromStr.
...
I considered changing FromStr to return a Result<E> parameterized
over an error type E, but I decided that was premature abstraction.
If you want the URL parsing error, call url::from_str() directly.
2012-09-03 17:03:19 -07:00
Brian Anderson
5aedabf1a3
rustc: Run all intrinsics through the monomorphiser
...
Intrinsics always want to be inlined.
2012-09-03 16:46:15 -07:00
Patrick Walton
bb348ccab1
libstd: Export query_to_str from net::url
2012-09-03 16:10:01 -07:00
Brian Anderson
ac31fdd9c4
Fix cross-crate inlining of intrinsics
2012-09-03 16:01:51 -07:00
Patrick Walton
cd15eac9cf
libcore: Add missing from_str.rs
2012-09-03 15:59:37 -07:00
Patrick Walton
8f840f9ea0
libstd: Implement a Sort trait.
...
This depends on the previous fix to not assert.
2012-09-03 15:59:10 -07:00
Patrick Walton
5573ad723f
rustc: Fix an LLVM assertion that tripped when borrowing a by-val method receiver.
...
In certain lvalue code paths, the type of the borrowed value was not
being used to generate temporary spills. I'm a bit surprised we didn't
hit this sooner.
2012-09-03 15:59:10 -07:00
Brian Anderson
e767011b77
core: Add missing from_str.rs
2012-09-03 14:14:17 -07:00
Patrick Walton
199ed4d940
libstd: Export the url() constructor from net_url
2012-09-03 13:25:32 -07:00
Patrick Walton
aefc884cf6
libcore: Add a from_str trait
2012-09-03 13:09:24 -07:00
Patrick Walton
07ee2997e6
libstd: Make net_url::encode no longer require a unique string
2012-09-03 12:33:51 -07:00
Patrick Walton
c2f8cf9dc1
libcore: Remove as_bytes_slice
2012-09-03 12:33:43 -07:00
Patrick Walton
68704e4ca7
libstd: Make URLs structs
2012-09-02 20:59:46 -07:00
Brian Anderson
f393100b7c
Camel case core::ops
2012-09-02 18:13:56 -07:00
Brian Anderson
cb0eb66672
std: Camel case the rope module
2012-09-02 17:32:22 -07:00
Patrick Walton
b808cfbb74
rustc: Don't translate the expression twice when adapting a borrowed method receiver. Closes #3357 .
...
Adds a test case. I had to stare at this one for a bit.
2012-09-02 16:51:05 -07:00
Brian Anderson
49c9ac175f
Silence non-implicitly-copyable-typarams in coretest
2012-09-02 16:34:36 -07:00
Brian Anderson
ffa5d76a78
core: Only warn about implicitly copying vecs
2012-09-02 16:21:57 -07:00
Brian Anderson
117aa8cfee
core: warn(non_camel_case_types) everywhere, with few exceptions
2012-09-02 16:14:26 -07:00
Brian Anderson
a80b7dc709
Fix use of reinterpret_cast in to_mut_unsafe_ptr
2012-09-02 16:03:37 -07:00
Brian Anderson
512a769f6f
std: Allow camel case for list type
2012-09-02 15:57:49 -07:00
Patrick Walton
f03ed73c5e
libcore: Add ptr::to_mut_unsafe_ptr
2012-09-02 15:54:24 -07:00
Brian Anderson
1397c83f11
std: warn(non_camel_case_types) everywhere. still some exceptions
2012-09-02 15:49:36 -07:00
Brian Anderson
087c5032a8
core: deny(vecs_implicity_copyable)
2012-09-02 15:38:18 -07:00
Brian Anderson
7fb1a4e2d1
Camel case core::intrinsic
2012-09-02 15:19:52 -07:00
Brian Anderson
80c4f74c29
Remove the 'to' keyword
2012-09-01 18:38:18 -07:00
Brian Anderson
d777e51333
Demode reinterpret_cast
2012-09-01 18:18:29 -07:00
Brian Anderson
6bfc80f8fb
Try to work around check-fast breakage
2012-09-01 18:08:15 -07:00
Brian Anderson
0505fc6750
Merge pull request #3343 from killerswan/modes9
...
More deprecated mode removal (sort.rs, fun_treemap.rs)
2012-09-01 15:50:37 -07:00
Brian Anderson
aea422014b
Add test for #2989
2012-09-01 14:09:57 -07:00
Kevin Cantu
134e5c85a2
Demode sort.rs
2012-09-01 13:08:20 -07:00
Kevin Cantu
b06599a7a8
Demode fun_treemap.rs
2012-09-01 13:08:20 -07:00
Kevin Cantu
bf430b7032
Confirm demode of map.rs and prettyprint.rs
2012-09-01 13:08:20 -07:00
Kevin Cantu
2d8b3471e7
Confirm demode of base64.rs
2012-09-01 13:08:20 -07:00
Kevin Cantu
36a04bdd85
Confirm demode of cell.rs
2012-09-01 13:08:20 -07:00
Kevin Cantu
2095aee71d
Confirm demode of unicode.rs
2012-09-01 13:08:20 -07:00
Tim Chevalier
329281ebcc
Remove type annotation that is no longer necessary
...
Closes #2617
2012-08-31 16:29:30 -07:00
Tim Chevalier
4128cc4cb4
Make utility funs in core::int, core::uint, etc. not by-reference
...
Closes #3302
2012-08-31 16:21:47 -07:00
Zack Corr
638db28c47
jit: Correct formatting and argv[0] for JITted programs
2012-08-31 16:20:36 -07:00
Zack Corr
efb576a60d
jit: Clean rustllvm code, let rustc expose __morestack instead of linking in libmorestack and return _rust_main and call it from rustc
2012-08-31 16:20:36 -07:00
Brian Anderson
e27b8f7f02
Add JIT testing to compiletest with --jit
2012-08-31 16:20:36 -07:00
Brian Anderson
b999973c0f
Add a morestack_addr (temporary) intrinsic
2012-08-31 16:20:36 -07:00
Zack Corr
a02ab41b65
jit: correct formatting
2012-08-31 16:20:36 -07:00
Zack Corr
6723a5a0ea
jit: Forgot header for inlining pass
2012-08-31 16:20:36 -07:00
Zack Corr
19ea3ab480
jit: Add passes and cleanup code
2012-08-31 16:20:36 -07:00
Zack Corr
795acb7395
jit: Link in __morestack and make it resolvable by JIT
2012-08-31 16:20:36 -07:00
Zack Corr
7993f48209
jit: Add custom memory manager (still segfaulting)
2012-08-31 16:20:35 -07:00
Zack Corr
d7aa9918ef
Add experimental JIT compiler
2012-08-31 16:20:35 -07:00
Brian Anderson
97bb812238
Add rust_annihilate_box to rustrt.def.in
2012-08-31 16:19:02 -07:00
Brian Anderson
e4a7c88450
Fix test case
2012-08-31 16:14:22 -07:00
Brian Anderson
a0de6b6d5f
Merge remote-tracking branch 'erickt/incoming'
2012-08-31 16:14:18 -07:00
Lindsey Kuper
6d8d258f35
Tag things that have to do with default methods with issue #2794 .
2012-08-31 19:09:01 -04:00
Graydon Hoare
5236a304c4
Fix check-fast.
2012-08-31 15:58:36 -07:00
Patrick Walton
5b4d5cee03
rustc: Make entire crates privileged scopes for the purposes of coherence
2012-08-31 15:14:15 -07:00
Elliott Slaughter
3b554c1e0c
rt: Add tests for box annihilator.
2012-08-31 15:10:52 -07:00
Elliott Slaughter
f022f566a4
rt: Fix box annihilator to deallocate exchange heap boxes properly.
2012-08-31 15:10:52 -07:00
Elliott Slaughter
f8323ac615
rt: Add interface to box annihilator.
2012-08-31 15:10:52 -07:00
Brian Anderson
dbf6abf6bf
std: Camel case net modules
2012-08-31 15:01:48 -07:00
Brian Anderson
afc1ccd282
Merge pull request #3308 from killerswan/modes7
...
Remove deprecated modes
2012-08-31 14:51:48 -07:00
Elliott Slaughter
3cd54ab1f2
Register snapshots.
2012-08-31 13:24:10 -07:00
Kevin Cantu
7d57b4864a
Remove deprecated modes from list.rs (and temporarily delete list::push)
2012-08-31 12:55:39 -07:00
Kevin Cantu
34bf84649e
Remove deprecated modes from rope.rs
2012-08-31 12:55:39 -07:00
Kevin Cantu
e2667fda87
Remove deprecated modes from dbg.rs
2012-08-31 12:55:39 -07:00
Kevin Cantu
2580040995
Remove deprecated modes from FuzzyEq in cmp.rs
...
This commit may require changes to the following Servo files:
* rust-geom/matrix.rs
* servo/platform/osmain.rs
* rust-layers/layers.rs
* rust-geom/matrix.rs
2012-08-31 12:55:39 -07:00
Patrick Walton
340a219290
libsyntax: Get "extern mod foo;" working in .rc files
2012-08-31 11:46:04 -07:00
Patrick Walton
6e7d5e1cbd
rustc: Implement "use mod"
2012-08-31 11:20:50 -07:00
Graydon Hoare
28b1473f84
Fix anon-extern-mod pretty print test.
2012-08-31 10:30:32 -07:00
Kevin Cantu
cf386188c8
Various JSON pretty printing tweaks
2012-08-31 07:11:07 -07:00
Kevin Cantu
4fb675be2f
Fix JSON parsing of unicode escapes
2012-08-31 07:11:07 -07:00
Kevin Cantu
272c5ab0e9
Pretty print JSON: sorting object keys
2012-08-31 07:11:07 -07:00
Kevin Cantu
d47cb101bf
Pretty print JSON: indentation and newlines
2012-08-31 07:11:06 -07:00
Erick Tryzelaar
5c6be13b29
libcore: add result::unwrap_err.
2012-08-30 21:11:28 -07:00
Erick Tryzelaar
7649860339
libcore: result::unwrap should use moves
2012-08-30 21:11:28 -07:00
Erick Tryzelaar
afeaf7d88c
libcore: fix a typo
2012-08-30 21:11:27 -07:00
Erick Tryzelaar
c0f357924d
libcore: vec::u8::hash is pure.
2012-08-30 20:40:52 -07:00
Erick Tryzelaar
628b946186
libcore: rewrite str::reserve in pure rust.
2012-08-30 20:40:52 -07:00
Erick Tryzelaar
9074d9b581
libcore: rewrite io::MemBuffer.write to use memcpy ( #2004 )
2012-08-30 20:40:52 -07:00
Erick Tryzelaar
7bb65848a1
libcore: Rewrite str::unsafe::push_byte in pure rust.
2012-08-30 20:40:52 -07:00
Erick Tryzelaar
94c3975a9a
libcore: str::push_char should use str::unsafe::set_len.
2012-08-30 20:40:52 -07:00
Erick Tryzelaar
0e1a4a4da2
libcore: rewrite vec::unsafe::from_buf in pure rust
2012-08-30 20:40:52 -07:00
Graydon Hoare
536cb90a21
Migrate core::send_map to random, keyed hashes w/ hash::Hash trait.
2012-08-30 19:05:54 -07:00
Graydon Hoare
3462bb6a46
Fix some more test breakage.
2012-08-30 19:05:54 -07:00
Patrick Walton
f74014b0e7
test: Fix compile-fail tests
2012-08-30 17:13:35 -07:00
Patrick Walton
4846affedb
rustc: "extern mod { ... }" should be written "extern { ... }" instead
2012-08-30 17:10:07 -07:00
Graydon Hoare
c3ac0f8fd9
Fix auto_serialize test.
2012-08-30 16:27:31 -07:00
Graydon Hoare
11871b8baa
Fix json test.
2012-08-30 16:27:31 -07:00
Graydon Hoare
54a8d69c4f
Change str : Eq to use memcmp.
2012-08-30 16:27:31 -07:00
Patrick Walton
7fec8419f3
test: Add a test for unused constants in foreign modules
2012-08-30 16:10:50 -07:00
Patrick Walton
1f056eda8e
rustc: Make the compiler no longer ICE on unused foreign constants
2012-08-30 16:08:58 -07:00
Brian Anderson
65b05a6ce8
Bump version to 0.4
2012-08-30 14:05:59 -07:00
Graydon Hoare
bb8a510113
Add an impl path::WindowsPath : Eq.
2012-08-30 13:22:31 -07:00
Graydon Hoare
2d31c2afc4
Fix another Eq missing case.
2012-08-30 13:10:36 -07:00
Graydon Hoare
a9619306a5
Start moving core::hash to support a Hash trait. Add to_bytes::IterBytes trait.
2012-08-30 12:38:28 -07:00
Patrick Walton
ab53819a2c
libstd: Fix another std test
2012-08-30 12:25:48 -07:00
Patrick Walton
5c721bd810
libstd: More test fixes
2012-08-30 12:15:53 -07:00
Patrick Walton
470a301467
libcore: Fix test issues harder
2012-08-30 11:02:13 -07:00
Patrick Walton
27576af73e
libcore: Fix test issues
2012-08-30 10:42:48 -07:00
Patrick Walton
9518fc79ea
cargo: Fix some lack of knowledge of basic algebraic identities
2012-08-30 10:39:28 -07:00
Patrick Walton
45e46f5fc0
libcore: Add missing unit.rs
2012-08-30 10:14:54 -07:00
Patrick Walton
a1c11cab2d
rustc: Make <=
, >=
, and >
use traits as well
2012-08-29 19:23:15 -07:00
Patrick Walton
70d3633c0b
libstd: Fix some build breakage
2012-08-29 18:29:21 -07:00
Patrick Walton
59bdd8bde6
libcore: Fix build breakage
2012-08-29 18:27:26 -07:00
Patrick Walton
96534365c2
rustc: Make <
and =
into traits
2012-08-29 18:25:22 -07:00
Brian Anderson
94720fcea7
std: More camel casing
2012-08-29 17:44:29 -07:00
Brian Anderson
d8b34b2af8
Fix breakage
2012-08-29 16:56:04 -07:00
Brian Anderson
c0c8d3aa8f
core: Demode int/uint mods
2012-08-29 16:23:36 -07:00
Brian Anderson
ee2ce036cc
Camel case more std types
2012-08-29 16:09:50 -07:00
Brian Anderson
aab4d6b8d7
std: Camel case some constructors
2012-08-29 15:34:38 -07:00
Brian Anderson
8aca44ee0c
core: Don't normalize paths by default. Add a normalize method
2012-08-29 14:28:37 -07:00
Brian Anderson
fd12188c07
core: Export sys::Closure
2012-08-29 14:05:27 -07:00
Brian Anderson
6e20ffeb8d
Add sys::Closure type
2012-08-29 14:04:22 -07:00
Jed Davis
3e4b55807d
Add vec::truncate, for efficiently shortening a vector.
2012-08-29 13:46:49 -07:00
Graydon Hoare
5eef15df12
Rename resolve3 -> resolve.
2012-08-29 13:26:52 -07:00
Graydon Hoare
6d22a805d7
Replace core::path with contents of core::path2. Back to one path module.
2012-08-29 13:26:51 -07:00
Tim Chevalier
cb8ecd7984
Allow extern mods to be anonymous
...
extern mod {
f();
}
is now allowed, and puts f in the enclosing scope. (Requires a
link_name attribute to be really useful...)
2012-08-29 12:22:05 -07:00
Graydon Hoare
cdcf5a7580
Merge pull request #3299 from jld/mz-forceinline
...
Fix MZ_FORCEINLINE define to work with GCC 4.7.1.
2012-08-29 10:31:17 -07:00
Niko Matsakis
75201cdc04
vtable.rs: adjust formatting, correct build error
2012-08-29 06:07:17 -07:00
Niko Matsakis
e9ac7489b5
Refactor representation of borrowing so that it is tracked by fn_ctxt and not infer
2012-08-29 05:27:43 -07:00
Jed Davis
b043349833
Fix MZ_FORCEINLINE define to work with GCC 4.7.1.
...
Using just __always_inline__ without inline results in several instances
of "error: always_inline function might not be inlinable".
2012-08-29 01:18:00 -07:00
Erick Tryzelaar
e398a72c42
libcore: fix a typo exporting Err.
2012-08-28 20:16:21 -07:00
Tim Chevalier
06675caa42
Comment the default case in typeck::check::vtable::lookup_vtable copiously
...
Try to save the next person who looks at this code the heartbreak that I
went through.
2012-08-28 19:51:11 -07:00
Tim Chevalier
a70e37b214
In ty::impl_traits, treat structs properly
...
Treat structs just like impls: use their associated list of
trait refs to get the list of traits that one of them implements.
I don't understand what was happening before, but it was wrong.
Closes #2936
2012-08-28 19:51:11 -07:00
Niko Matsakis
a19dce6c16
correct name of SendMap trait
2012-08-28 19:10:44 -07:00
Ben Striegel
a605fd0cad
CamelCasify lots of std
2012-08-28 18:52:44 -07:00
Graydon Hoare
ecb646477b
Add lint modes for uses of @ and ~ pointers, in general.
2012-08-28 18:25:41 -07:00
Graydon Hoare
b769e29680
Compress metadata section. Seems a minor speed win, major space win.
2012-08-28 14:50:39 -07:00
Brian Anderson
31bbcf0267
Import Result, Ok, and Err by default. Closes #3287
2012-08-28 14:49:49 -07:00
Brian Anderson
cfbc7cbdc7
Convert core::pipes to camel case
2012-08-28 14:33:18 -07:00