Alex Crichton
998fececd6
Stop using the '<->' operator
2013-05-10 22:51:06 -04:00
Alex Crichton
3ce9dba677
std: Use the new for
protocol
2013-05-10 02:46:18 -04:00
Brian Anderson
ccc4c1a5e0
std: Replace Durable with 'static
2013-05-07 15:30:40 -07:00
Brian Anderson
8081e8debf
Register snapshots
2013-05-04 15:43:51 -07:00
Felix S. Klock II
a636f5160a
More cases of [cfg(test)] instead of [test].
2013-05-02 08:55:08 +02:00
Daniel Micay
f792baba42
only use #[no_core] in libcore
2013-04-27 21:34:24 -04:00
Alex Crichton
7d317fe7e5
std: remove unused 'mut' variables
2013-04-20 21:03:24 -04:00
Niko Matsakis
03396473b8
libstd: changes to in response to #5656
2013-04-10 17:32:03 -07:00
Erick Tryzelaar
909d8f0eac
std: Add Deque::eachi and a Deque serializer support
2013-03-29 18:02:44 -07:00
Patrick Walton
1e91595520
librustc: Remove fail_unless!
2013-03-29 16:39:08 -07:00
Patrick Walton
8b56a8380b
librustc: Modify all code to use new lifetime binder syntax
2013-03-26 21:30:17 -07:00
Patrick Walton
85c9fc6f8f
librustc: Remove the const
declaration form everywhere
2013-03-22 22:24:35 -07:00
Patrick Walton
c1084091d4
libstd: Remove all uses of pure
from libstd. rs=depure
2013-03-22 10:29:17 -07:00
Patrick Walton
4634f7edae
librustc: Remove all uses of static
from functions. rs=destatic
2013-03-22 10:27:39 -07:00
Andrew Paseltiner
4055fe83f6
std: replace uses of old deriving attribute with new one
2013-03-22 06:24:19 -04:00
Daniel Micay
b2060174d4
deque: add a module docstring
2013-03-21 19:14:02 -04:00
Patrick Walton
e78f2e2ac5
librustc: Make the compiler ignore purity.
...
For bootstrapping purposes, this commit does not remove all uses of
the keyword "pure" -- doing so would cause the compiler to no longer
bootstrap due to some syntax extensions ("deriving" in particular).
Instead, it makes the compiler ignore "pure". Post-snapshot, we can
remove "pure" from the language.
There are quite a few (~100) borrow check errors that were essentially
all the result of mutable fields or partial borrows of `@mut`. Per
discussions with Niko I think we want to allow partial borrows of
`@mut` but detect obvious footguns. We should also improve the error
message when `@mut` is erroneously reborrowed.
2013-03-18 17:21:16 -07:00
Patrick Walton
352c070365
librustc: Convert all uses of old lifetime notation to new lifetime notation. rs=delifetiming
2013-03-18 17:21:14 -07:00
Daniel Micay
b3ee49c7e2
deque: add documentation
2013-03-15 14:05:27 -04:00
Brian Anderson
82f190355b
Remove uses of log
2013-03-11 23:19:42 -07:00
Patrick Walton
d7e74b5e91
librustc: Convert all uses of assert
over to fail_unless!
2013-03-07 22:37:57 -08:00
Alex Crichton
dfb5c10dea
Remove unused imports throughout src/
2013-03-04 12:27:01 -05:00
Alex Crichton
2df07ddc25
Fix implicit leaks of imports throughout libraries
...
Also touch up use of 'pub' and move some tests around so the tested functions
don't have to be 'pub'
2013-02-28 18:00:34 -05:00
Patrick Walton
107bf96ff0
librustc: Mark all type implementations public. rs=impl-publicity
2013-02-28 11:32:24 -08:00
Patrick Walton
bf2a225c0b
librustc: Separate most trait bounds with '+'. rs=plussing
2013-02-20 21:14:20 -08:00
Daniel Micay
6956e81c9b
vec: grow_fn doesn't require Copy
2013-02-17 14:09:09 -05:00
Daniel Micay
8b38e07f24
deque: get rid of Copy requirement
...
Closes #3748
2013-02-16 21:35:09 -05:00
Daniel Micay
5aa0463564
deque: avoid Copy in grow
2013-02-16 21:34:09 -05:00
Daniel Micay
a257329071
deque: avoid Copy for get
2013-02-16 20:51:04 -05:00
Daniel Micay
6190661018
deque: avoid Copy in pop_{front,back}
2013-02-16 19:44:58 -05:00
Daniel Micay
373c072e83
deque: avoid Copy in peek_{front,back}
2013-02-16 19:10:10 -05:00
Daniel Micay
5929f15999
deque: avoid Copy in the get function
2013-02-16 19:05:27 -05:00
Daniel Micay
5832fe968f
deque: separate the methods that need Copy
2013-02-16 19:00:51 -05:00
Daniel Micay
15879d3f74
deque: rm old return statements
2013-02-16 18:57:45 -05:00
Daniel Micay
ed7c9c4e2a
add a Mutable implementation (clear) to std::deque
2013-02-16 18:57:01 -05:00
Daniel Micay
b47e1e9eda
modernize std::deque
...
* use a proper exported data type with private fields
* implement core::container::Container
* use the current constructor convention
* use explicit self
* get rid of DVec and the mutable fields
Closes #2343
2013-02-16 18:20:54 -05:00
Luqman Aden
4cf51c2531
libstd: Get rid of move
.
2013-02-15 02:49:54 -08:00
Patrick Walton
9143688197
librustc: Replace impl Type : Trait
with impl Trait for Type
. rs=implflipping
2013-02-14 14:44:12 -08:00
Nick Desaulniers
4445b38df2
Remove die!, raplace invocations with fail! Issue #4524 pt 3
2013-02-13 17:01:32 -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
Patrick Walton
eb4d39e1fe
libstd: Remove "dual impls" from the language and enforce coherence rules. r=brson
...
"Dual impls" are impls that are both type implementations and trait
implementations. They can lead to ambiguity and so this patch removes them
from the language.
This also enforces coherence rules. Without this patch, records can implement
traits not defined in the current crate. This patch fixes this, and updates
all of rustc to adhere to the new enforcement. Most of this patch is fixing
rustc to obey the coherence rules, which involves converting a bunch of records
to structs.
2013-01-29 10:42:45 -08:00
Erick Tryzelaar
e84576b888
convert most of libstd over to structs
2013-01-24 16:24:31 -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
Patrick Walton
fa5ee934ed
libstd: Fix a bunch of resolve errors in tests. rs=fire
2012-12-27 18:24:18 -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
Brian Anderson
a277081ee4
Rename Owned trait to Durable
2012-12-13 15:52:50 -08:00
Graydon Hoare
00c856c0b1
Update license, add license boilerplate to most files. Remainder will follow.
2012-12-03 17:12:14 -08:00