Jorge Aparicio
a65d3f5b98
core: add the IntoIterator trait
2015-01-30 10:36:31 -05:00
bors
3fbfad3519
Auto merge of #21604 - nikomatsakis:closure-move-indiv-vars, r=eddyb
...
r? @eddyb
2015-01-30 15:32:27 +00:00
Niko Matsakis
a962bdb3da
Use #[rustc_paren_sugar] as a more extensible way of deciding when
...
paren sugar is legal.
2015-01-30 05:57:57 -05:00
Brian Anderson
03b9995be9
Register snaps
2015-01-29 15:02:00 -08:00
Nick Cameron
023d49e347
Change from core::ops::RangeFull to std::ops
2015-01-30 12:01:08 +13:00
Nick Cameron
bf2b473816
Rename FullRange to RangeFull
2015-01-30 12:01:08 +13:00
Nick Cameron
c64a96d385
Remove FullRange from the prelude etc.
2015-01-30 12:00:20 +13:00
Nick Cameron
a9d465fec9
Use absolute path to FullRange, rather than assuming it is in the prelude
...
Closes #21263
[breaking-change]
If you are using `core::ops::FullRange` you should change to using `core::ops::RangeFull`
2015-01-30 12:00:20 +13:00
bors
265a23320d
Auto merge of #21677 - japaric:no-range, r=alexcrichton
...
Note: Do not merge until we get a newer snapshot that includes #21374
There was some type inference fallout (see 4th commit) because type inference with `a..b` is not as good as with `range(a, b)` (see #21672 ).
r? @alexcrichton
2015-01-29 16:28:52 +00:00
Jorge Aparicio
788181d405
s/Show/Debug/g
2015-01-29 07:49:02 -05:00
Jorge Aparicio
09ba9f5c87
remove #[old_impl_check] now that #21363 has been fixed
2015-01-29 07:49:02 -05:00
Jorge Aparicio
92e966e099
register snaphots
2015-01-29 07:49:02 -05:00
Jorge Aparicio
16a2503a1c
undo some conversions
2015-01-29 07:49:02 -05:00
Jorge Aparicio
3cc191e58a
remove unused imports
2015-01-29 07:49:01 -05:00
Jorge Aparicio
efc97a51ff
convert remaining range(a, b) to a..b
2015-01-29 07:49:01 -05:00
Jorge Aparicio
7d661af9c8
for x in range(a, b) -> for x in a..b
...
sed -i 's/in range(\([^,]*\), *\([^()]*\))/in \1\.\.\2/g' **/*.rs
2015-01-29 07:47:37 -05:00
Jorge Aparicio
c300d681bd
range(a, b).foo() -> (a..b).foo()
...
sed -i 's/ range(\([^,]*\), *\([^()]*\))\./ (\1\.\.\2)\./g' **/*.rs
2015-01-29 07:46:44 -05:00
bors
3d6f5100af
Auto merge of #21730 - Manishearth:rollup, r=alexcrichton
...
Should clear our backlog of rollups from the queue
2015-01-29 11:28:30 +00:00
bors
bedd8108dc
Auto merge of #21680 - japaric:slice, r=alexcrichton
...
Replaces `slice_*` method calls with slicing syntax, and removes `as_slice()` calls that are redundant due to `Deref`.
2015-01-29 05:47:21 +00:00
Manish Goregaokar
518ce538a9
Rollup merge of 21663 - tbu-:pr_doc_cell_static_safety, r=alexcrichton
2015-01-29 03:15:25 +05:30
Manish Goregaokar
c709ed2faf
Merge remote-tracking branch 'origin/master' into rollup
...
Conflicts:
src/libcollections/slice.rs
src/libcore/nonzero.rs
src/libcore/ops.rs
2015-01-28 23:31:03 +05:30
Niko Matsakis
07cdb85331
Move return type an associated type of the Fn* traits. Mostly this 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-28 05:15:23 -05:00
Jonathan Reem
83f8088108
Add an implementation of Zeroable for Unique<T>
...
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-27 18:17:04 -05:00
Brian Anderson
7122305053
Merge remote-tracking branch 'rust-lang/master'
...
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-27 15:05:04 -08:00
Manish Goregaokar
28b0271f89
Rollup merge of #21658 - Manishearth:index_on_unimplemented, r=Gankro
...
Helps issues like [these](http://www.reddit.com/r/rust/comments/2tpefm/unable_to_access_array_elements/ )
r? @Gankro
rollup-worthy
2015-01-28 04:32:20 +05:30
Manish Goregaokar
51ff9e82ec
Rollup merge of #21602 - japaric:derive-copy, r=alexcrichton
2015-01-27 22:24:02 +05:30
Manish Goregaokar
e7bcb27939
Rollup merge of #21591 - GuillaumeGomez:hash, r=alexcrichton
...
Fixes #21547 issue.
2015-01-27 22:24:02 +05:30
Jorge Aparicio
bce81e2464
cleanup: s/v.slice*()/&v[a..b]/g + remove redundant as_slice() calls
2015-01-27 09:03:06 -05:00
bors
777435990e
Auto merge of #21586 - pyfisch:patch-1, r=alexcrichton
...
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-27 14:03:06 +00:00
bors
e365e4c054
Auto merge of #21564 - steveklabnik:doc_cell, r=alexcrichton
2015-01-27 08:40:39 +00:00
Alex Crichton
3a07f859b8
Fallout of io => old_io
2015-01-26 16:01:16 -08:00
Brian Anderson
5a6fb8eb98
Merge remote-tracking branch 'rust-lang/master'
...
Conflicts:
src/librustc/lint/builtin.rs
src/librustc/lint/context.rs
2015-01-26 15:42:32 -08:00
Manish Goregaokar
6a90eca8fc
Add on_unimplemented note to Index
2015-01-27 02:19:52 +05:30
Tobias Bucher
cbcb191b97
Remove comment about UnsafeCells and static
...
It has actually been safe to put an `UnsafeCell` into a non-mutable `static`
since the `const` change.
2015-01-26 17:45:21 +01:00
Brian Anderson
d179ba3b8e
Merge remote-tracking branch 'rust-lang/master'
...
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-25 22:14:06 -08:00
Steven Fackler
70214915b0
Add a missing fmt::Debug impl lint
...
Closes #20855
2015-01-25 11:22:41 -08:00
Jorge Aparicio
bff462302b
cleanup: s/impl Copy/#[derive(Copy)]/g
2015-01-25 11:20:38 -05:00
bors
102ab57d80
Auto merge of #21582 - FlaPer87:rollup, r=brson
...
- Successful merges: #21108 , #21445 , #21498 , #21504 , #21532 , #21535 , #21539 , #21540 , #21541 , #21550 , #21560 , #21573 , #21579
- Failed merges:
2015-01-25 13:33:18 +00:00
Brian Anderson
63fcbcf3ce
Merge remote-tracking branch 'rust-lang/master'
...
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-25 01:20:55 -08:00
bors
43046becce
Auto merge of #21558 - alexcrichton:result-debug, r=aturon
...
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-25 05:50:30 +00:00
Alfie John
f67e7470b3
Moving away from deprecated i/u suffixes in libcore
2015-01-25 00:17:41 +00:00
bors
bb7cc4eb26
Auto merge of #21488 - aturon:os-str, r=alexcrichton
...
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-24 19:39:52 +00:00
Aaron Turon
c5369ebc7f
Add ffi::OsString and OsStr
...
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-24 10:21:30 -08:00
Pyfisch
0736ad3c2a
Spellfix for Debug trait
...
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-24 14:54:43 +01:00
GuillaumeGomez
5ab14057f6
Add Hash trait to NonZero type
2015-01-24 13:58:51 +01:00
Flavio Percoco Premoli
6a9ee09a99
Rollup merge of #21445 - P1start:no-implemented, r=nikomatsakis
2015-01-24 10:42:40 +01:00
Brian Anderson
b44ee371b8
grandfathered -> rust1
2015-01-23 21:48:20 -08:00
Brian Anderson
9758c488a9
Deprecated attributes don't take 'feature' names and are paired with 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-23 15:50:03 -08:00
Alex Crichton
08246520c0
std: Relax Result::unwrap() to Debug
...
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-23 14:11:34 -08:00
Brian Anderson
cd6d9eab5d
Set unstable feature names appropriately
...
* `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-23 13:28:40 -08:00