about summary refs log tree commit diff
path: root/src/libcore
AgeCommit message (Collapse)AuthorLines
2015-01-29s/Show/Debug/gJorge Aparicio-23/+23
2015-01-29remove #[old_impl_check] now that #21363 has been fixedJorge Aparicio-4/+0
2015-01-29register snaphotsJorge Aparicio-12/+0
2015-01-29undo some conversionsJorge Aparicio-1/+1
2015-01-29remove unused importsJorge Aparicio-3/+2
2015-01-29convert remaining `range(a, b)` to `a..b`Jorge Aparicio-2/+2
2015-01-29`for x in range(a, b)` -> `for x in a..b`Jorge Aparicio-6/+6
sed -i 's/in range(\([^,]*\), *\([^()]*\))/in \1\.\.\2/g' **/*.rs
2015-01-29`range(a, b).foo()` -> `(a..b).foo()`Jorge Aparicio-3/+3
sed -i 's/ range(\([^,]*\), *\([^()]*\))\./ (\1\.\.\2)\./g' **/*.rs
2015-01-29Auto merge of #21730 - Manishearth:rollup, r=alexcrichtonbors-6/+0
Should clear our backlog of rollups from the queue
2015-01-29Auto merge of #21680 - japaric:slice, r=alexcrichtonbors-1/+1
Replaces `slice_*` method calls with slicing syntax, and removes `as_slice()` calls that are redundant due to `Deref`.
2015-01-29Rollup merge of 21663 - tbu-:pr_doc_cell_static_safety, r=alexcrichtonManish Goregaokar-6/+0
2015-01-28Merge remote-tracking branch 'origin/master' into rollupManish Goregaokar-1019/+1287
Conflicts: src/libcollections/slice.rs src/libcore/nonzero.rs src/libcore/ops.rs
2015-01-28Move return type an associated type of the `Fn*` traits. Mostly this ↵Niko Matsakis-6/+80
involves tweaking things in the compiler that assumed two input types to assume two ouputs; we also have to teach `project.rs` to project `Output` from the unboxed closure and fn traits.
2015-01-27Add an implementation of Zeroable for Unique<T>Jonathan Reem-0/+2
This allows the use of `NonZero<Unique<T>>` for owned, non-null raw pointers. cc https://github.com/Gankro/collect-rs/pull/103
2015-01-27Merge remote-tracking branch 'rust-lang/master'Brian Anderson-95/+220
Conflicts: src/libcore/cell.rs src/librustc_driver/test.rs src/libstd/old_io/net/tcp.rs src/libstd/old_io/process.rs
2015-01-28Rollup merge of #21658 - Manishearth:index_on_unimplemented, r=GankroManish Goregaokar-0/+2
Helps issues like [these](http://www.reddit.com/r/rust/comments/2tpefm/unable_to_access_array_elements/) r? @Gankro rollup-worthy
2015-01-27Rollup merge of #21602 - japaric:derive-copy, r=alexcrichtonManish Goregaokar-4/+2
2015-01-27Rollup merge of #21591 - GuillaumeGomez:hash, r=alexcrichtonManish Goregaokar-2/+2
Fixes #21547 issue.
2015-01-27cleanup: s/`v.slice*()`/`&v[a..b]`/g + remove redundant `as_slice()` callsJorge Aparicio-1/+1
2015-01-27Auto merge of #21586 - pyfisch:patch-1, r=alexcrichtonbors-2/+2
Spellfix for `Debug` trait documentation. Change "most all types should implement this" to "all types should implement this". Same fix for deprecated `Show` trait.
2015-01-27Auto merge of #21564 - steveklabnik:doc_cell, r=alexcrichtonbors-85/+209
2015-01-26Fallout of io => old_ioAlex Crichton-9/+9
2015-01-26Merge remote-tracking branch 'rust-lang/master'Brian Anderson-0/+1
Conflicts: src/librustc/lint/builtin.rs src/librustc/lint/context.rs
2015-01-27Add on_unimplemented note to IndexManish Goregaokar-0/+2
2015-01-26Remove comment about `UnsafeCell`s and `static`Tobias Bucher-6/+0
It has actually been safe to put an `UnsafeCell` into a non-mutable `static` since the `const` change.
2015-01-25Merge remote-tracking branch 'rust-lang/master'Brian Anderson-223/+270
Conflicts: src/libcore/cmp.rs src/libcore/fmt/mod.rs src/libcore/iter.rs src/libcore/marker.rs src/libcore/num/f32.rs src/libcore/num/f64.rs src/libcore/result.rs src/libcore/str/mod.rs src/librustc/lint/builtin.rs src/librustc/lint/context.rs src/libstd/sync/mpsc/mod.rs src/libstd/sync/poison.rs
2015-01-25Add a missing fmt::Debug impl lintSteven Fackler-0/+1
Closes #20855
2015-01-25cleanup: s/impl Copy/#[derive(Copy)]/gJorge Aparicio-4/+2
2015-01-25Auto merge of #21582 - FlaPer87:rollup, r=brsonbors-3/+12
- Successful merges: #21108, #21445, #21498, #21504, #21532, #21535, #21539, #21540, #21541, #21550, #21560, #21573, #21579 - Failed merges:
2015-01-25Merge remote-tracking branch 'rust-lang/master'Brian Anderson-581/+753
Conflicts: mk/tests.mk src/liballoc/arc.rs src/liballoc/boxed.rs src/liballoc/rc.rs src/libcollections/bit.rs src/libcollections/btree/map.rs src/libcollections/btree/set.rs src/libcollections/dlist.rs src/libcollections/ring_buf.rs src/libcollections/slice.rs src/libcollections/str.rs src/libcollections/string.rs src/libcollections/vec.rs src/libcollections/vec_map.rs src/libcore/any.rs src/libcore/array.rs src/libcore/borrow.rs src/libcore/error.rs src/libcore/fmt/mod.rs src/libcore/iter.rs src/libcore/marker.rs src/libcore/ops.rs src/libcore/result.rs src/libcore/slice.rs src/libcore/str/mod.rs src/libregex/lib.rs src/libregex/re.rs src/librustc/lint/builtin.rs src/libstd/collections/hash/map.rs src/libstd/collections/hash/set.rs src/libstd/sync/mpsc/mod.rs src/libstd/sync/mutex.rs src/libstd/sync/poison.rs src/libstd/sync/rwlock.rs src/libsyntax/feature_gate.rs src/libsyntax/test.rs
2015-01-25Auto merge of #21558 - alexcrichton:result-debug, r=aturonbors-5/+5
This commit relaxes the bound on `Result::unwrap` and `Result::unwrap_err` from the `Display` trait to the `Debug` trait for generating an error message about the unwrapping operation. This commit is a breaking change and any breakage should be mitigated by ensuring that `Debug` is implemented on the relevant type. [breaking-change]
2015-01-25Moving away from deprecated i/u suffixes in libcoreAlfie John-128/+128
2015-01-24Auto merge of #21488 - aturon:os-str, r=alexcrichtonbors-87/+125
Per [RFC 517](https://github.com/rust-lang/rfcs/pull/575/), this commit introduces platform-native strings. The API is essentially as described in the RFC. The WTF-8 implementation is adapted from @SimonSapin's [implementation](https://github.com/SimonSapin/rust-wtf8). To make this work, some encodign and decoding functionality in `libcore` is now exported in a "raw" fashion reusable for WTF-8. These exports are *not* reexported in `std`, nor are they stable.
2015-01-24Add ffi::OsString and OsStrAaron Turon-87/+125
Per [RFC 517](https://github.com/rust-lang/rfcs/pull/575/), this commit introduces platform-native strings. The API is essentially as described in the RFC. The WTF-8 implementation is adapted from @SimonSapin's [implementation](https://github.com/SimonSapin/rust-wtf8). To make this work, some encodign and decoding functionality in `libcore` is now exported in a "raw" fashion reusable for WTF-8. These exports are *not* reexported in `std`, nor are they stable.
2015-01-24Spellfix for Debug traitPyfisch-2/+2
Spellfix for `Debug` trait documentation. Change "most all types should implement this" to "all types should implement this". Same fix for deprecated `Show` trait.
2015-01-24Add Hash trait to NonZero typeGuillaumeGomez-2/+2
2015-01-24Rollup merge of #21445 - P1start:no-implemented, r=nikomatsakisFlavio Percoco Premoli-3/+12
2015-01-23grandfathered -> rust1Brian Anderson-614/+614
2015-01-23Deprecated attributes don't take 'feature' names and are paired with ↵Brian Anderson-39/+78
stable/unstable Conflicts: src/libcore/atomic.rs src/libcore/finally.rs src/test/auxiliary/inherited_stability.rs src/test/auxiliary/lint_stability.rs
2015-01-23std: Relax Result::unwrap() to DebugAlex Crichton-5/+5
This commit relaxes the bound on `Result::unwrap` and `Result::unwrap_err` from the `Display` trait to the `Debug` trait for generating an error message about the unwrapping operation. This commit is a breaking change and any breakage should be mitigated by ensuring that `Debug` is implemented on the relevant type. [breaking-change]
2015-01-23Set unstable feature names appropriatelyBrian Anderson-289/+289
* `core` - for the core crate * `hash` - hashing * `io` - io * `path` - path * `alloc` - alloc crate * `rand` - rand crate * `collections` - collections crate * `std_misc` - other parts of std * `test` - test crate * `rustc_private` - everything else
2015-01-23Improve libcore/cell.rs docsSteve Klabnik-85/+209
2015-01-23Auto merge of #21453 - Stebalien:exactsize, r=alexcrichtonbors-0/+15
Specifically: * Peekable * ByRef * Skip * Take * Fuse Fixes #20547
2015-01-23Auto merge of #21382 - tshepang:improve-iter-docs, r=alexcrichtonbors-236/+263
2015-01-23iter: miscellaneous improvementsTshepang Lekhonkhobe-236/+263
There are doc improvements as well as these conversions: - int/uint -> isize/usize - u/i -> us/is
2015-01-22Rollup merge of #21472 - steveklabnik:gh21469, r=huonwSteve Klabnik-0/+4
Fixes #21469.
2015-01-22Put #[staged_api] behind the 'staged_api' gateBrian Anderson-0/+1
2015-01-22core::marker: s/task/thread/P1start-3/+3
2015-01-22Add `#[rustc_on_unimplemented]` annotations to more traitsP1start-0/+9
2015-01-21Remove 'since' from unstable attributesBrian Anderson-284/+284