Graydon Hoare
e24ae85025
syntax: remove most code handling old-style syntax extensions.
2012-12-12 15:02:47 -08:00
Graydon Hoare
9cced55b93
syntax: remove all remaining uses of #ast, and #ast / qquote itself.
2012-12-12 15:02:47 -08:00
Tim Chevalier
38bd694df1
Reverse the order of the results of pipes::stream
...
As per #3637 .
2012-12-11 19:23:28 -08:00
Tim Chevalier
d42bdf1997
Auto-deref when checking field and method privacy
...
This disallows using pointers to sneak around priv qualifiers.
Deeming this too small for review as well. Closes #3763
2012-12-11 19:17:31 -08:00
Brian Anderson
a7159be24a
Remove old deriving
2012-12-11 18:11:14 -08:00
Tim Chevalier
6439f2d546
Avoid extra error for type mismatches in patterns
...
When a type error has already occurred, don't call ty::subst,
which may ICE due to the mismatch in the number of type params
involved.
I'm deeming this too small to review.
Closes #3680
2012-12-11 17:38:57 -08:00
Graydon Hoare
a55ea48d2b
libstd: refactor future, remove with(), remove ~ indirection.
...
Conflicts:
src/libstd/future.rs
2012-12-11 15:56:47 -08:00
Brian Anderson
7d556e18b0
Fix deriving for single-variant enums
2012-12-11 15:41:16 -08:00
Brian Anderson
6e38e334de
Relate the module hierarchy to directory paths in the parser
...
Introduces a temporary 'path2' attribute that will replace 'path' after
a snapshot
2012-12-11 15:00:23 -08:00
Tim Chevalier
94a76843f4
Revert "Merge pull request #4144 from luqmana/deprecated-attribute"
...
This reverts commit f675b97ddc
, reversing
changes made to e7dd3af970
.
2012-12-11 12:28:30 -08:00
Tim Chevalier
01c0971172
Allow pattern-matching on any strings, not just unique strings
...
r=brson
Closes #3574
2012-12-11 11:22:13 -08:00
Tim Chevalier
f675b97ddc
Merge pull request #4144 from luqmana/deprecated-attribute
...
Add deprecated attribute.
2012-12-10 21:16:20 -08:00
Tim Chevalier
0046ed9462
Remove un-needed code for obsolete classes
...
and rename "class" to "struct" everywhere possible (except local
vars, I was too lazy for that) -- that is why this commit is so
big.
No review, just dead code removal and renaming.
Closes #3515
2012-12-10 18:45:01 -08:00
Brian Anderson
3fcdb7d6a7
Adjust the die macro to only accept ~str and to work in statement position
2012-12-10 18:16:22 -08:00
Graydon Hoare
ed686aeac4
tests: relicense .pp files. Oddly not caught during local testing.
2012-12-10 18:15:39 -08:00
Graydon Hoare
d1affff623
Reliciense makefiles and testsuite. Yup.
2012-12-10 17:32:58 -08:00
Patrick Walton
86f7eb3446
test: Fix aux-build in struct-destructuring-cross-crate. rs=bustage
2012-12-10 14:59:26 -08:00
Patrick Walton
3f78e0ecc0
librustc: Fix bug preventing cross-crate struct destructuring from working. rs=bugfix
2012-12-10 12:38:31 -08:00
Luqman Aden
a0d7b96170
Add test case for deprecated attribute.
2012-12-09 03:20:35 -05:00
Tim Chevalier
a7f29b3498
Fix busted test case
...
My last commit made more type errors recoverable, so extra errors
that were getting suppressed before were unleashed.
2012-12-08 23:51:51 -08:00
Tim Chevalier
3f7b112b16
Update and un-xfail crate-method-reexport-grrrrrrr2
...
Closes #3155
2012-12-08 23:40:17 -08:00
Tim Chevalier
42f8a3366a
Print out a more helpful type error message for do-blocks/for-loops
...
If a do-block body has the wrong type, or a for-loop body has a
non-() type, suggest that the user might have meant the other one.
Closes #2817
r=brson
2012-12-08 23:04:38 -08:00
Tim Chevalier
2c2398ca0d
Xfail broken tests
2012-12-07 23:42:58 -08:00
Patrick Walton
833eb7ae1d
test: Fix borrowck-preserve-box-in-pat. rs=bustage
2012-12-07 22:42:49 -08:00
Patrick Walton
374ccfee9a
test: Fix borrowck-preserve-box-in-discr; more fallout from pattern bindings. rs=bustage
2012-12-07 22:00:55 -08:00
Patrick Walton
6338865741
test: Remove alt-implicit-copy.rs test. Incompatible with current borrow check semantics. rs=bustage
2012-12-07 21:59:38 -08:00
Patrick Walton
6157f1dc06
test: Fix some busted run-pass tests, fallout from the pattern bindings change. rs=bustage
2012-12-07 21:56:46 -08:00
Tim Chevalier
13c7b97248
Add test for #2995
2012-12-07 21:40:42 -08:00
Tim Chevalier
8255aa1ec9
Add test case for #2828
2012-12-07 21:29:49 -08:00
Patrick Walton
184f5102b3
libsyntax: Fix parsing of module-qualified structure patterns. rs=bugfix
2012-12-07 19:10:16 -08:00
Patrick Walton
ab3b752906
librustc: Implement "&mut [T]" as an expression. r=brson
2012-12-07 18:29:10 -08:00
Brian Anderson
10c9d7921d
Trait constraints are separated by space, not comma
2012-12-07 15:54:17 -08:00
Brian Anderson
2fcf562d16
Add an auto-slice-and-ref step to method lookup. Allows ~[T] to work with explicit self
2012-12-07 15:29:38 -08:00
Brian Anderson
e71081ec03
Merge pull request #4101 from brson/bound-default-methods
...
Call default methods on bound typarams more correctly
2012-12-07 15:10:57 -08:00
Graydon Hoare
d78053ecb0
syntax: try to fix pattern printing yet again, r=burningtree.
2012-12-07 14:39:47 -08:00
Graydon Hoare
b4401d12a7
bench: fix nbody bugs, r=burningtree.
2012-12-07 12:21:30 -08:00
Graydon Hoare
70e0c6e27d
syntax: Permit splicing anything into a quote that implements ToTokens.
2012-12-07 11:21:14 -08:00
Tim Chevalier
35f36808ff
Test cases, some xfailed
2012-12-06 21:53:14 -08:00
Tim Chevalier
10ec058638
Remove obsolete comment
2012-12-06 21:52:50 -08:00
Tim Chevalier
31a4f40329
Remove compile-fail test from run-pass
2012-12-06 21:52:50 -08:00
Tim Chevalier
dd80f7e06e
Xfail trait-inheritance-overloading-xc-exe
...
Issue #4135
2012-12-06 21:52:50 -08:00
Brian Anderson
ddfd1eaeb5
Use fuzzy_eq in run-pass/intrinsics-math.rs
2012-12-06 18:55:10 -08:00
Brian Anderson
098f71d348
xfail-fast static-fn-inline-xc. needs aux-build
2012-12-06 18:44:26 -08:00
Tim Chevalier
d2ad028a7c
Rename std::ebml::Reader => std::ebml::reader, same for writer
...
Closes #4076
2012-12-06 16:14:54 -08:00
Tim Chevalier
fe9a339939
Add various test cases, mostly xfailed
2012-12-06 16:14:54 -08:00
Patrick Walton
9750763a70
test: Fix compilation of benchmarks for moves-based-on-type. rs=bustage
2012-12-06 15:56:52 -08:00
Patrick Walton
4055001388
test: Fix shootout-mandelbrot.rs. rs=bustage
2012-12-06 15:38:04 -08:00
Patrick Walton
14a7be31bb
test: Fix busted test. rs=bustage
2012-12-06 14:54:01 -08:00
Patrick Walton
e6ab0ca8b1
test: Fix more compile-fail bustage. rs=bustage
2012-12-06 12:13:30 -08:00
Patrick Walton
45052e13a5
test: Fix some compile-fail bustage. rs=bustage
2012-12-06 11:08:23 -08:00