Commit graph

11869 commits

Author SHA1 Message Date
Eric Holk
9f287c211e Refcount tasks in packets to avoid races.
Revert "Once again, revert "Use pipes in compiletest""

Fixes #3098
2012-08-06 09:10:19 -07:00
Eric Holk
86947e47ad More documentation on pipes, and moving assert in runtime. 2012-08-06 09:07:40 -07:00
Brian Anderson
d8e9724fb1 syntax: Stop parsing alts without arrows 2012-08-05 22:10:34 -07:00
Brian Anderson
025d86624d Switch alts to use arrows 2012-08-05 22:08:09 -07:00
Brian Anderson
c9d2769379 doc: Update for alt arrows 2012-08-05 22:07:33 -07:00
Brian Anderson
3fe1c7071d std: Some fixes to url parsing 2012-08-05 16:33:28 -07:00
Brian Anderson
dbf58716df std: URLs without schemes parse as errors. Closes #3112 2012-08-05 13:48:29 -07:00
Brian Anderson
a52f6d26db Fix closure pretty-print tests 2012-08-04 17:41:04 -07:00
Brian Anderson
a60f9c76f5 xfail-fast run-pass/trait-composition-trivial 2012-08-04 17:37:30 -07:00
Patrick Walton
8c77536526 rustc: Normalize region-bounded string slices properly
This prevents an LLVM assertion that will bite you if you try to put a static
string in an Error.
2012-08-04 15:11:54 -07:00
Graydon Hoare
edfc79cc47 Translate const vecs, most of const slices. More for #2317. 2012-08-03 21:44:52 -07:00
Patrick Walton
f23674394f rustc: Merge fn& and fn in favor of fn&.
This is a step on the way to moving the function "proto" sigil out front.
2012-08-03 19:49:12 -07:00
Patrick Walton
51a5a4ad0e rustc: Translate repeated vector syntax 2012-08-03 18:49:44 -07:00
Graydon Hoare
488ece05b5 Implement &-expressions in consts. Part of #2317. 2012-08-03 18:07:58 -07:00
Patrick Walton
e02b1b1ec8 rustc: Parse and typecheck repeating vector expressions; e.g. [ 0, ..512 ] 2012-08-03 18:03:19 -07:00
Ben Blum
4174de8bb9 rt: expose rust_task refcounts to rustland 2012-08-03 21:00:23 -04:00
Ben Blum
f57760c609 Add task-perf-linked-failure.rs 2012-08-03 20:24:41 -04:00
Lindsey Kuper
fe2f3d210a Further work on default methods in traits.
And some trait-related code cleanup in typeck::collect.
2012-08-03 16:17:54 -07:00
Ben Blum
a98407ee34 vim: don't hilight "any" 2012-08-03 18:46:48 -04:00
Patrick Walton
e0ee2447bf libsyntax: Fix trailing whitespace 2012-08-03 15:24:34 -07:00
Eric Holk
739e83d859 Xfailing until the pipe race is fixed. 2012-08-03 15:22:33 -07:00
Eric Holk
618d311c3d Once again, revert "Use pipes in compiletest"
This reverts commit 1d04b0ed5a.
2012-08-03 15:22:01 -07:00
Patrick Walton
5012abde8f test: Add a trivial test that trait composition parses 2012-08-03 15:03:19 -07:00
Patrick Walton
b65dd9d090 rustc: Parse, serialize, and deserialize trait inheritance 2012-08-03 15:02:53 -07:00
Patrick Walton
a805a1fb37 rustc: Add the notion of inherited visibility 2012-08-03 15:02:53 -07:00
Ben Blum
0c623c4474 Document arc::exclusive. 2012-08-03 17:50:59 -04:00
Graydon Hoare
241085a073 Fix signed/unsigned bug, likely cause of windows crash. 2012-08-03 13:36:28 -07:00
Eric Holk
2c06e7aac9 Fixing failing test cases 2012-08-03 12:48:14 -07:00
Eric Holk
749a184a06 Fix a failing string test. 2012-08-03 12:04:19 -07:00
Eric Holk
01ca0d1f68 Be more defensive in pipes (#3098) 2012-08-03 12:04:18 -07:00
Patrick Walton
9e68966611 rustc: Remove fixed-length string warning 2012-08-03 12:03:15 -07:00
Patrick Walton
aa4683c181 test: Add a test case for bare static strings 2012-08-03 11:51:47 -07:00
Patrick Walton
4e60d7e3a6 rustc: "foo" is now a static string 2012-08-03 11:51:04 -07:00
Patrick Walton
4bfd4fb8ea test: Remove a fixed-length string from a test 2012-08-03 11:47:08 -07:00
Brian Anderson
903068c132 Long lines 2012-08-03 11:46:31 -07:00
Tim Chevalier
b0cf106e9a Test for issue 2904, which got fixed somewhere along the line 2012-08-03 11:39:39 -07:00
Brian Anderson
cfc78694cb Add Daniel Patterson to AUTHORS.txt 2012-08-03 11:29:21 -07:00
Daniel Patterson
7e43f8f8dc std::net::url - change alt to match, ret to return, as per recent syntax changes 2012-08-03 11:28:19 -07:00
Daniel Patterson
64eb497d34 std::net::url - eliminate out of date comment and switch to str::each_chari instead of str_reader to make code cleaner 2012-08-03 11:28:19 -07:00
Daniel Patterson
8e3105b6db std::net::url - fix to_str to work with authorityless urls, add test 2012-08-03 11:28:19 -07:00
Daniel Patterson
21187206c3 std::net::url cleanups for lint check 2012-08-03 11:28:19 -07:00
Daniel Patterson
b57f6b73ba std::net::url - making parsing of authority give error messages if in encounters invalid stuff; support for ipv6, more tests. 2012-08-03 11:28:19 -07:00
Daniel Patterson
d60dd6be87 std::net::url making scheme parsing compliant with rfc, give appropriate error messages, better split fn 2012-08-03 11:28:19 -07:00
Daniel Patterson
e349201bc2 std::net::url - comment cleanup, new test 2012-08-03 11:28:18 -07:00
Daniel Patterson
ef46314d1e std: integrating erickt's url encoding/decoding from github.com/erickt/rust-uri into std::net::url 2012-08-03 11:28:18 -07:00
Patrick Walton
dfe1f6260e rustc: Remove all fixed-length strings from our codebase 2012-08-03 11:22:35 -07:00
Eric Holk
b3933b8822 Adding a test case for #2548 2012-08-03 10:22:16 -07:00
Niko Matsakis
cc1a2f2128 fix compilation of 2214 2012-08-03 08:05:04 -07:00
Tim Chevalier
336be1d644 Fix build breakage 2012-08-02 23:53:45 -07:00
Tim Chevalier
948172b93f Make comparisons between region pointers work
Region pointers were considered a scalar type, so compare_scalar_type would
get called to compare region pointers in trans. This would fail, since
compare_scalar_type has no case for region pointers.

Changed type_is_scalar to return false for region pointers. This had the side
effect of breaking casts to types of the form &T. To ameliorate that, I added
library functions ptr::assimilate (taking a &T to a *T) and ptr::to_uint
(taking a &T to a uint), both of which use reinterpret_cast.

While I was at it, I removed ty::type_has_resources, which is dead code.
2012-08-02 23:53:45 -07:00