Commit Graph

12684 Commits

Author SHA1 Message Date
Niko Matsakis
9cf271fe96 De-mode vec::each() and many of the str iteration routines
Note that the method foo.each() is not de-moded, nor the other
vec routines.
2012-09-19 10:52:59 -07:00
Elliott Slaughter
62b7f4d800 Add Elliott Slaughter to authors. 2012-09-19 09:14:28 -07:00
Erick Tryzelaar
da568baea9 libcore: unsafe mod renamed to cast 2012-09-19 08:26:53 -07:00
Niko Matsakis
53abb5edbd use && for fn() even in legacy mode to work around mem leak 2012-09-19 06:56:29 -07:00
Niko Matsakis
8d4928f780 Revert "replace explicit calls to vec::each with vec::each_ref, partially demode str"
This reverts commit 1be24f0758.

Not quite ready.
2012-09-18 21:41:13 -07:00
Niko Matsakis
1be24f0758 replace explicit calls to vec::each with vec::each_ref, partially demode str 2012-09-18 21:31:00 -07:00
Brian Anderson
e17a3b3194 cargo: Fix copies 2012-09-18 21:20:14 -07:00
Brian Anderson
2906f2de31 core: Rename 'unsafe' mod to 'cast' 2012-09-18 19:36:25 -07:00
Brian Anderson
77480e8e44 xfail two tests from the manual 2012-09-18 19:33:36 -07:00
Brian Anderson
a9fea86970 Tweak graph500-bfs so it pretty-prints 2012-09-18 19:25:59 -07:00
Brian Anderson
a005b1af60 Fix some broken tests 2012-09-18 18:49:23 -07:00
Brian Anderson
be490c7f81 Fix run-pass-fulldeps/qquote.rs 2012-09-18 18:46:45 -07:00
Brian Anderson
b3b1e62750 rustdoc: Camel case 2012-09-18 16:48:58 -07:00
Graydon Hoare
e86e8c16e6 Revert "change relative priority of auto-slice and auto-ptr"
This reverts commit 2ac64d91ac.
2012-09-18 16:41:51 -07:00
Graydon Hoare
9b58369f6b Treat static slices and rptrs as sendable. 2012-09-18 16:28:16 -07:00
Patrick Walton
e653d493fb rustc: Remove legacy mode inference, unless #[legacy_modes] is used 2012-09-18 15:53:04 -07:00
Brian Anderson
d53cfd225a core: Move Exclusive and SharedMutableState to the private mod 2012-09-18 15:23:57 -07:00
Niko Matsakis
2ac64d91ac change relative priority of auto-slice and auto-ptr
rationale: if you have an impl for &const ~[T] or &mut ~[T]
and one for &[T], the first will be more likely to work and not lead
to borrowck errors.  I could imagine us wanting to offer multiple
impls for methods we select the ptr-to-array when possible and
the slice when necessary.  Also, taking a ptr seems like fewer
adaptations than slicing, and we tend to prefer fewer adaptations.
2012-09-18 14:24:52 -07:00
Erick Tryzelaar
e3f5403052 libcore: str::unsafe::from_buf_len_nocopy => form_slice 2012-09-18 12:56:57 -07:00
Erick Tryzelaar
d0d68c6036 libcore: make a copyless io::BytesWriter 2012-09-18 12:56:57 -07:00
Brian Anderson
eb35039fe8 Change 'must' to 'should' in non_camel_case_types message 2012-09-18 12:18:00 -07:00
Brian Anderson
5e9d38ede0 Remove 'unchecked' from docs 2012-09-18 11:57:57 -07:00
Brian Anderson
76c8b83efa Consolidate tests for non_camel_case_types 2012-09-18 11:56:08 -07:00
Brian Anderson
6473cf1757 docs: Remove elipses from examples instead of commenting them out
This causes bugs since comments aren't nestable
2012-09-18 11:54:45 -07:00
Brian Anderson
2d11a04e74 libsyntax: Remove 'unchecked_blk' from AST 2012-09-18 11:51:17 -07:00
Patrick Walton
c755449fd6 Revert "rustc: Change all non-keyword uses of "link""
This reverts commit 3b013cd800.
2012-09-18 11:47:04 -07:00
Brian Anderson
150acd26b2 docs: Doc tests may use elipses 2012-09-18 11:41:06 -07:00
Brian Anderson
d0d8b7fe64 Remove 'unchecked' keyword 2012-09-18 11:31:58 -07:00
Brian Anderson
2cdb23bbc0 Replace uses of 'unchecked' with 'unsafe' 2012-09-18 11:31:57 -07:00
Niko Matsakis
efa6675f1d make filetype() include the "." (fixes #3412) 2012-09-18 11:29:53 -07:00
Patrick Walton
3b013cd800 rustc: Change all non-keyword uses of "link" 2012-09-18 11:27:37 -07:00
Brian Anderson
859a892eb0 Add allow(non_camel_case_types) to unconverted crates 2012-09-18 11:21:07 -07:00
Brian Anderson
5c18bf6cdd core: Rename at_vec::unsafe to raw 2012-09-18 11:19:17 -07:00
Graydon Hoare
ae86db0d93 Fix doc test glitch. 2012-09-18 11:16:19 -07:00
Niko Matsakis
1af4a70759 Revert "Adapt callee to avoid intermediary for move/copy arguments (cc #3402)"
This reverts commit 044fbea416.
2012-09-18 10:41:05 -07:00
Brian Anderson
f563c0b525 warn(non_camel_case_types) by default 2012-09-17 18:52:50 -07:00
Brian Anderson
008bb6fe06 Mention fat arrow arms in release notes 2012-09-17 16:04:28 -07:00
Patrick Walton
409bc6fc2c libcore: Fix cleanup for i386 2012-09-17 12:01:24 -07:00
Niko Matsakis
2469cba0b1 Make auto-slice, auto-ptr not exclusive (fixes #3514) 2012-09-17 11:00:50 -07:00
Niko Matsakis
527a6f60f1 WIP: make autoslice, autoptr not be mutually exclusive 2012-09-17 09:49:53 -07:00
Niko Matsakis
48496fc1b6 add a test and correct terminology
newtype'd enums have 1 variant, and 1 field.
denegerate have only 1 variant but may have more fields.
2012-09-17 06:34:36 -07:00
Patrick Walton
be162da961 libcore: Log newtyped enums correctly. Closes #3506. 2012-09-16 09:28:21 -07:00
Brian Anderson
2018cd912c Update keywords in codemirror-rust.js 2012-09-15 19:06:19 -07:00
Brian Anderson
78525299d5 docs: Don't mention unsafe pointers 2012-09-15 19:03:07 -07:00
Brian Anderson
5e5b107306 docs: Bump tarball versions in tutorial 2012-09-15 18:55:06 -07:00
Brian Anderson
65cdfa4a21 docs: Modernize tutorial snippets 2012-09-15 18:44:44 -07:00
Brian Anderson
da5033f991 Make a few more borrowed pointer tutorial examples pass 2012-09-15 18:24:04 -07:00
Brian Anderson
864cca14ee docs: Make supplemental tutorials testable 2012-09-15 18:06:20 -07:00
Brian Anderson
82e79f765c docs: Add Niko's borrowed pointers tutorial 2012-09-15 17:09:21 -07:00
Erick Tryzelaar
d0d84348ef Make most send_map functions pure 2012-09-15 13:38:41 -07:00