bors
05d5fcaa5b
Auto merge of #25161 - jooert:moretests, r=alexcrichton
...
The last one (at least for the moment 😃 ).
r? @alexcrichton
2015-05-07 13:33:33 +00:00
Steve Klabnik
b7ce230329
Rollup merge of #25138 - tshepang:typos, r=sanxiyn
2015-05-07 12:21:02 +02:00
Steve Klabnik
74d24ad6af
Rollup merge of #24966 - ruud-v-a:explain, r=pnkfelix
...
The error message was misleading, so I adjusted it, and I also added the long diagnostics for this error (resolves one point in #24407 ).
I was unsure about how to phrase the error message. Is “generic parameter binding” the correct term for this?
2015-05-07 12:21:01 +02:00
bors
8767e97d7e
Auto merge of #24392 - seanmonstar:lint-transmute-mut, r=alexcrichton
...
The [UnsafeCell documentation says it is undefined behavior](http://doc.rust-lang.org/nightly/std/cell/struct.UnsafeCell.html ), so people shouldn't do it.
This happened to catch one case in libstd that was doing this, and I switched that to use an UnsafeCell internally.
Closes #13146
2015-05-06 22:27:58 +00:00
Johannes Oertel
1a8ccd72d6
Add regression test for #20626
...
Closes #20626 .
2015-05-07 00:25:54 +02:00
Johannes Oertel
6de3cdc0e0
Add regression test for #22463
...
Closes #22463 .
2015-05-07 00:25:53 +02:00
Johannes Oertel
106461b6e5
Add regression test for #22258
...
Closes #22258 .
2015-05-07 00:25:53 +02:00
Johannes Oertel
642db4b8b5
Add regression test for #22037
...
Closes #22037 .
2015-05-07 00:25:53 +02:00
Johannes Oertel
57a53f0dfb
Add regression test for #21701
...
Closes #21701 .
2015-05-07 00:25:53 +02:00
Johannes Oertel
208452cdaf
Add regression test for #21562
...
Closes #21562 .
2015-05-07 00:25:48 +02:00
Johannes Oertel
5b8a486b9e
Add regression test for #21177
...
Closes #21177 .
2015-05-06 23:30:51 +02:00
bors
fc45fd99f5
Auto merge of #25117 - jooert:tests, r=alexcrichton
2015-05-06 09:48:58 +00:00
Sean McArthur
5624cfbdda
test: update run-pass tests to not use mutable transmuting
2015-05-05 22:26:23 -07:00
Sean McArthur
d131f33557
lint: deny transmuting from immutable to mutable, since it's undefined behavior
...
[breaking-change] Technically breaking, since code that had been using
these transmutes before will no longer compile. However, it was
undefined behavior, so really, it's a good thing. Fixing your code would
require some re-working to use an UnsafeCell instead.
Closes #13146
2015-05-05 22:26:23 -07:00
Tshepang Lekhonkhobe
8227db86eb
fix typos caught by codespell
2015-05-06 03:00:13 +02:00
Ruud van Asseldonk
4b8098bb19
test: Update expected compile-fail message for E0282
2015-05-06 01:05:18 +02:00
bors
6cd7486113
Auto merge of #24979 - jooert:test-22471, r=pnkfelix
...
Closes #22471 .
2015-05-05 15:39:02 +00:00
Johannes Oertel
c4693ea1db
Add regression tests for #21174
...
Closes #21174 .
2015-05-05 15:57:28 +02:00
Johannes Oertel
29a7d35894
Add regression test for #20862
...
Closes #20862 .
2015-05-05 15:57:28 +02:00
Johannes Oertel
526258c0f8
Add regression test for #20186
...
Closes #20186 .
2015-05-05 15:57:28 +02:00
Johannes Oertel
341fb57b57
Add regression test for #20174
...
Closes #20174 .
2015-05-05 15:57:27 +02:00
Johannes Oertel
d393ff7c47
Add regression test for #20105
...
Closes #20105 .
2015-05-05 15:57:27 +02:00
bors
c0100ce846
Auto merge of #25113 - pnkfelix:dropck-itemless-traits, r=huonw
...
Generalize dropck to ignore item-less traits
Fix #24805 .
(This is the reopened + rebased version of PR #24898 )
2015-05-05 11:06:35 +00:00
Manish Goregaokar
9f50d62200
Rollup merge of #25092 - pnkfelix:fix-pprint-of-type-items-with-where, r=alexcrichton
...
Correct pretty-printing of `type Foo<T> where T: Bound = ...;`
Fix #25031
2015-05-05 09:24:09 +05:30
bors
9b481f89d1
Auto merge of #25056 - jooert:sometests, r=alexcrichton
...
Add several regression tests and remove some unnecessary FIXMEs.
2015-05-04 18:59:47 +00:00
Johannes Oertel
e7d052ebd9
Remove several FIXMEs
2015-05-04 20:05:40 +02:00
Johannes Oertel
c4d81024db
Add regression test for #22471
...
Closes #22471 .
2015-05-04 14:03:12 +02:00
Felix S. Klock II
c62c908f08
Correct pretty-printing of type Foo<T> where T: Bound = ...;
...
Fix #25031
2015-05-04 10:21:39 +02:00
bors
ce1150b9f0
Auto merge of #25043 - alexcrichton:musl-out-of-stack, r=nikomatsakis
...
Stack overflow detection does not currently work with MUSL, so this test needs
to be disabled.
2015-05-04 00:31:09 +00:00
bors
6b3d66b04f
Auto merge of #25060 - luqmana:matching-dst-struct, r=huonw
...
Fixes #23261 .
cc @blaenk
2015-05-03 19:08:06 +00:00
bors
1a60dc4fc4
Auto merge of #24737 - P1start:dst-cell, r=alexcrichton
...
This + DST coercions (#24619 ) would allow code like `Rc<RefCell<Box<Trait>>>` to be simplified to `Rc<RefCell<Trait>>`.
2015-05-03 17:22:09 +00:00
Luqman Aden
715605faf9
librustc_trans: Handle DST structs in trans::_match.
2015-05-03 05:36:04 -04:00
bors
5574029b68
Auto merge of #25038 - bluss:fat-pointer-cast, r=luqmana
...
typeck: Make sure casts from other types to fat pointers are illegal
Fixes ICEs where non-fat pointers and scalars are cast to fat pointers,
Fixes #21397
Fixes #22955
Fixes #23237
Fixes #24100
2015-05-02 17:44:11 +00:00
Johannes Oertel
42123b75f9
Add regression test for #19380
...
Closes #19380 .
2015-05-02 15:22:27 +02:00
Johannes Oertel
2193857251
Add regression test for #19163
...
Closes #19163 .
2015-05-02 15:22:27 +02:00
Johannes Oertel
c81d8f940a
Add regression test for #19109
...
Closes #19109 .
2015-05-02 15:22:27 +02:00
Johannes Oertel
2cf47917ab
Add regression test for #18943
...
Closes #18943 .
2015-05-02 15:22:27 +02:00
Johannes Oertel
2595b1e282
Add regression test for #17959
...
Closes #17959 .
2015-05-02 15:22:27 +02:00
Johannes Oertel
3878f4d519
Add regression test for #17170
...
Closes #17170 .
2015-05-02 15:22:27 +02:00
Johannes Oertel
846b36833e
Add regression test for #12511
...
Closes #12511 .
2015-05-02 15:22:26 +02:00
Johannes Oertel
d0e594862c
Add regression test for #14565
...
Closes #14565 .
2015-05-02 15:22:26 +02:00
bors
354d16bd72
Auto merge of #25027 - Manishearth:deriving_attr, r=huonw
...
Adds an `attrs` field to `FieldInfo` which lets one check the attributes on
a field whilst expanding.
This lets deriving plugins be more robust, for example providing the ability to
"ignore" a field for the purpose of deriving, or perhaps handle the field a
different way.
r? @huonw
2015-05-02 09:55:13 +00:00
Manish Goregaokar
5892b40859
Rename AstBuilder::expr_int -> AstBuilder::expr_isize
2015-05-02 13:57:58 +05:30
bors
f0af2ec99c
Auto merge of #24980 - jooert:test-22468, r=pnkfelix
...
Closes #22468 .
2015-05-02 06:22:41 +00:00
bors
700b4c160b
Auto merge of #25028 - bluss:drain-string, r=alexcrichton
...
collections: Implement String::drain(range) according to RFC 574
`.drain(range)` is unstable and under feature(collections_drain).
This adds a safe way to remove any range of a String as efficiently as
possible.
As noted in the code, this drain iterator has none of the memory safety
issues of the vector version.
RFC tracking issue is #23055
2015-05-02 04:35:33 +00:00
Alex Crichton
e32dab78b8
test: Ignore out-of-stack for MUSL
...
Stack overflow detection does not currently work with MUSL, so this test needs
to be disabled.
2015-05-01 17:55:08 -07:00
Ulrik Sverdrup
4806fb29a0
typeck: Make sure casts to or from fat pointers are illegal
...
Fixes ICEs where non-fat pointers and scalars are cast to fat pointers,
Fixes #21397
Fixes #22955
Fixes #23237
Fixes #24100
2015-05-02 01:18:33 +02:00
P1start
57d8289754
Make UnsafeCell, RefCell, Mutex, and RwLock accept DSTs
...
This + DST coercions (#24619 ) would allow code like `Rc<RefCell<Box<Trait>>>` to
be simplified to `Rc<RefCell<Trait>>`.
2015-05-02 10:03:35 +12:00
bors
f3345cb0a7
Auto merge of #24778 - nagisa:managed-removal, r=huonw
...
Leftovers from @-pointer times, I guess.
2015-05-01 19:17:45 +00:00
Ulrik Sverdrup
ee48e6d192
collections: Implement String::drain(range) according to RFC 574
...
`.drain(range)` is unstable and under feature(collections_drain).
This adds a safe way to remove any range of a String as efficiently as
possible.
As noted in the code, this drain iterator has none of the memory safety
issues of the vector version.
RFC tracking issue is #23055
2015-05-01 19:51:31 +02:00