bors
5028ac7396
auto merge of #6863 : huonw/rust/error-span, r=thestinger
2013-05-31 07:43:49 -07:00
Huon Wilson
4f92d3a11c
rustc: adjust span for error message to not trim last letter
2013-06-01 00:39:02 +10:00
bors
030f471f26
auto merge of #6853 : bblum/rust/sized, r=pcwalton
...
r? @nikomatsakis @pcwalton
2013-05-31 02:01:44 -07:00
bors
6fcb483609
auto merge of #6848 : pcwalton/rust/issue-6352, r=pcwalton
...
r? @nikomatsakis
2013-05-30 23:31:48 -07:00
bors
3869f7a99c
auto merge of #6818 : nikomatsakis/rust/irrefut-patterns-refactoring, r=graydon
...
Various bug fixes and simplifications I did as part of a patch to fix `let` patterns.
r? @catamorphism
2013-05-30 19:04:52 -07:00
Ben Blum
5113f68a86
Add simple tests for Sized
2013-05-30 21:41:41 -04:00
Patrick Walton
40b455792d
librustc: Bump the offset when translating const structs. Closes #6352 .
2013-05-30 18:17:32 -07:00
Niko Matsakis
ce5fd30270
Fix parser test
2013-05-30 21:01:25 -04:00
Niko Matsakis
21951e503d
Correct issue-2804 test
2013-05-30 16:55:50 -04:00
Graydon Hoare
2bed5dc528
rustc: change 'use' to 'add' in error message, fix #2994
2013-05-30 13:45:53 -07:00
Niko Matsakis
5209709e46
Fix matching of rvalues with destructors
...
Fixes #4542 .
2013-05-30 15:20:36 -04:00
Björn Steinbrink
1720d9f663
Remove a bunch of unnecessary allocations and copies
2013-05-30 11:49:04 +02:00
Alex Crichton
4a5d887b58
Allow doc(hidden) and --test to disable doc linting
2013-05-30 01:02:55 -05:00
Alex Crichton
af995ce1e7
Make missing documentation linting more robust
...
Add some more cases for warning about missing documentation, and also add a test
to make sure it doesn't die in the future.
2013-05-30 01:02:55 -05:00
Patrick Walton
5fa788415f
test: Fix problem with check-fast. rs=burningtree
2013-05-29 21:21:33 -07:00
Patrick Walton
206ab89629
librustc: Stop reexporting the standard modules from prelude.
2013-05-29 19:04:53 -07:00
Patrick Walton
aeda178011
librustc: Redo the unsafe checker and make unsafe methods not callable from safe code
2013-05-29 19:04:50 -07:00
Niko Matsakis
bf1647c92a
Reconcile docs and code, adding examples and adding RESTR_CLAIM
2013-05-28 20:22:15 -04:00
Niko Matsakis
5851d3242c
Move checking for moves and initialization of local variables and patterns into
...
borrow checker and generalize what moves are allowed. Fixes a nasty
bug or two in the pattern move checking code. Unifies dataflow code
used for initialization and other things. First step towards
once fns. Everybody wins.
Fixes #4384 . Fixes #4715 . cc once fns (#2202 ), optimizing local moves (#5016 ).
2013-05-28 20:22:14 -04:00
bors
9a06ff0590
auto merge of #6707 : catamorphism/rust/issue-5543, r=catamorphism
2013-05-28 14:35:00 -07:00
Tim Chevalier
7ad1cc71e3
testsuite: Add main function to issue-5554 test
2013-05-28 13:43:10 -07:00
bors
c33258bee1
auto merge of #6773 : lkuper/rust/alt-to-match, r=thestinger
...
RIP `alt`.
2013-05-28 05:07:59 -07:00
Tim Chevalier
351f6033d6
testsuite: Update core to std
2013-05-27 17:32:32 -07:00
Tim Chevalier
403aee1082
testsuite: Test cases, one xfailed, one not
2013-05-27 17:32:32 -07:00
Tim Chevalier
58547d6488
testsuite: Add working test for #5550
2013-05-27 17:32:31 -07:00
Tim Chevalier
6c03fbfefd
testsuite: Add passing test for #4735
2013-05-27 17:32:31 -07:00
Lindsey Kuper
32c6199161
Change alt
to match
in filenames.
2013-05-27 17:28:39 -04:00
Lindsey Kuper
c9c4d92889
Add xfail'd test for #6762 .
2013-05-27 15:21:45 -04:00
gareth
76c31217be
Refactor core::run in order to address many of the issues
...
mentioned in #2625 .
This change makes the module more oriented around
Process values instead of having to deal with process ids
directly.
Apart from issues mentioned in #2625 , other changes include:
- Changing the naming to be more consistent - Process/process
is now used instead of a mixture of Program/program and
Process/process.
- More docs/tests.
Some io/scheduler related issues remain (mentioned in #2625 ).
2013-05-27 13:50:33 +01:00
bors
e2f8b51dc5
auto merge of #6722 : alexcrichton/rust/issue-4219-no-merge-hack, r=brson
...
Changes the int/uint modules to all use macros instead of using the `merge` attribute. It would be nice to have #4375 resolved as well for this, but that can probably come at a later date.
Closes #4219 .
2013-05-25 15:13:54 -07:00
bors
0628c92540
auto merge of #6726 : alexcrichton/rust/filter-blocks, r=z0w0
...
Among other things, this suppresses a spurious unused import warning in the compiler right now.
2013-05-24 21:25:54 -07:00
Alex Crichton
ac6c15aece
Actually filter view_items in blocks
2013-05-24 17:31:15 -05:00
Olivier Saut
f2125434d8
Remove the get function
...
Rust is now preferring methods over functions and there is no legacy with ARC
2013-05-24 22:51:24 +02:00
Alex Crichton
03ae629259
Remove the #[merge] hack from the parser
2013-05-24 15:32:06 -05:00
Brian Anderson
d213443a67
rustc: Check for null before dropping ~objects. #5192
2013-05-23 15:33:34 -07:00
Patrick Walton
3a66d732bb
libsyntax: Fix more merge fallout.
2013-05-22 21:57:11 -07:00
Patrick Walton
ee52865c88
test: Update tests and import the prelude in some more places.
2013-05-22 21:57:10 -07:00
Patrick Walton
1be40be613
test: Update tests to use the new syntax.
2013-05-22 21:57:10 -07:00
Patrick Walton
ebfc2b8e56
librustc: Rename core injection to std injection
2013-05-22 21:57:05 -07:00
Patrick Walton
565942b145
librustc: Fix privacy checking for cross-crate variants
2013-05-22 21:57:03 -07:00
Patrick Walton
db518ef68a
test: Fix tests.
2013-05-22 21:57:02 -07:00
Patrick Walton
ca9bb2d9ac
librustc: Disallow use
from reaching into impls or traits.
...
This can perhaps be restored in the future. For now this is a precursor to
making typedefs work as expected.
2013-05-22 21:57:02 -07:00
bors
1d3e84c5d6
auto merge of #6669 : yjh0502/rust/fix_6209, r=graydon
...
Fix issue #6209 , and some related issues about constant expression
- unmatched type between arms
- unmatched type in range
2013-05-22 18:01:36 -07:00
bors
f517ed0b08
auto merge of #6686 : cmr/rust/fix-6596, r=catamorphism
...
The error message is extremely unideal.
2013-05-22 16:22:35 -07:00
Corey Richardson
5118d2f84a
Add test
2013-05-22 19:19:00 -04:00
Tim Chevalier
1aae163d44
testsuite: Make main fn public
2013-05-22 14:13:42 -07:00
Tim Chevalier
fd94bd984e
testsuite: Add passing test for #4107
2013-05-22 14:13:22 -07:00
bors
4bbbae625d
auto merge of #6672 : yjh0502/rust/fix_6342, r=graydon
...
Fix #6342
2013-05-22 11:43:35 -07:00
Corey Richardson
e64339645b
Implement static_assert attribute
...
This verifies that a static item evaluates to true, at compile time.
2013-05-22 13:13:24 -04:00
Jihyun Yu
6c33f5044b
Fix #6342
2013-05-22 16:11:48 +09:00