Graydon Hoare
ac0fd0ddc9
rustc: fix pp build breakage.
2012-11-13 10:54:10 -08:00
Patrick Walton
db9f8db741
librustc: Implement deriving with a unit return type. r=tjc
2012-11-13 10:37:58 -08:00
Graydon Hoare
c6d0117bf6
rustc: add new token-tree based quasiquoter.
2012-11-13 08:57:31 -08:00
Graydon Hoare
12b212f38c
rustc: Remove the case of foo![...] as invocation syntax. foo!(...) and foo!{...} only.
2012-11-13 08:57:31 -08:00
Graydon Hoare
f7960ac549
Revert "m1!{...}
is now forbidden. Use m1!(...)
instead."
...
This reverts commit 89bbaff84f
.
2012-11-13 08:57:31 -08:00
Graydon Hoare
4e1ce014c8
cleanup: convert some remaining #foo invocations to foo! form.
2012-11-13 08:57:31 -08:00
Patrick Walton
2b93ab5a21
rustc: Make static methods not leak out of traits. r=brson
2012-11-12 22:11:22 -08:00
Brian Anderson
1ead8aa0b5
Merge pull request #3954 from burg/result-chain
...
Fix Result::chain, Result::chain_err to not require Copy bounds.
2012-11-12 18:05:29 -08:00
Brian J. Burg
37ed7fcaae
Fix Result::chain, Result::chain_err to not require Copy bounds.
2012-11-12 17:53:08 -08:00
Patrick Walton
fe02814a63
rustc: Implement floating point literal inference. r=nmatsakis
2012-11-12 10:39:08 -08:00
Brian Anderson
f05e2da709
Add a test for multiple main functions
2012-11-09 12:13:55 -08:00
Brian Anderson
3f816bdd57
xfail-fast run-pass/pub-use-xcrate
2012-11-08 19:02:25 -08:00
Brian Anderson
166c10e666
std: Eliminate copy warning
2012-11-08 17:14:02 -08:00
Brian Anderson
c78020ef4f
Whitespace
2012-11-08 17:11:44 -08:00
Brian Anderson
8643f757a2
rustc: Fix cross-crate reexports. #3908 . r=pcwalton
2012-11-08 17:10:48 -08:00
Brian J. Burg
a5718ba377
Change option::expect to not require a Copy bound, and move instead.
2012-11-08 16:25:22 -08:00
Brian Anderson
17020244e4
Merge pull request #3923 from am0d/master
...
Fixes issue #3891
2012-11-08 12:35:14 -08:00
a_m0d
062ac8cb97
Fix whitespace issues from previous commits.
...
Also added test for #3891 .
2012-11-07 23:49:01 -05:00
Patrick Walton
0fc952372a
rustc: Support irrefutable patterns in function arguments. r=nmatsakis
2012-11-07 19:29:30 -08:00
Patrick Walton
b223c9c465
rustc: Autovivify modules even when a type def is present in resolve. Closes #3931 . rs=nasty-bug
2012-11-07 14:28:16 -08:00
Brian Anderson
69a8b4d8e2
Rename src/rustc to src/librustc. Use the driver crate
2012-11-07 13:53:39 -08:00
Patrick Walton
f72ef31ede
rustc: Long lines
2012-11-07 13:48:09 -08:00
Patrick Walton
2904095570
rustc: Implement the Drop trait. r=brson
2012-11-07 12:34:32 -08:00
Patrick Walton
70886d314d
libstd: Implement a thread pool. r=brson
2012-11-07 12:05:41 -08:00
Zack Corr
a54d046174
Implement Ptr trait for mutable unsafe pointers. Closes #3926 .
2012-11-07 16:24:29 +10:00
Graydon Hoare
92e3a8c17e
rustc: reuse const vals, translate fn paths as consts. Close #2530 .
2012-11-06 17:13:52 -08:00
a_m0d
d42cf97bcc
Fix trailing whitespace issues
2012-11-06 19:16:01 -05:00
a_m0d
59a592f4c4
Add end_of_file handling to TcpBufferedSocket.
...
This fixes #3891 .
Also removed debug!(...) statement from socket destructor which causes a
crash when the logging level is set to debug.
2012-11-06 19:12:26 -05:00
Niko Matsakis
b0ed151539
Cleanup how we handle proto in types, remove unsound subtyping
...
Fixes #1896 which was never truly fixed, just masked.
The given tests would have failed had they used `~fn()` and
not `@fn()`. They now result in compilation errors.
Fixes #2978 .
Necessary first step for #2202 , #2263 .
2012-11-06 08:56:29 -08:00
Brian Anderson
53ec6c3f9b
rt: Remove shape code
2012-11-05 15:22:35 -08:00
Brian Anderson
bc3f89e92b
rustc: Stop declaring unused upcalls
2012-11-05 15:22:35 -08:00
Patrick Walton
449f4fbb07
rustc: Implement deriving involving generic bounded traits. r=brson
2012-11-05 13:38:45 -08:00
Patrick Walton
be93b29d30
rustc: Implement parsing and typechecking for "once fn"
2012-11-05 13:17:02 -08:00
Brian Anderson
9aadfc3f4b
Make std::rl unsafe. #3921
2012-11-05 11:20:44 -08:00
Brian Anderson
849d3ff703
rusti: main must be public
2012-11-04 17:51:57 -08:00
Brian Anderson
6a332b235f
rusti's crate type is 'lib'
2012-11-04 17:48:47 -08:00
Brian Anderson
84208b2d26
Librarify rusti, etc.
2012-11-04 17:14:52 -08:00
Brian Anderson
9b723b25c7
Use 0.5 crates in rusti
2012-11-04 14:16:13 -08:00
Brian Anderson
6757eeefe5
Long lines
2012-11-04 14:06:51 -08:00
Brian Anderson
1b0c6665d9
Merge remote-tracking branch 'brson/repl'
...
Conflicts:
mk/install.mk
src/rt/rustrt.def.in
2012-11-04 13:42:39 -08:00
Brian Anderson
799eb105b9
Use a linenoise with win32 support
2012-11-04 13:34:14 -08:00
Brian Anderson
45a908cad0
Merge pull request #3916 from Dretch/iofix
...
More methods/docs/tests for core::io
2012-11-04 12:51:34 -08:00
Gareth Daniel Smith
fd6f62f9c7
Add more doc-comments for Reader, ReaderUtil, Writer and WriterUtil (loosely associated with issue #2004 ).
2012-11-04 18:11:37 +00:00
Gareth Daniel Smith
0aba903de7
Add size-specific int reading methods to ReaderUtil to match the existing int writing methods in WriterUtil (for issue #2004 ).
2012-11-04 10:14:49 +00:00
Zack Corr
a450119b0b
Move rusti::rl to std::rl
2012-11-04 15:40:57 +10:00
Daniel Patterson
6c79d78843
library-ifying of tools - turning cargo, rustdoc, fuzzer, into libraries, as per #3543
2012-11-03 18:23:43 -07:00
Tim Chevalier
563aa0bf6c
Remove the last use of rustrt::rust_compare_and_swap_ptr
...
Closes #3527
r=brson
2012-11-03 14:11:30 -07:00
Tim Chevalier
a006608276
Remove stage0 stuff that was awaiting snapshot
...
and re-register snapshots
Just removing unneeded code, no review
2012-11-03 14:04:32 -07:00
Gareth Daniel Smith
a42d2d408a
Fix a bug where .write([]) would always fail.
2012-11-03 18:48:02 +00:00
Tim Chevalier
444a16a7e8
Revert "Register snapshots"
...
This reverts commit 04671b250d
.
2012-11-03 00:22:29 -07:00
Tim Chevalier
04671b250d
Register snapshots
2012-11-03 00:14:47 -07:00
Brian Anderson
762101b72a
syntax: Fold macros in default methods. Closes #3911
2012-11-02 23:11:36 -07:00
Patrick Walton
b90d7d4c81
rustc: Refactor vtable lookup to use a vtable context, so that it can be called outside a function. rs=refactor
2012-11-02 17:59:15 -07:00
Patrick Walton
9e0c596141
rustc: Eliminate the necessity of having an expr in order to call lookup_vtables(). rs=#rust
...
Automatically-generated derived methods don't have exprs and need to call this function.
2012-11-02 17:11:57 -07:00
Brian Anderson
e2f33e6883
Add xfailed test for #3908
2012-11-02 15:57:47 -07:00
Brian Anderson
1c8c1b2181
Add xfailed test for #3907
2012-11-02 15:37:47 -07:00
Tim Chevalier
4876eb708c
Fix #1996 (pending snapshot)
...
Change int to uint in some extfmt code. Remove the #[cfg(stage0)] code
after a snapshot.
2012-11-02 12:01:38 -07:00
Patrick Walton
caf68038dd
test: Fix error messages in compile-fail tests. rs=rustbot
2012-11-02 10:43:28 -07:00
Patrick Walton
ad02510258
libcore: Implement a memory-safe "each_val" for data in aliasable, mutable locations
2012-11-02 10:17:32 -07:00
Patrick Walton
0c2e6fda73
rustc: Implement ~Trait. r=nmatsakis
2012-11-02 10:15:19 -07:00
Patrick Walton
65d4dbeb12
rustc: Implement dereference via unary '*' for structs. r=nmatsakis
2012-11-02 09:56:35 -07:00
Patrick Walton
4165edff22
rustc: Implement translation of pattern matching for tuple structs and unit-like structs. r=nmatsakis
2012-11-02 09:56:28 -07:00
Patrick Walton
106f9976ab
rustc: Implement typechecking, exhaustiveness checking, and borrow checking for pattern matching of tuple structs. r=nmatsakis
...
Conflicts:
src/rustc/middle/typeck/check/alt.rs
2012-11-02 09:56:09 -07:00
Brian Anderson
b62844e755
core: peek returns false for terminated pipes. Closes #3905
2012-11-02 00:57:44 -07:00
Brian Anderson
a90020fe8d
xfail issue-2061
2012-11-01 17:13:59 -07:00
Brian Anderson
b92c1197b6
Long lines
2012-11-01 16:39:32 -07:00
Tim Chevalier
0069bd2f46
Add run-fail test for #2061
2012-11-01 16:20:58 -07:00
Brian Anderson
3edccc311e
Support #[cfg] on methods
2012-11-01 15:48:50 -07:00
Tim Chevalier
768247f393
Tests for #1896
2012-11-01 15:14:52 -07:00
Tim Chevalier
b269ac13cd
Adding xfailed test for #3874
2012-11-01 15:14:52 -07:00
Patrick Walton
abab49b7cf
rustc: Fix tab characters
2012-11-01 15:13:43 -07:00
Patrick Walton
94f05c1936
rustc: Stop overwriting trait static method types when checking generic trait refs. Closes #3903 . rs=blocking-burg
2012-11-01 15:10:41 -07:00
Tim Chevalier
3d8df9947f
Add xfailed test cases
2012-11-01 14:43:26 -07:00
Tim Chevalier
9d276b11e5
Add test case for #3878 , which didn't get merged somehow
2012-11-01 14:43:20 -07:00
Brian Anderson
45d04f5704
rustc: Swap argument order in drop_and_cancel_clean
2012-10-31 16:11:27 -07:00
Brian Anderson
740763fdef
Merge remote-tracking branch 'vertexclique/incoming'
2012-10-31 16:11:23 -07:00
Mahmut Bulut
add4127192
change function and place in expr.rs
2012-11-01 00:49:37 +02:00
Brian Anderson
cb4de738cf
Fix checking of duplicate and missing struct field initializers. Closes #3486 . Closes #3892
2012-10-31 13:56:41 -07:00
Zack Corr
15880b3564
rusti: Correct by-copy flag
2012-10-31 13:21:28 +10:00
Zack Corr
1d55a5778b
rusti: Remove legacy modes and exports
2012-10-31 10:11:19 +10:00
Tim Chevalier
4e5865f2ad
Fix #1458 (allow paren'd exprs to be the operator in a do
)
...
Closes #1458
2012-10-30 15:06:13 -07:00
Tim Chevalier
165ce14f68
Remove xfail-pretty from tests that pretty-print correctly now
2012-10-30 15:06:10 -07:00
Mahmut Bulut
1dc4d024a8
testcase added for #3878
2012-10-31 00:05:34 +02:00
Tim Chevalier
62f98c8ff8
Preserve parenthesization in the AST
...
Maintain explicit "paren" nodes in the AST so we can pretty-print
without having to guess where parens should go. We may revisit this
in the future.
r=graydon
2012-10-30 15:05:32 -07:00
Mahmut Bulut
bf792b922c
* dropnzero_val fn added
...
* zero-mem for not needed drop situation placed in Ignore
2012-10-30 23:37:09 +02:00
Patrick Walton
a3b83c6224
rustc: Translate "deriving" for monomorphic intra-crate enums. r=brson
2012-10-30 11:40:44 -07:00
Patrick Walton
675c272dad
rustc: Instantiate trait refs for automatically-derived implementations. Should fix check-fast. rs=bustage
2012-10-30 11:21:01 -07:00
Graydon Hoare
b7872fa13e
core: fix breakage from recent merge.
2012-10-30 10:33:19 -07:00
Graydon Hoare
9bcafa28aa
Merge pull request #3881 from vertexclique/incoming
...
Removing iter::TimesIx
2012-10-30 10:30:35 -07:00
Mahmut Bulut
f938714be1
Remove trait of TimesIx
2012-10-30 15:19:14 +02:00
Zack Corr
ea996556b9
rusti: Remove linenoise module, add to rt, remove core::rl
2012-10-30 11:08:36 +10:00
Patrick Walton
dd76050e51
Merge pull request #3885 from pcwalton/master
...
rustc: Implement typechecking for automatically-derived enums
2012-10-29 14:23:22 -07:00
Patrick Walton
a369a7881f
rustc: Implement typechecking for automatically-derived enums
2012-10-29 14:11:56 -07:00
Graydon Hoare
5e5474e895
std: disable timsort crash-test on windows.
2012-10-29 11:29:27 -07:00
Patrick Walton
17a875b08a
Merge pull request #3871 from pcwalton/master
...
rustc: Translate monomorphic intra-crate automatically-derived method…
2012-10-29 10:37:22 -07:00
Mahmut Bulut
ac92cc8898
Removing iter::TimesIx
2012-10-28 22:36:01 +02:00
Tim Chevalier
5e5ea04608
Make class-cast-to-trait compile (not sure why this worked before)
2012-10-27 17:38:57 -07:00
Tim Chevalier
64193a9eb8
Remove unnecessary suffixes
2012-10-27 17:16:26 -07:00
Tim Chevalier
47baebc68c
Remove un-needed comparisons, suppress warnings
2012-10-27 17:07:45 -07:00
Zack Corr
1afa29986f
rusti: Correct formatting
2012-10-27 21:41:41 +10:00