Commit Graph

331 Commits

Author SHA1 Message Date
Nick Desaulniers
4445b38df2 Remove die!, raplace invocations with fail! Issue #4524 pt 3 2013-02-13 17:01:32 -08:00
Ben Striegel
e6c82c0375 RIMOV core::vec
Also remove as many uses as possible of vec::cast_to_mut and
cast_from_mut
2013-02-13 12:48:24 -05:00
Niko Matsakis
ab2534974c Adjust borrow checker algorithm to address #4856 unsoundness,
and then adjust code to match. rs=unsound (will review post-landing)
2013-02-12 20:10:50 -08:00
Niko Matsakis
a32498d846 Make ~fn non-copyable, make &fn copyable, split barefn/closure types,
correct handling of moves for struct-record update.

Part of #3678.  Fixes #2828, #3904, #4719.
2013-02-07 05:53:30 -08:00
Nick Desaulniers
aee7929469 Replace most invocations of fail keyword with die! macro 2013-01-31 20:12:49 -08:00
Seo Sanghyeon
7b268e8316 Cleanup FIXMEs (#3488) 2013-01-31 19:23:18 +09:00
Patrick Walton
28ed9dc09e librustc: Long lines. rs=burning 2013-01-29 22:40:13 -08:00
Patrick Walton
0c1d9befb3 librustc: Speed up byte copy operations. r=nmatsakis 2013-01-29 22:15:06 -08:00
Daniel Micay
e4337a9def remove remaining is_not_empty functions/methods 2013-01-24 23:24:57 -05:00
Daniel Micay
ec3f6e1932 implement Mutable trait for vec 2013-01-24 23:10:14 -05:00
Daniel Micay
d95c9cbe38 replace ConstVector trait with the Container trait 2013-01-24 23:02:44 -05:00
Erick Tryzelaar
e4d4a1499b convert most of libcore records into structs 2013-01-24 16:24:30 -08:00
Patrick Walton
ad25e208ee librustc: Allow &mut to be loaned; allow self to be loaned; make &mut loanable to &. r=nmatsakis 2013-01-24 13:52:22 -08:00
Patrick Walton
54b2cad8b3 libsyntax: Remove fn() unsafe { ... }. r=graydon 2013-01-23 14:41:08 -08:00
Trinick
9dc8e96c5f core: Rename to_mut and from_mut to cast_to_mut and cast_from_mut 2013-01-23 10:09:45 +00:00
Tim Chevalier
143039ca43 docs: Fix typo 2013-01-21 19:50:38 -08:00
William Ting
60184d12b6 Update documentation with examples for various int, vec methods.
add int::range(), remainder() examples
add vec::foldl(), foldr() examples

tweak
2013-01-21 19:50:38 -08:00
Chris Peterson
a8ff9f2ef9 Rename copy_overlapping_memory() to copy_memory() 2013-01-18 14:38:46 -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
Brian Anderson
0ca369e9dc Merge pull request #4485 from sanxiyn/use-truncate
Use vec::truncate for vec::retain
2013-01-14 14:11:26 -08:00
Seo Sanghyeon
e368b16f82 Use vec::truncate for vec::retain 2013-01-14 19:45:08 +09:00
Seo Sanghyeon
23b130441a Add a test for vec::retain 2013-01-14 17:38:15 +09:00
Tim Chevalier
62d1db1d6c Long lines 2013-01-13 16:34:54 -08:00
Tim Chevalier
26334b64a2 Merge pull request #4411 from wting/4203_rename_memcpy
Rename memcpy, memmove, memset
2013-01-13 14:58:24 -08:00
Jed Davis
1b01629f18 Make vectors (& old ports) of zero-size types allocate one byte each. 2013-01-13 14:37:59 -08:00
Patrick Walton
ca71c6ec5b librustc: Make all external functions unsafe. r=tjc 2013-01-10 21:24:08 -08:00
Tim Chevalier
90a0dd4008 core: Change XXXs into proper FIXMEs with issue numbers 2013-01-10 15:35:41 -08:00
William Ting
5cfde77bca Rename memcpy, memmove, memset to prevent any confusion with the C equivalents.
Closes #4203.
2013-01-10 01:24:41 -06:00
Graydon Hoare
6644da5805 core: fix crashing vec methods due to non-working moved self. 2013-01-09 17:21:21 -08:00
Graydon Hoare
9b8c04e236 core: ignore recent should_fail tests on windows 2013-01-09 09:26:59 -08:00
Erick Tryzelaar
c766924f44 core: add vec.filter that moves elems out of the vector 2013-01-09 08:55:37 -08:00
Erick Tryzelaar
2891a49f0d core: rename vec.filter to vec.filtered 2013-01-09 08:55:37 -08:00
Erick Tryzelaar
9a7e261562 core: add vec.partition and vec.partitioned 2013-01-09 08:55:37 -08:00
Erick Tryzelaar
c55787d009 core: add a vec.consume method 2013-01-09 08:55:37 -08:00
Erick Tryzelaar
8f9a507973 core: add self to all vec methods 2013-01-09 08:55:37 -08:00
Erick Tryzelaar
dc7183ed0e core: rename MutableVector to OwnedVector 2013-01-09 08:55:37 -08:00
Erick Tryzelaar
d1b7d44b8c core: inline all vec methods and add whitespace 2013-01-09 08:55:37 -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
asdf
dd73dd0e37 removing checks from vec::bytes::memcpy and memmove as are duplicated from raw:: 2013-01-08 13:25:23 -08:00
asdf
4096c9f25f adding bound checks for raw::memcpy and memmove 2013-01-08 13:25:23 -08:00
Tim Chevalier
89acd1f57f Rename option::get_default => get_or_default, get_zero => get_or_zero 2013-01-04 16:01:26 -08:00
Tim Chevalier
cef153947d Long lines 2012-12-28 13:35:15 -08:00
Tim Chevalier
7af1080f5e Merge pull request #4308 from steveklabnik/patch-1
Improve documentation for each.
2012-12-28 11:52:16 -08:00
Steve Klabnik
5ec3aba8cc Improve documentation for each.
Add description of arguments, and an example.
2012-12-28 01:12:28 -05:00
Patrick Walton
e26ca35b08 librustc: Fix the test runner, the condition system, and core test. rs=bustage 2012-12-27 17:53:04 -08: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
938058b004 Fix vec::flat_map_to_vec method 2012-12-18 20:48:51 -08:00
Erick Tryzelaar
85bb1fc2c4 Change iter::find's closure to take a ref 2012-12-17 22:01:38 -08:00