about summary refs log tree commit diff
path: root/src/libextra/time.rs
AgeCommit message (Collapse)AuthorLines
2013-08-19Add externfn macro and correctly label fixed_stack_segmentsNiko Matsakis-0/+12
2013-08-16Implement Clone and DeepClone for time types.Chris Morgan-2/+2
2013-08-09Merge remote-tracking branch 'remotes/origin/master' into ↵Erick Tryzelaar-3/+0
remove-str-trailing-nulls
2013-08-09Remove redundant Ord method impls.OGINO Masanori-3/+0
Basically, generic containers should not use the default methods since a type of elements may not guarantees total order. str could use them since u8's Ord guarantees total order. Floating point numbers are also broken with the default methods because of NaN. Thanks for @thestinger. Timespec also guarantees total order AIUI. I'm unsure whether extra::semver::Identifier does so I left it alone. Proof needed. Signed-off-by: OGINO Masanori <masanori.ogino@gmail.com>
2013-08-08Merge remote-tracking branch 'remotes/origin/master' into ↵Erick Tryzelaar-2/+2
remove-str-trailing-nulls
2013-08-07Forbid `priv` where it has no effectAlex Crichton-2/+2
This is everywhere except struct fields and enum variants.
2013-08-04Merge remote-tracking branch 'remotes/origin/master' into str-remove-nullErick Tryzelaar-5/+5
2013-08-04extra: make sure time::match_digits does not read past the end of the strErick Tryzelaar-7/+11
2013-08-03remove obsolete `foreach` keywordDaniel Micay-5/+5
this has been replaced by `for`
2013-08-02librustc: Disallow "unsafe" for external functionsPatrick Walton-10/+7
2013-08-01migrate many `for` loops to `foreach`Daniel Micay-7/+5
2013-07-30Added str::char_offset_iter() and str::rev_char_offset_iter()Marvin Löbel-1/+1
Renamed bytes_iter to byte_iter to match other iterators Refactored str Iterators to use DoubleEnded Iterators and typedefs instead of wrapper structs Reordered the Iterator section Whitespace fixup Moved clunky `each_split_within` function to the one place in the tree where it's actually needed Replaced all block doccomments in str with line doccomments
2013-07-27to_either + fixesErick Tryzelaar-4/+4
2013-07-23std: remove str::to_owned and str::raw::slice_bytes_ownedErick Tryzelaar-1/+1
2013-07-20librustc: Remove `pub extern` and `priv extern` from the language.Patrick Walton-1/+1
Place `pub` or `priv` on individual items instead.
2013-07-17librustc: Remove all uses of "copy".Patrick Walton-2/+2
2013-07-08 Replaces the free-standing functions in f32, &c.Jens Nockert-3/+3
The free-standing functions in f32, f64, i8, i16, i32, i64, u8, u16, u32, u64, float, int, and uint are replaced with generic functions in num instead. If you were previously using any of those functions, just replace them with the corresponding function with the same name in num. Note: If you were using a function that corresponds to an operator, use the operator instead.
2013-07-01rustc: add a lint to enforce uppercase statics.Huon Wilson-4/+4
2013-06-29Great renaming: propagate throughout the rest of the codebaseCorey Richardson-10/+9
2013-06-28librustc: Remove the broken overloaded assign-ops from the language.Patrick Walton-1/+1
They evaluated the receiver twice. They should be added back with `AddAssign`, `SubAssign`, etc., traits.
2013-06-23auto merge of #7258 : huonw/rust/7256, r=bstriebors-0/+3
2013-06-23vec: remove BaseIter implementationDaniel Micay-8/+12
I removed the `static-method-test.rs` test because it was heavily based on `BaseIter` and there are plenty of other more complex uses of static methods anyway.
2013-06-21extra: Add a testcase for #7256.Huon Wilson-0/+3
2013-06-21Remove all #[cfg(stage0)]-protected codeJames Miller-1/+1
New snapshot means this can all go. Also removes places that have comments that say they are workarounds for stage0 errors.
2013-06-14add IteratorUtil to the preludeDaniel Micay-1/+0
2013-06-13Revert "std: convert {vec,str}::to_owned to methods."Brian Anderson-1/+1
This fixes the strange random crashes in compile-fail tests. This reverts commit 96cd61ad034cc9e88ab6a7845c3480dbc1ea62f3. Conflicts: src/librustc/driver/driver.rs src/libstd/str.rs src/libsyntax/ext/quote.rs
2013-06-12std: convert {vec,str}::to_owned to methods.Huon Wilson-1/+1
2013-06-10std: convert str::char_at* to methods.Huon Wilson-5/+5
2013-06-10std: convert str::reserve* to methods, and methodise str::push_*.Huon Wilson-1/+1
2013-06-10std: remove str::{len, slice, is_empty} in favour of methods.Huon Wilson-3/+3
2013-06-09cmp: remove duplicate free functionsDaniel Micay-20/+18
2013-06-09std: replace the str::each* fns/methods with byte iteratorsHuon Wilson-1/+2
2013-06-01Remove all uses of `pub impl`. rs=stylePatrick Walton-11/+11
2013-05-30Remove copy bindings from patterns.Niko Matsakis-6/+8
2013-05-30Remove a bunch of unnecessary allocations and copiesBjörn Steinbrink-3/+3
2013-05-30libextra: Require documentation by defaultAlex Crichton-0/+2
2013-05-29librustc: Stop reexporting the standard modules from prelude.Patrick Walton-0/+5
2013-05-28Silence various warnings throughout test modulesAlex Crichton-2/+2
2013-05-27Increment copyright year of time.rsDaniel Farina-1/+1
2013-05-27Use passing by-value in gmtime, mktimeDaniel Farina-9/+8
Per the recommendation of the now-removed FIXME.
2013-05-23cleanup warnings from libextraErick Tryzelaar-94/+94
2013-05-22libextra: Rename the actual metadata names of libcore to libstd and libstd ↵Patrick Walton-0/+2
to libextra
2013-05-22libstd: Rename libcore to libstd and libstd to libextra; update makefiles.Patrick Walton-0/+1268
This only changes the directory names; it does not change the "real" metadata names.