Tim Chevalier
e5bf6d1afa
testsuite: Update error message, unbreak build
2013-01-20 18:22:11 -08:00
Tim Chevalier
ef0f71dc3f
testsuite: Add xfailed test for #4335
2013-01-19 17:39:15 -08:00
Tim Chevalier
1e1707ccb8
testsuite: Add license
2013-01-19 17:38:12 -08:00
Tim Chevalier
96b4f43675
Handle region errors where the actual scope is a statement
...
Prevents a case of "unknown scope, this is a bug".
I judged this too small to review. Closes #4500
2013-01-19 17:06:36 -08:00
Graydon Hoare
e51ec26dd7
xfail-fast the #[main] tests, r=burningtree
2013-01-18 17:44:26 -08:00
Tim Chevalier
90372da5a8
testsuite: Update error messages. Unbreak build, I hope
2013-01-18 13:35:07 -08:00
Niko Matsakis
440f8dfc4e
Correct tests
...
rs=breakage
2013-01-17 18:45:57 -08:00
Niko Matsakis
532c94d0f1
Propagate expected types through block expressions.
...
r=graydon
2013-01-17 18:45:48 -08:00
Niko Matsakis
9fed56ed90
When decoding types, indicate to the def-id conversion function what kind of
...
def-id we have, so that the inliner can distinguish between external and
internal def-ids. Also add some comments explaining the distinction!
Fixes #4516 .
r=graydon
2013-01-17 18:45:45 -08:00
Patrick Walton
9f7514bfae
test: Fix busted compile-fail tests. rs=bustage
2013-01-17 16:30:59 -08:00
Patrick Walton
f405e41d7a
librustc: Implement write guards for borrowing @mut
to &
or &mut
. r=nmatsakis
2013-01-17 11:50:20 -08:00
Patrick Walton
a2ec5400ff
Merge pull request #4493 from jbclements/rename-moved-variable-to-moved-value
...
s/moved variable/moved value/
2013-01-16 12:30:55 -08:00
Graydon Hoare
84825ee310
librustc: Make the default sigil for block lambdas &
instead of @
.
2013-01-15 17:57:45 -08:00
John Clements
3bf8b8af98
s/moved variable/moved value/
2013-01-14 17:38:22 -08:00
ILyoan
b7cefd0c96
allowing the entry point name to be something other than main
...
add build tests
2013-01-14 13:58:13 -08:00
Jed Davis
3aca4a1663
Regression tests for passing enum-typed consts by reference.
...
If the PointerCast in trans_def_lvalue is removed, these cases cause
LLVM assertion failures.
2013-01-11 23:42:51 -08:00
Jed Davis
79f0d67d28
Add more tests for enum constants.
...
The tests have consts defined both before and after their uses in order
to prevent bugs that depend on the order in which they are translated.
2013-01-11 23:42:51 -08:00
Andrew Paseltiner
ea937dca89
test: add test for overloading logical negation operator
2013-01-11 16:27:12 -05:00
Patrick Walton
a82c8b3da2
test: XFAIL issue_3882 due to strange Windows failure. rs=failure
2013-01-11 10:57:24 -08:00
Tim Chevalier
329a57882f
Add xfailed test for #3973
2013-01-10 15:35:41 -08:00
Niko Matsakis
fe0f84823a
add two more copies required in word-count rs=breakage
2013-01-10 15:02:31 -08:00
Tim Chevalier
ae0ca9c646
Add working test for issue 3935 and xfailed test for issue 3888
2013-01-10 14:38:37 -08:00
Tim Chevalier
e0850d11ec
Add test cases: one xfailed, one not
2013-01-10 14:16:02 -08:00
Niko Matsakis
89ed595e30
correct expected error msgs in various tests rs=breakage
2013-01-10 13:58:14 -08:00
Tim Chevalier
8a687dd8e4
tests: Add two test cases, one xfailed
2013-01-10 13:44:27 -08:00
Niko Matsakis
737e115646
mode: reset mode on entry to fn body.
...
This is an interim fix to address the "Beware!" unsoundness. I have a
more comprehensive rewrite of mode.rs in the pipeline.
r=pcwalton
2013-01-10 13:17:25 -08:00
Patrick Walton
2a1b6c4de9
librustc: Implement &static
as the replacement for Durable
. r=nmatsakis
2013-01-10 11:16:54 -08:00
Patrick Walton
982830c836
librustc: Allow the type parameter version of Self
to be spelled with a capital S
2013-01-10 10:37:22 -08:00
Graydon Hoare
61210e01f9
test: fix check-fast breakage.
2013-01-10 10:24:18 -08:00
Niko Matsakis
2b92962aa2
A collection of refactorings that I found it hard/tiresome to divide:
...
- Make `extern fn()` assignable to any closure type, rather than
a subtype.
- Remove unused int_ty_set and float_ty_set
- Refactor variable unification and make it more DRY
- Do fn sub/lub/glb on the level of fn_sig
- Rename infer::to_str::ToStr to infer::to_str::InferStr
- Capitalize names of various types
- Correct hashing of FnMeta
- Convert various records-of-fns into structs-of-fns. This is both
eliminating use of deprecated features and more forwards compatible
with fn reform.
r=pcwalton
2013-01-09 14:59:07 -08:00
Patrick Walton
2db3abddcd
librustc: Make unqualified identifier searches terminate at the nearest module scope. r=tjc
2013-01-08 22:02:35 -08:00
Patrick Walton
44ab00ee37
Revert "librustc: Make unqualified identifier searches terminate at the nearest module scope. r=tjc"
...
This reverts commit a8d37af247
.
2013-01-08 19:29:16 -08:00
Patrick Walton
a8d37af247
librustc: Make unqualified identifier searches terminate at the nearest module scope. r=tjc
2013-01-08 19:27:57 -08:00
Niko Matsakis
9f7dc1cb33
Remove ret_style and instead check whether fn return type is bot
...
cc #3681
2013-01-08 14:21:06 -08:00
Tim Chevalier
80435ad429
Make self
visible when typechecking nested functions
...
Necessary to allow supertrait methods to be called in default methods.
r=nikomatsakis
2013-01-08 13:56:26 -08:00
Patrick Walton
722d670c85
test: Fix botched regex. rs=bustage
2013-01-08 10:35:20 -08:00
Patrick Walton
1f667e7995
test: Regular expression mistake. rs=bustage
2013-01-07 22:13:34 -08:00
Patrick Walton
fcc470c0ee
test: Fix check-fast for resolve changes. rs=bustage
2013-01-07 18:55:12 -08:00
Niko Matsakis
16ec9aa6e7
Support assignability for struct fields. r=pcwalton
2013-01-07 18:46:37 -08:00
Tim Chevalier
7b433d098a
Revert "Change the self def_id to a self_info in typeck, and inherit"
...
This reverts commit 921393c568
.
2013-01-07 18:18:22 -08:00
Tim Chevalier
921393c568
Change the self def_id to a self_info in typeck, and inherit
...
That is, treat `self` as if it has dynamic scope. This seems to
be harmless, and prevents an ICE as per #3563
2013-01-07 18:08:19 -08:00
Tim Chevalier
fb9458e1ec
xfail broken tests
2013-01-07 18:05:18 -08:00
Tim Chevalier
86db69def2
Revert "xfail broken tests"
...
This reverts commit d771830c4c
.
2013-01-07 18:04:30 -08:00
Tim Chevalier
d771830c4c
xfail broken tests
2013-01-07 18:04:01 -08:00
Jed Davis
3e7ab3a443
Add a test for nullary univariant enums.
2013-01-05 00:49:01 -08:00
Tim Chevalier
9e2a59dc5d
Add xfailed test for #3707
2013-01-03 15:35:19 -08:00
Tim Chevalier
7b08ed02bb
Actually xfail this, unbreak build
2013-01-03 15:26:41 -08:00
Tim Chevalier
1330b1cdf5
Add test cases (one xfailed, one not)
...
as per #3601 and #3609
2013-01-03 14:55:51 -08:00
Ted Horst
af48f30542
use newtype struct for devnull rather than type aliased record
2013-01-02 15:35:32 -08:00
Ted Horst
7c79b5e434
really update mandelbrot to pipes
2013-01-02 15:35:32 -08:00
Patrick Walton
5245aceba9
test: Fix benchmarks. rs=rustbot
2012-12-28 19:57:18 -08:00
Patrick Walton
5bd8692e9d
test: Fix a bunch of compile-fail tests. rs=bustage
2012-12-28 19:36:35 -08:00
Patrick Walton
b92ea8dc78
test: Fix test/run-pass-fulldeps/qquote.rs. rs=bustage
2012-12-28 18:42:10 -08:00
Patrick Walton
19dfb47564
test: Fix test/run-pass/class-cast-to-trait-cross-crate-2. rs=fire
2012-12-28 18:04:41 -08:00
Patrick Walton
40eaecbd47
test: Fix a couple more tests. rs=bustage
2012-12-28 18:02:20 -08:00
Patrick Walton
c42d5e2747
test: Fix test/run-pass/pipe-pingpong-proto. rs=bustage
2012-12-28 17:33:28 -08:00
Patrick Walton
31b07ae8c5
test: Fix test/run-pass/pipe-pingpong-bounded. rs=bustage
2012-12-28 17:32:42 -08:00
Patrick Walton
f67c37263e
test: Fix a bunch of run-pass tests. rs=bustage
2012-12-28 17:17:05 -08:00
Tim Chevalier
a75c0b3b32
Merge pull request #4268 from catamorphism/issue-3477
...
Emit a type error for integer literals where the expected type is char
2012-12-28 13:05:58 -08:00
Tim Chevalier
c880d0ab76
Add an xfailed test case and a CONTRIBUTING.md file
2012-12-27 14:58:45 -08:00
Tim Chevalier
0873553680
Merge pull request #4298 from JensNockert/byteswap
...
Add support for byteswap intrinsics
2012-12-27 10:47:15 -08:00
Jens Nockert
a51661e8c1
Add support for byteswap intrinsics
...
Adds support for the llvm.bswap.i{8,16,32} intrinsics, which swaps the
byte order from little endian to big endian, or the reverse.
2012-12-27 19:07:05 +01:00
Patrick Walton
57c599914a
librustc: Terminate name searches at the nearest module scope for paths that contain at least two components. r=graydon
2012-12-27 10:02:54 -08:00
Erick Tryzelaar
efb8711f90
Merge branch 'master' of github.com:mozilla/rust into incoming
2012-12-27 10:34:27 -05:00
Tim Chevalier
c4720a73bb
Update shootout-mandelbrot to work with the new io::Writer
2012-12-24 18:29:02 -08:00
Ted Horst
d30224a3d4
update mandelbrot to pipes, a few other updates
2012-12-24 18:29:01 -08:00
Tim Chevalier
8d438747a5
Remove xfail-fast from trait-composition-trivial
2012-12-24 18:29:01 -08:00
Tim Chevalier
d722217a68
tests: Add test case. Closes #3250
2012-12-24 18:29:01 -08:00
Graydon Hoare
329316ce15
bump 0.5 => 0.6, redirect some URLs in docs.
2012-12-24 18:29:01 -08:00
Tim Chevalier
499a58708f
Assign correct types to struct-like enum variant constructors
...
Before, the type was just the enum type itself, which caused an
assertion failure in iter_variant in trans::base.
r=brson
Closes #4229
2012-12-24 15:59:15 -08:00
Tim Chevalier
7ce0d30b9b
Update shootout-mandelbrot to work with the new io::Writer
2012-12-24 13:29:36 -08:00
Tim Chevalier
8ec13a90aa
Merge pull request #4239 from tedhorst/mandpipe
...
update mandelbrot to pipes, a few other updates
2012-12-23 13:48:31 -08:00
Tim Chevalier
b1b0c297a4
Merge pull request #4249 from graydon/0.6-bump
...
bump 0.5 => 0.6, redirect some URLs in docs.
2012-12-23 13:47:11 -08:00
Ted Horst
2452ee11ab
update mandelbrot to pipes, a few other updates
2012-12-23 13:17:42 -06:00
Tim Chevalier
10e8e3e286
Remove xfail-fast from trait-composition-trivial
2012-12-23 00:24:07 -08:00
Tim Chevalier
65839fa622
Emit a type error for integer literals where the expected type is char
...
For example, in let x: char = 42; This was an ICE and is now a
proper type error, as per #3477
2012-12-22 15:58:05 -08:00
Tim Chevalier
5c6e928e32
tests: Add test case. Closes #3250
2012-12-22 14:58:30 -08:00
Graydon Hoare
dbd36111fe
bump 0.5 => 0.6, redirect some URLs in docs.
2012-12-21 15:35:49 -08:00
Jens Nockert
82641d4c39
Add support for bitcount intrinsics
...
Adds support for the llvm.ctpop, llvm.ctlz and llvm.cttz intrinsics.
2012-12-21 19:30:33 +01:00
Erick Tryzelaar
c14105bb8a
Remove serialize::traits submodule.
2012-12-19 18:16:20 -08:00
Erick Tryzelaar
938058b004
Fix vec::flat_map_to_vec method
2012-12-18 20:48:51 -08:00
Brian Anderson
97ddf3c7bd
Stop resolving static methods at the module level. Closes #4179
2012-12-18 18:35:18 -08:00
Graydon Hoare
8e28f23c60
core: add macro_rules! for "condition! { c: in -> out; }".
2012-12-18 17:22:27 -08:00
Brian Anderson
907fa74e8b
Fix some iter tests
2012-12-18 15:08:51 -08:00
Brian Anderson
d062896a8b
Deal with test failures in various ways
2012-12-18 14:35:53 -08:00
Brian Anderson
b46e25bdc8
Merge commit 'erickt/incoming^' into kind-names
2012-12-18 12:22:59 -08:00
Graydon Hoare
55138c739d
fix 4 repr tests due to differences in spacing. r=burningtree.
2012-12-18 11:17:33 -08:00
Erick Tryzelaar
85bb1fc2c4
Change iter::find's closure to take a ref
2012-12-17 22:01:38 -08:00
Erick Tryzelaar
3fc74df7a4
fix warnings in vec destructuring tests
2012-12-17 22:01:38 -08:00
Erick Tryzelaar
8650c6f683
Switch from serialization to std::serialize. (snapshot)
2012-12-17 20:00:36 -08:00
Brian Anderson
33a8f855c2
Make the path and path2 attributes equivalent. Remove some uses
2012-12-17 18:06:52 -08:00
Jakub Wieczorek
6c83fe4c24
Add more tests
2012-12-17 16:50:40 -08:00
Jakub Wieczorek
1968cb315a
Add support for destructuring vectors in match expressions
2012-12-17 16:50:40 -08:00
Patrick Walton
02e804bba8
test: Fix some broken test cases
2012-12-17 14:58:21 -08:00
Patrick Walton
ebd9ad4d04
librustc: Add a lint mode for deprecated self. r=brson
2012-12-14 19:46:55 -08:00
Patrick Walton
41c0d7083e
librustc: Fix type_use for generic newtype structs. Closes #4188 . rs=bugfix
2012-12-14 19:44:07 -08:00
Patrick Walton
8a9ccf81b0
librustc: Implement a lint mode for default methods. r=brson
2012-12-14 19:28:43 -08:00
Patrick Walton
99fa9c3cab
Revert "librustc: Implement a lint mode for default methods"
...
This reverts commit 53b181dd47
.
2012-12-14 19:13:59 -08:00
Patrick Walton
593f414254
test: Add a test for trait inheritance with self as a type parameter. rs=test-only
2012-12-14 19:12:29 -08:00
Patrick Walton
53b181dd47
librustc: Implement a lint mode for default methods
2012-12-14 19:07:20 -08:00