Eduard Burtescu
ae076e1e3b
Implement deref coercions ( rust-lang/rfcs#241 ).
2015-01-30 00:30:12 +02:00
Eduard Burtescu
b48c4c8cf4
rustc_typeck: cleanup coercion logic that has been obsolete/unused for a while now.
2015-01-30 00:27:12 +02:00
Eduard Burtescu
6a478bdfd2
rustc_typeck: use FnCtxt in coercion, instead of mimicking a combiner.
2015-01-30 00:27:12 +02:00
Eduard Burtescu
f9f3ba5920
rustc: move infer::coercion to rustc_typeck.
2015-01-30 00:27:12 +02:00
bors
7ea93abfb2
Auto merge of #21691 - edwardw:double-closure, r=nikomatsakis
...
It was considered to be impossible but actually it can
happen for nested closures. Also, because there must
be nested closures when this happens, we can use more
targeted help message.
Closes #21390
Closes #21600
2015-01-29 19:36:03 +00:00
Tom Jakubowski
1cf684ca94
rustdoc: Render new self
syntax in use
...
Fix #21442
2015-01-29 11:03:25 -08: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
Niko Matsakis
f1ace34d5c
Make subtyping for projection types stricter. Fixes #21726 .
2015-01-29 09:06:34 -05:00
Jorge Aparicio
a6f9180fd6
bring back #[derive(Show)]
with a deprecation warning
2015-01-29 07:49:02 -05:00
Jorge Aparicio
4b75931ce2
fix import in cfail test
2015-01-29 07:49:02 -05: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
94d04e684c
fix inference fallout
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
Flavio Percoco
947f6ca4a1
Feature gate macro_reexport. Fixes #20906
2015-01-29 08:44:25 +01:00
Alex Crichton
a19d3368e1
rustc: Print out a prettier version of crate types
...
Closes rust-lang/cargo#1234
2015-01-28 22:42:17 -08:00
Steve Klabnik
017b3a5431
Pull configs out into individual repositories
...
As we grow, these don't belong in-tree.
http://internals.rust-lang.org/t/moving-editor-highlighting-into-their-own-repos/1395
* https://github.com/rust-lang/rust.vim
* https://github.com/rust-lang/rust-mode
* https://github.com/rust-lang/gedit-config
* https://github.com/rust-lang/kate-config
* https://github.com/rust-lang/nano-config
* https://github.com/rust-lang/zsh-config
2015-01-29 01:16:54 -05: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
Steven Fackler
26276f4751
Fix up check to bypass internal buffer
...
We don't care about how much space the allocation has, but the actual
usable space in the buffer.
2015-01-28 20:12:00 -08:00
Michael Neumann
ca0e83cdec
Fix wrong use std::io -> old_io
2015-01-29 01:56:59 +01:00
bors
c5961ad06d
Auto merge of #21522 - nikomatsakis:assoc-type-ice-hunt-take-3, r=nick29581
...
Do not propagate the region requirements on the projected type to the input types it is being projected from.
Fixes #21520 .
r? @aturon
2015-01-28 21:49:38 +00:00
Manish Goregaokar
092330c640
Rollup merge of 21643 - semarie:break-local_stage0, r=brson
2015-01-29 03:17:16 +05:30
Manish Goregaokar
d37d2167b2
Rollup merge of 21651 - nelsonjchen:add--webkit-overflow-scrolling-touch-to-book-css, r=alexcrichton
2015-01-29 03:16:52 +05:30
Manish Goregaokar
2403176dde
Rollup merge of 21654 - FlaPer87:unify-impls, r=alexcrichton
2015-01-29 03:16:25 +05:30
Manish Goregaokar
62b24c3dd5
Rollup merge of 21662 - oli-obk:hashmap_enum_json, r=alexcrichton
2015-01-29 03:15:51 +05:30
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
0752c4a941
Rollup merge of 21671 - akiss77:pr-aarch64-fastisel0, r=alexcrichton
2015-01-29 03:14:58 +05:30
Manish Goregaokar
f553f58b7f
Rollup merge of 21681 - japaric:no-warn, r=alexcrichton
2015-01-29 03:14:35 +05:30
Manish Goregaokar
7abbc96e66
Rollup merge of 21708 - brson:internals, r=huonw
2015-01-29 03:13:53 +05:30
Manish Goregaokar
1669f89e14
Rollup merge of 21711 - thepowersgang:patch-1, r=alexcrichton
2015-01-29 03:11:48 +05:30
Manish Goregaokar
0508d8f362
Rollup merge of 21722 - orpheuslummis:patch-1, r=Gankro
2015-01-29 03:11:12 +05:30
Manish Goregaokar
0d1a4ac269
Rollup merge of #21640 - retep998:rmdir, r=alexcrichton
...
`_wrmdir` is literally just a wrapper around `RemoveDirectoryW`, so let's just use `RemoveDirectoryW`.
r? @alexcrichton
2015-01-29 03:04:10 +05:30
Manish Goregaokar
be13211b0a
Rollup merge of #21626 - Ms2ger:various-cleanup, r=eddyb
2015-01-29 03:04:09 +05:30
bors
ee0be3b3e7
Auto merge of #21698 - Manishearth:rollup, r=alexcrichton
...
This should work now.
2015-01-28 18:55:24 +00:00
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
Vojtech Kral
9ee972ca32
Thread native name setting, fix #10302
2015-01-28 16:52:53 +01:00
Orpheus Lummis
9a379d4257
Correct Orpheus Lummis's email and name
...
New email address, stylization of name.
2015-01-28 10:04:56 -05:00
Vojtech Kral
7e67eba180
Thread native name setting, fix #10302
2015-01-28 14:01:14 +01:00
Vojtech Kral
33a3d6d88f
Thread native name setting, fix #10302
2015-01-28 13:48:27 +01:00
Huon Wilson
76d66baf72
Use unsigned comparison operators for unsigned SIMD types.
...
Previously comparisons of SIMD types were always signed, even unsigned
comparisons, meaning 0xFFFF_FFFF_u32 < 0 inside a SIMD vector.
Fixes #21719 .
2015-01-28 22:56:55 +11:00
bors
a45e117733
Auto merge of #21019 - nikomatsakis:issue-20871-ret-as-assoc-type, r=nrc
...
Fixes https://github.com/rust-lang/rust/issues/20871
r? @aturon (at least until we decide definitively if this is a good idea)
2015-01-28 11:01:36 +00:00
Niko Matsakis
05ffdc5824
Add regression test for #21212 . Fixes #21212 .
2015-01-28 05:59:50 -05:00
Niko Matsakis
aaf3df3667
Add new test for object method numbering mismatches.
2015-01-28 05:15:24 -05:00
Niko Matsakis
694432e935
Adjust comment per nrc's suggestion.
2015-01-28 05:15:24 -05:00